Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Copy multiple PS datasets into PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Nov 09, 2011 1:27 pm    Post subject: Copy multiple PS datasets into PDS
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 09, 2011 1:58 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Nov 09, 2011 2:06 pm    Post subject: Reply to: Copy multiple PS datasets into PDS
Reply with quote

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
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Nov 09, 2011 2:36 pm    Post subject:
Reply with quote

Can you please post a sample JCL in SORT
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Wed Nov 09, 2011 2:41 pm    Post subject: Reply to: Copy multiple PS datasets into PDS
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 09, 2011 3:05 pm    Post subject:
Reply with quote

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
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Nov 09, 2011 5:09 pm    Post subject:
Reply with quote

Thanks Guys.... for the inputs.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us