If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Querying member

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-09, 13:25
newer newer is offline
Registered User
 
Join Date: Sep 2003
Posts: 32
Querying member

Hi All,

I am not very familiar with DB2 SQL syntax.

I need to query member. As what I searched, it said I need to create member as alias. For example,

CREATE ALIAS RMSFILES84.CL_PA FOR RMSFILES84.INITP100 (M012)

CREATE ALIAS RMSFILES84.CL_EC_PA FOR RMSFILES84.MSPMP100 (M012)

Hi All,

I am not very familiar with DB2 SQL syntax.

I need to query member. As what I searched, it said I need to create member as alias. For example,

CREATE ALIAS RMSFILES84.CL_PA FOR RMSFILES84.INITP100 (M012)

CREATE ALIAS RMSFILES84.CL_EC_PA FOR RMSFILES84.MSPMP100 (M012)

Then, I can
SELECT ABCD, XXXX
FROM rmsfiles84.CL_PA, rmsfiles84.CL_EC_PA

I have different member for each of our plant, total 7 plants.

I need to create 14 aliases in order to get the result I want.

I want to know if there is any other way to query member.

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 04-02-09, 14:15
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You need to give more information. First, what DB2 version and OS? What is "member"? You say you have to query it, but what is it? Why do you need to create an alias?

Andy
Reply With Quote
  #3 (permalink)  
Old 04-02-09, 14:58
newer newer is offline
Registered User
 
Join Date: Sep 2003
Posts: 32
AS400 members

It is AS400 (V5R4).

For example, if there is a multiple member file MYLIB.MYFILE with members MBR1 ... CREATE ALIAS MYLIB.MYMBR2_ALIAS FOR MYLIB.MYFILE (MBR2)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On