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

copy a pds member to 1000 other new members


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

Global Moderator


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

PostPosted: Thu Oct 09, 2008 11:01 pm
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
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

Global Moderator


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

PostPosted: Fri Oct 10, 2008 12:13 am
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
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: 1702
Location: Australia

PostPosted: Fri Oct 10, 2008 7:04 am
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: 400
Location: Mumbai

PostPosted: Fri Oct 10, 2008 8:28 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top