Edit members of a PDS.

File-AID from Compuware and File Manager from IBM.
Post Reply
Binamra
Registered Member
Posts: 67
Joined: Mon Jun 17, 2013 10:42 pm

Edit members of a PDS.

Post 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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1889
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Edit members of a PDS.

Post 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.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Edit members of a PDS.

Post 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.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Binamra
Registered Member
Posts: 67
Joined: Mon Jun 17, 2013 10:42 pm

Re: Edit members of a PDS.

Post by Binamra »

Thanks Anuj. This is useful and worked.`
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Edit members of a PDS.

Post by Anuj Dhawan »

Thanks for the feedback, appreciate that. :)
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “File-AID and IBM File Manager.”