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: 10256
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: 7315

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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am


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