MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cloning a Member multiple times

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
theenigma
Beginner


Joined: 09 Jan 2003
Posts: 15
Topics: 6

PostPosted: Wed Feb 26, 2003 10:57 pm    Post subject: Cloning a Member multiple times Reply with quote

Is there a simple way of say cloning a member of a pds 100 times, with different member names?
It's sickeningly boring Copying one member after another!
easier solution please!!

Thanks
Enigma
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Feb 26, 2003 11:57 pm    Post subject: Reply with quote

Enigma,

The following JCL will give you the desired results.


Code:

//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=YOUR.PDS(MEMBER TO BE COPIED),
//          DISP=SHR
//OUT001 DD DSN=YOUR.PDS(NEW MEMBER NAME1),
//          DISP=SHR
//OUT002 DD DSN=YOUR.PDS(NEW MEMBER NAME2),
//          DISP=SHR
...
//OUT100 DD DSN=YOUR.PDS(NEW MEMBER NAME100),
//          DISP=SHR
//SYSIN DD *
  OPTION COPY
  OUTFIL FNAMES=(OUT001,OUT002,OUT003,OUT004,OUT005,
                 OUT006,OUT007,OUT008,OUT009,
                  ...,
                 OUT096, OUT097,OUT098,OUT099,OUT100)
/*


Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
theenigma
Beginner


Joined: 09 Jan 2003
Posts: 15
Topics: 6

PostPosted: Thu Feb 27, 2003 12:32 am    Post subject: Reply with quote

Thanks Kolusu, that helps!!!
Enigma
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Feb 27, 2003 1:28 am    Post subject: Reply with quote

I always used a simple edit macro along the lines of:
Code:

/* REXX */ address isredit
'macro'
do a = 1 to 100
  'replace membr'||right(a,3,'0')||' .zl .zf'
end
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group