View previous topic :: View next topic
|
Author |
Message |
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Do you want this requirement to be done using DFSORT only?? |
|
Back to top |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Was wondering whether it is possible through DFSORT.
Though, not restricted to DFSORT. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Try IPOUPDTE. |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
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 |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Thanks all for the inputs.
@PeterHolland, Thank You
I achieved it through IPOUPDTE. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thanks Kolusu. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
HameedAli wrote: |
Thanks all for the inputs.
@PeterHolland, Thank You
I achieved it through IPOUPDTE. |
That makes me very happy. |
|
Back to top |
|
|
Sunilp_cse
New User
Joined: 02 Jul 2012 Posts: 7 Location: INDIA
|
|
|
|
Might there is poosibility for your solution with PDSMAN tool ....Kindly check with it if u have installed in ur envi |
|
Back to top |
|
|
|