IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Create Multiple PDS in one step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Som_TCS

New User


Joined: 09 Jan 2009
Posts: 7
Location: Chennai / Kolkata

PostPosted: Wed Jul 01, 2009 5:13 pm
Reply with quote

How can I create multiple PDS in one step?

I need to create 70 PDS...Can anyone help me? icon_question.gif
I need the JCL for it....or any trick...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 01, 2009 5:19 pm
Reply with quote

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

New User


Joined: 09 Jan 2009
Posts: 7
Location: Chennai / Kolkata

PostPosted: Wed Jul 01, 2009 5:23 pm
Reply with quote

I need to create..not copy...but I need in one JCL step
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 01, 2009 5:41 pm
Reply with quote

IEFBR14 will do it in one JCL step ... although why only one JCL step?
Back to top
View user's profile Send private message
Som_TCS

New User


Joined: 09 Jan 2009
Posts: 7
Location: Chennai / Kolkata

PostPosted: Wed Jul 01, 2009 7:11 pm
Reply with quote

I have to create lots of PDS of same type.
Can you please provide me the jcl ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 01, 2009 7:14 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 02, 2009 12:16 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 02, 2009 7:26 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top