View previous topic :: View next topic
|
Author |
Message |
Som_TCS
New User
Joined: 09 Jan 2009 Posts: 7 Location: Chennai / Kolkata
|
|
|
|
How can I create multiple PDS in one step?
I need to create 70 PDS...Can anyone help me?
I need the JCL for it....or any trick... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
IEFBR14 with 70 DD statements?
DF/DSS COPY command?
Since you don't specify whether you're doing a copy of 70 existing data sets or creating 70 new data sets, we can't provide much assistance. |
|
Back to top |
|
|
Som_TCS
New User
Joined: 09 Jan 2009 Posts: 7 Location: Chennai / Kolkata
|
|
|
|
I need to create..not copy...but I need in one JCL step |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
IEFBR14 will do it in one JCL step ... although why only one JCL step? |
|
Back to top |
|
|
Som_TCS
New User
Joined: 09 Jan 2009 Posts: 7 Location: Chennai / Kolkata
|
|
|
|
I have to create lots of PDS of same type.
Can you please provide me the jcl ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you don't know how to write the JCL, then you don't need to be attempting to do this task. Execute IEFBR14, then give the definitions for each of your PDS files, one definition per DD statement, with DISP=(MOD,CATLG,DELETE) . The JCL Language Reference manual (link at the top of the page) gives you all the specifics of how to write JCL. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
/Phiosphy on
With this type of choices
Quote: |
I have to create lots of PDS of same type. |
you are shooting without any aim which will give you a definite faliure.
/Phiosphy off
Everything is given to you by Robert unless you have something else in mind, just go ahead and write a JCL using the suggestion. If that does not work well, tell us, some one will be around. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I have to create lots of PDS of same type. |
Suggest you create one and make sure it works as you want it to.
You might want to consider PDSE rather than PDS.
Once you have one working correctly, clone that jcl lots of times (maybe 69) for the remaining requirement. |
|
Back to top |
|
|
|