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?
Search and update using File-Aid.
-
- New Member
- Posts: 6
- Joined: Mon Sep 08, 2014 11:45 am
- Anuj Dhawan
- Founder
- Posts: 2806
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Search and update using File-Aid.
Hi,
Below file-aid job should help you with what you've asked for:
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.
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.
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