View previous topic :: View next topic
|
Author |
Message |
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Hi,
I want to copy 100 PS datasets - HLQ.MODE.DATA.* to a PDS dataset having 100 members
LRECL-80
Can any one please let me know how to do this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
IEBGENER
IEBUPDTE
REXX
IDCAMS
Manually - but I suspect that the idea of this post is to reduce the amount of work that you need to do |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
no way to reduce the manual labor, unless there is an algorithmic way of creating the MEMBER name
in which case ( if there is an algorithmic solution) a SORT or REXX solution should be used to build the COPY/CREATE jcl |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Can you please post a sample JCL in SORT |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Do a listcat, output to a dataset.
Use the editor to create a list of the datasets you are interested in (find, exclude, column shifts).
Feed that into a SORT step which is going to create the control cards and DD statements for whatever you decide to use for the copy.
Test it.
Put the generated stuff into some JCL.
Test it.
Run it for real. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Enrico, good point about the member name, but seeing as the OP has only used a single * as the LLQ, I would have been tempted to use the LLQ as the member name, and invoking IEBGENER from within the REXX code. |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Thanks Guys.... for the inputs. |
|
Back to top |
|
|
|