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
 
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: 4650
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: 4650
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 XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am

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