IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to process members by member name in FILE-AID?


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Thu Sep 25, 2008 10:44 pm
Reply with quote

I'm trying to update some members in PDS separately by member name. For instance:

in the PDS, I have 20 members' names start with AAAA. (AAAA--icon_cool.gif
30 members' names start with BBBB. (BBBB--icon_cool.gif,
40 members' names start with CCCC. (CCCC--icon_cool.gif;

I want to update members AAAA---- and CCCC---- together.

I can't use "mask" in parameter "MEMBER", "MEMBERS" allows "mask" but it doesn't allow multi-value in it; "MBRNAME" could specify a range but I don't want BBBB---- to be processed.

Thanks,
Galen
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Sep 26, 2008 4:24 am
Reply with quote

Hi,

what's wrong with using 2 statements ie.

Code:
$$DD01 UPDATEALL MEMBERS=AAAA----,

$$DD01 UPDATEALL MEMBERS=CCCC----,





Gerry
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Fri Sep 26, 2008 8:29 am
Reply with quote

gcicchet wrote:
Hi,

what's wrong with using 2 statements ie.

Code:
$$DD01 UPDATEALL MEMBERS=AAAA----,

$$DD01 UPDATEALL MEMBERS=CCCC----,





Gerry


Thanks for ur reply, Yes, it will work, however it is just an example, actually I wanna separate hundreds members into different group, and each group is having many name-criteria, and each group has many many EDITALL statements in it, I don't want to repeat them too many times.

Thanks,
Galen
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Sep 26, 2008 8:47 am
Reply with quote

Hi,

you can create the like statements as members of a PDS
and use it like below

Code:
//SYSIN    DD *                                   
$$DD01 UPDATEALL MEMBERS=AAAA----,               
/*                                               
//         DD DSN=DSN(MEM1),DISP=SHR             
$$DD01 UPDATEALL MEMBERS=CCCC----,               
/*                                               
//         DD DSN=DSN(MEM1),DISP=SHR             
$$DD01 UPDATEALL MEMBERS=EEEE----,               
/*                                               
//         DD DSN=DSN(MEM2),DISP=SHR             



Gerry
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Fri Sep 26, 2008 1:13 pm
Reply with quote

gcicchet wrote:
Hi,

you can create the like statements as members of a PDS
and use it like below

Code:
//SYSIN    DD *                                   
$$DD01 UPDATEALL MEMBERS=AAAA----,               
/*                                               
//         DD DSN=DSN(MEM1),DISP=SHR             
$$DD01 UPDATEALL MEMBERS=CCCC----,               
/*                                               
//         DD DSN=DSN(MEM1),DISP=SHR             
$$DD01 UPDATEALL MEMBERS=EEEE----,               
/*                                               
//         DD DSN=DSN(MEM2),DISP=SHR             



Gerry


Thx a lot!
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Sep 26, 2008 1:25 pm
Reply with quote

Hi,

my previous code was not correct

it should be like this
Code:
//SYSIN    DD *                                   
$$DD01 UPDATEALL MEMBERS=AAAA----,               
/*                                               
//         DD DSN=DSN(MEM1),DISP=SHR     
//         DD *         
$$DD01 UPDATEALL MEMBERS=CCCC----,               
/*                                               
//         DD DSN=DSN(MEM1),DISP=SHR   
//         DD *         
$$DD01 UPDATEALL MEMBERS=EEEE----,               
/*                                               
//         DD DSN=DSN(MEM2),DISP=SHR   



Gerry
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Tue Oct 07, 2008 12:42 pm
Reply with quote

gcicchet wrote:
Hi,

my previous code was not correct

it should be like this
Code:
//SYSIN    DD *                                   
$$DD01 UPDATEALL MEMBERS=AAAA----,               
/*                                               
//         DD DSN=DSN(MEM1),DISP=SHR     
//         DD *         
$$DD01 UPDATEALL MEMBERS=CCCC----,               
/*                                               
//         DD DSN=DSN(MEM1),DISP=SHR   
//         DD *         
$$DD01 UPDATEALL MEMBERS=EEEE----,               
/*                                               
//         DD DSN=DSN(MEM2),DISP=SHR   



Gerry


Thank you.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top