Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Find and replace in members of PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Find and replace in members of PDS
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

Moderator Team Head


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

PostPosted: Mon Mar 03, 2008 8:03 am    Post subject: Reply to: Find and replace in members of PDS
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    Post subject: Reply to: Find and replace in members of PDS
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
Location: italy

PostPosted: Mon Mar 03, 2008 2:13 pm    Post subject: Reply to: Find and replace in members of PDS
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: 757
Location: Germany

PostPosted: Mon Mar 03, 2008 4:22 pm    Post subject:
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    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 RACF- How to find the Last access of ... rahul shanmuganatan All Other Mainframe Topics 6 Thu Jun 21, 2018 3:19 pm
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Replace last name by first name anatol DFSORT/ICETOOL 10 Thu Mar 15, 2018 3:43 pm
No new posts help to replace columns by rows Vikas Maharnawar DFSORT/ICETOOL 8 Tue Mar 06, 2018 3:27 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us