View previous topic :: View next topic
|
Author |
Message |
vamskrish Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 27 Location: virginia
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
First of all, how are you going to generate the unique member names? |
|
Back to top |
|
|
vamskrish Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 27 Location: virginia
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
vamskrish Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 27 Location: virginia
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
and what name will be given to the new members ?
Gerry |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
|