Edit multiple members.



Compuware's data management products: File-AID for IMS, File-AID/MVS, File-AID for DB2 and DBA-XPERT for DB2

Edit multiple members.

Postby Tomtom99 » Fri Feb 22, 2008 6:11 pm

Hello to all.

I have 40+ members in one PDS and I need to change a few strings in those members every month. Needless to say the best way to do this is to do them all at the same time. The changes I need are identical across all members. So, as an example I need to change all 2s into 3s in all members.
I have been trying to do this with FileAid but it simply does not seem to work. (I am not 100% sure that FileAid can do this in respect to multiple members at the same time).
Would anyone happen to know how I can achieve this (if FileAid can't do it).

Thanks lots.
Tomtom99
 
Posts: 2
Joined: Fri Feb 22, 2008 6:03 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Edit multiple members.

Postby MrSpock » Fri Feb 22, 2008 7:17 pm

I'm pretty sure that FileAid can do what you want. I don't have the product, so I can't offer any more details.

Outside of FileAid, the options are numerous:

1. You could create a single sequential dataset from the PDS (IEBPTPCH), make the changes using standard editing utilities or your own programs, then load the updates back to the PDS (IEBUPDTE).

2. You could use the IPOUPDTE Program.

3. You could write your own code to programatically loop through each member of the PDS and apply the necessary changes. This could be done with raw program code, with TSO utilities such as LISTDS and EDIT, an ISPF EDIT Macro, or by using the ISPF Library Management (LM) Services.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Edit multiple members.

Postby arunprasad.k » Fri Feb 22, 2008 8:41 pm

Use this JCL.

//FASTEP   EXEC PGM=FILEAID,REGION=6M                                   
//STEPLIB  DD  DISP=SHR,DSN=SYS3.FILEAID.LOAD                           
//SYSPRINT DD  SYSOUT=*                                                 
//SYSLIST  DD  SYSOUT=*                                                 
//DD01     DD  DSN=KAK999U.JCL,DISP=SHR                                 
//SYSIN    DD  *                                                       
$$DD01 UPDATE REPL=(1,0,C'EZACFSM1',C'EZACFSM2')                       
/*                                                                     


Arun.
arunprasad.k
 
Posts: 110
Joined: Thu Dec 27, 2007 5:18 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Edit multiple members.

Postby arunprasad.k » Fri Feb 22, 2008 8:48 pm

Sorry!! Clicked the Submit instead of Preview!!

DD name DD01 represents the PDS name. If you want specific members to be replaced then you can add the MEMBERS parameter with *.

$$DD01 UPDATE REPL=(1,0,C'EZACFSM1 ',C'EZACFSM2 '),MEMBERS=D*


Arun.
arunprasad.k
 
Posts: 110
Joined: Thu Dec 27, 2007 5:18 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Edit multiple members.

Postby Tomtom99 » Fri Feb 22, 2008 11:10 pm

Thank you for all the answers.

I did use the FILEAID JCL and it worked perfectly well. THANK you very much.
Tomtom99
 
Posts: 2
Joined: Fri Feb 22, 2008 6:03 pm
Has thanked: 0 time
Been thanked: 0 time


Return to File-AID

 


  • Related topics
    Replies
    Views
    Last post