Search and update using File-Aid.

File-AID from Compuware and File Manager from IBM.
Previous topicNext topic

Topic Author
Manish Tripathi
New Member
Posts: 6
Joined: Mon Sep 08, 2014 11:45 am

Search and update using File-Aid.

Post by Manish Tripathi » Fri May 22, 2015 2:14 pm

Hi,

I am looking for some help on 'sub-task' I am working on. For a testing we've to change a program name every day before we start testing. And for this I am looking for a way to mass update all members in a PDS in batch mode. As for example, I have replace say, 'PGM=PGM11' to 'PGM=PGM22'. How can I do that?



User avatar

Anuj Dhawan
Founder
Posts: 2619
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: Search and update using File-Aid.

Post by Anuj Dhawan » Mon Jun 15, 2015 4:58 pm

Hi,

Below file-aid job should help you with what you've asked for:

Code: Select all

//STEP010  EXEC PGM=FILEAID                              
//SYSUDUMP DD SYSOUT=C                                  
//SYSPRINT DD SYSOUT=*                                  
//SYSLIST  DD SYSOUT=*                                  
//SYSTOTAL DD SYSOUT=*                                  
//DD01     DD DSN=your.pds,DISP=SHR  
//SYSIN    DD *                                          
$$DD01 UPDATE ME=9999,EA=(1,0,T"'PGM=PGM11",C"'PGM=PGM22") 
/*


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.

Previous topicNext topic

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