Page 1 of 1

Edit members of a PDS.

Posted: Fri Dec 27, 2013 12:53 pm
by Binamra
Hi,

Because of testing in test region during system testing phase, I need to change a some characters of a PDS members every month. For one or two members I can do it manually but I've a PDS around 100+ members. I'm not very well versed with REXX so thinking if I can do it using File-aid? I recall in another company I've done a similar thing but I don't recall the options now. Can someone please help.

Re: Edit members of a PDS.

Posted: Mon Dec 30, 2013 2:46 am
by Robert Sample
Depending upon the precise details of what you want to do, it may -- or may not -- be possible with File Aid. Reading the manual will tell you what File Aid can do, and if your site is licensed for File Aid then you have access to the manuals.

Re: Edit members of a PDS.

Posted: Tue Dec 31, 2013 11:57 am
by Anuj Dhawan
Binamra wrote:Hi,

Because of testing in test region during system testing phase, I need to change a some characters of a PDS members every month. For one or two members I can do it manually but I've a PDS around 100+ members. I'm not very well versed with REXX so thinking if I can do it using File-aid? I recall in another company I've done a similar thing but I don't recall the options now. Can someone please help.
There is a way of doing it by selecting different menus available in file-Aid panels, however the procedure is bit lengthy to explain using a Forum, however, you can still use the following batch file-aid to do what you want to do:

Code: Select all

//STEP001  EXEC PGM=FILEAID                              
//SYSUDUMP DD SYSOUT=*                                 
//SYSPRINT DD SYSOUT=*                                  
//SYSLIST  DD SYSOUT=*                                  
//SYSTOTAL DD SYSOUT=*                                  
//DD01     DD DSN=your.pds.name,DISP=SHR  
//SYSIN    DD *                                          
$$DD03 UPDATE ME=9999,EA=(1,0,T"//aaaa",C"//bbbb") 
/*    
The above updates //aaaa to //bbbb in the members of a PDS . In above - "ME" represents MEMBERS (of a PDS). EA represents 'Edit All', used with UPDATE batch command of File-Aid. "1,0" represents from 1[sup]st[/sup] byte to the end of record.

Hoe this helps.

Re: Edit members of a PDS.

Posted: Fri Mar 28, 2014 12:37 am
by Binamra
Thanks Anuj. This is useful and worked.`

Re: Edit members of a PDS.

Posted: Fri Mar 28, 2014 12:50 am
by Anuj Dhawan
Thanks for the feedback, appreciate that. :)