View previous topic :: View next topic
|
Author |
Message |
prabhu118 Currently Banned New User
Joined: 11 Feb 2008 Posts: 14 Location: Chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
OK. And .... ?? (what's the question?). |
|
Back to top |
|
|
prabhu118 Currently Banned New User
Joined: 11 Feb 2008 Posts: 14 Location: Chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
|