Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

copy a pds member to 1000 other new members

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vamskrish
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 27
Location: virginia

PostPosted: Thu Oct 09, 2008 10:15 pm    Post subject: copy a pds member to 1000 other new members
Reply with quote

hi,
i have a pds member which i need to copy it to 4000 new members and replace a field in the first line of each member with the member name. i have no clue about what approach i need to take. please let me know the best solutions either using jcl or cobol.

thanks
vamshi
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Thu Oct 09, 2008 11:01 pm    Post subject: Reply to: copy a pds member to 1000 other new members
Reply with quote

First of all, how are you going to generate the unique member names?
Back to top
View user's profile Send private message
vamskrish
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 27
Location: virginia

PostPosted: Thu Oct 09, 2008 11:55 pm    Post subject: Re: Reply to: copy a pds member to 1000 other new members
Reply with quote

superk wrote:
First of all, how are you going to generate the unique member names?


sorry for not mentioning that. i do have list of all those member names in another member/file.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Fri Oct 10, 2008 12:13 am    Post subject: Reply to: copy a pds member to 1000 other new members
Reply with quote

Does this PDS meet the restrictions imposed by IEBUPDTE?

Quote:

You can use IEBUPDTE to create or modify sequential or partitioned data sets or PDSEs. However, the program can be used only with data sets containing fixed-length records of no more than 80 bytes.
Back to top
View user's profile Send private message
vamskrish
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 27
Location: virginia

PostPosted: Fri Oct 10, 2008 12:20 am    Post subject: Reply to: copy a pds member to 1000 other new members
Reply with quote

thanks for your replies.
not sure about it. but lets say, if we just have to copy the member to 1000 others. how do we do it. forget about changing the data in each member.
can you please give me a jcl to do that.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Oct 10, 2008 7:04 am    Post subject:
Reply with quote

Hi,

and what name will be given to the new members ?


Gerry
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Fri Oct 10, 2008 8:28 am    Post subject: Reply to: copy a pds member to 1000 other new members
Reply with quote

The easiest way to do this is an ISPF edit macro that just loops 4000 times with CHANGE and REPLACE commands. do it in Rexx, not COBOL and it is 5 lines of code. Thats how I've always seen people do this.
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 Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us