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 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: 10326
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
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 Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

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