IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Updating all members of a PDS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Mon Jul 16, 2012 7:46 pm
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Jul 16, 2012 7:52 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Jul 16, 2012 8:02 pm
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

Global Moderator


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

PostPosted: Mon Jul 16, 2012 8:04 pm
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
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
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

Superior Member


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

PostPosted: Tue Jul 17, 2012 10:35 am
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Jul 17, 2012 1:44 pm
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
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
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

Superior Member


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

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

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

Global Moderator


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

PostPosted: Wed Jul 18, 2012 8:18 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts REXX editmacro to compare two members... CLIST & REXX 7
No new posts Easy way to delete selected members f... IBM Tools 12
Search our Forums:

Back to Top