Replacing some parameters in the member of a pds.



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Replacing some parameters in the member of a pds.

Postby Surabhi » Thu Oct 20, 2016 12:28 am

Hi all,
I have a requirement to changes some of the parameters in the memebers of a PDS.
As there more than 100 memebers in that PDS is it possible to make the change with some JCL instead of manually doing it.
Eg:- Ihave a PDS( MY.first.PDS) in this i have 100 memebers...in which i have a parameter ABC which i need to change to XYZ
Note:- i need a JCL for this can not use any of thr REXX code.

I have tried two jcl's no luck:-
A)
//STEP0100 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=my.first.PDS1,
// DISP=SHR
//SYSIN DD *
$$DD01 UPDATE EDITALL=('01,abc,xyz)

Error:-REQUESTED MODULE FILEAID NOT FOUND
B)
//STEP EXEC PGM=IPOUPDTE,PARM=UPDATE
//SYSPRINT DD SYSOUT=*
//@TEST DD DSN=my.first.PDS1, DISP=SHR
//SYSIN DD *
abc<xyzI<
/*

Erros:-REQUESTED MODULE IPOUPDTE NOT FOUND

Thanks,
Surabhi.
Surabhi
 
Posts: 49
Joined: Thu Sep 10, 2015 7:51 pm
Has thanked: 4 times
Been thanked: 0 time

Re: Replacing some parameters in the member of a pds.

Postby Robert Sample » Thu Oct 20, 2016 12:45 am

Have you talked to your site support group to find out if your site even has FILEAID installed? Or where to find IPOUPDTE?
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Replacing some parameters in the member of a pds.

Postby Surabhi » Thu Oct 20, 2016 12:57 am

Hi Robert,

If i navigate through the below path, i do have File-Aid option.
User panel->Invoke Programmer Tools Panel->FILE-AID
Surabhi
 
Posts: 49
Joined: Thu Sep 10, 2015 7:51 pm
Has thanked: 4 times
Been thanked: 0 time

Re: Replacing some parameters in the member of a pds.

Postby Robert Sample » Thu Oct 20, 2016 1:05 am

So you need to find from your site support group what JCL you need to access File Aid. It does not have to be in the linklist so you may be REQUIRED to put a STEPLIB or JOBLIB statement to access it in batch.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Replacing some parameters in the member of a pds.

Postby Surabhi » Thu Oct 20, 2016 9:34 am

Thank you so much Robert. Using Steplib worked. :)
Surabhi
 
Posts: 49
Joined: Thu Sep 10, 2015 7:51 pm
Has thanked: 4 times
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post