Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Updating all members of a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon Jul 16, 2012 7:43 pm    Post subject: Updating all members of a PDS
Reply with quote

Can DFSORT's FINDREP be used with PDS?
To find and replace all the members in the PDS?

Subject updated to reflect solution.
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Mon Jul 16, 2012 7:46 pm    Post subject:
Reply with quote

Do you want this requirement to be done using DFSORT only??
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon Jul 16, 2012 7:48 pm    Post subject: Reply to: FINDREP PDS
Reply with quote

Was wondering whether it is possible through DFSORT.
Though, not restricted to DFSORT.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Mon Jul 16, 2012 7:52 pm    Post subject: Reply to: FINDREP PDS
Reply with quote

I think a broad NO is the answer.

In terminology, a particular phrase has a meaning. When the same phrase is used in another context, there is at times not even any logic to the idea that it might "do" the same thing.

FINDREP is Find and Replace. That does not mean that if I was to "Find and Replace all members of a PDS" there is the remotest chance of it "working".

Perhaps you should describe what it is you want to do, and you'll get some suggestions how to do it.

The better the description, the better the suggestions.
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon Jul 16, 2012 7:58 pm    Post subject: Reply to: FINDREP PDS
Reply with quote

I have a partitioned dataset which contains list of Jobs.
I want to replace the environment variables of these JCLs, so that I can use in different region/environment.

I tried FINDREP with sequential dataset, it is working.
so, was trying whether the same can work with pds as well.

So that, I can create the new pds with the replaced environment Variables.


Input - PDS (All the Members in it)
Output - New PDS
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 16, 2012 8:02 pm    Post subject:
Reply with quote

There are examples on the forum of using REXX and ISPF edit macros to go through a whole PDS to effect desired changes.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Mon Jul 16, 2012 8:04 pm    Post subject:
Reply with quote

May be the topic belongs to REXX forum

Check here for code by Enrico
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jul 16, 2012 8:14 pm    Post subject:
Reply with quote

although I hate "tools",
this is a good situation for a "tool".

First, it is idiotic to duplicate a complete PDS because you want to change a variable.

Second,
what is your meaning of the term environment variables?
Having provided that to us, we can
  • provide you with the correct terminology
  • suggested solutions
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Jul 16, 2012 9:47 pm    Post subject: Re: FINDREP PDS
Reply with quote

HameedAli wrote:
Can DFSORT's FINDREP be used with PDS?
To find and replace all the members in the PDS?


NO. DFSORT works with 1 member at a time.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jul 17, 2012 10:35 am    Post subject: Re: FINDREP PDS
Reply with quote

Just an aside:
HameedAli wrote:
Can DFSORT's FINDREP be used with PDS?
To find and replace all the members in the PDS?
If you want to look for an alternate solution - File-Aid can do that, if you've that at your shop.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Tue Jul 17, 2012 1:44 pm    Post subject:
Reply with quote

Try IPOUPDTE.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Tue Jul 17, 2012 10:46 pm    Post subject: Re: FINDREP PDS
Reply with quote

Anuj Dhawan wrote:
Just an aside:
HameedAli wrote:
Can DFSORT's FINDREP be used with PDS?
To find and replace all the members in the PDS?
If you want to look for an alternate solution - File-Aid can do that, if you've that at your shop.


IBM's File Manager can also be used to update a PDS

Code:

//STEP0100 EXEC PGM=FILEMGR                 
//SYSPRINT DD SYSOUT=*                     
//DDIN     DD DSN=Your PDS to be updated,DISP=SHR 
//SYSIN    DD *                             
$$FILEM FCH MEMBER=* INPUT=DDIN             
C 'HAMEED' 'FILEMGR'                       
//*
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Wed Jul 18, 2012 7:49 pm    Post subject: Reply to: FINDREP PDS
Reply with quote

Thanks all for the inputs.

@PeterHolland, Thank You
I achieved it through IPOUPDTE.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 18, 2012 8:08 pm    Post subject:
Reply with quote

Thanks Kolusu.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Jul 18, 2012 8:18 pm    Post subject: Re: Reply to: FINDREP PDS
Reply with quote

HameedAli wrote:
Thanks all for the inputs.

@PeterHolland, Thank You
I achieved it through IPOUPDTE.


That makes me very happy.
Back to top
View user's profile Send private message
Sunilp_cse

New User


Joined: 02 Jul 2012
Posts: 7
Location: INDIA

PostPosted: Fri Jul 20, 2012 12:40 pm    Post subject:
Reply with quote

Might there is poosibility for your solution with PDSMAN tool ....Kindly check with it if u have installed in ur envi
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating the counters after eliminati... PANDU1 DFSORT/ICETOOL 12 Mon Nov 21, 2016 9:47 am
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm
This topic is locked: you cannot edit posts or make replies. Updating value of key using rewrite s... ParminderKumar COBOL Programming 4 Thu Aug 04, 2016 12:46 am
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us