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

Find and replace in members of PDS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prabhu118
Currently Banned

New User


Joined: 11 Feb 2008
Posts: 14
Location: Chennai

PostPosted: Mon Mar 03, 2008 6:46 am
Reply with quote

Hi Please find exact requirment below:

I have a PDS 'A' with several members. Requirement is to create a replica of all the members in a separate PDS 'B'.

But while doing this i have to search for few parameters in the members of PDS 'A' like:

LRECL=X.
RECFM=FB

And the correcponding members in PDS 'B' must have

LRECL=Y
RECFM=F

Thanks
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Mar 03, 2008 8:03 am
Reply with quote

OK. And .... ?? (what's the question?).
Back to top
View user's profile Send private message
prabhu118
Currently Banned

New User


Joined: 11 Feb 2008
Posts: 14
Location: Chennai

PostPosted: Mon Mar 03, 2008 1:46 pm
Reply with quote

Apologize if the requirement is not posted clearly..

Have to copy all the members in PDS 'A' to PDS 'B' ...

But all the lrecl=X in members of PDS 'A' must be LRECL=Y in the corresponding members in PDS 'B'.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 03, 2008 2:13 pm
Reply with quote

use option 3.3 to copy the existing dataset to the new one,
afterwards use the ...

http://www.ibmmainframes.com/viewtopic.php?t=25947&highlight=apply

writing an inner macro on th model of those posted ( $renum )
to issue as many

Code:
Address ISREDIT CHANGE "'from1' 'to1' all"
Address ISREDIT CHANGE "'from2' 'to2' all"
Address ISREDIT CHANGE "'from3' 'to3' all"
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Mar 03, 2008 4:22 pm
Reply with quote

Hi !

First copy as enrico-sorichetti told you.
For the member-change you could use old ibm-utility IPOUPDTE.
This Tool changes Strings old in new in all Members of a PDS.
Very old IBM-Utility but still alive.

Check = only a simulation
UPDATE = real modifikation

//UPDAT1 EXEC PGM=IPOUPDTE,
//* PARM='UPDATE'
// PARM='CHECK'
//§DD01 DD DISP=SHR,DSN=IE31000.LITTLE.HUGO
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
BWS8<MT81<
BWS9<MT91<

Old-String<New-String<
//

Regards, UmeySan
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
Search our Forums:

Back to Top