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

Overriding a step to use only one DD when it has 5 DDs


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

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Mon Jun 11, 2007 11:03 am
Reply with quote

Hi

A PROC has a step using 5 Dataset with 5 DD names,

I need to override this step in JOB so that the Step uses only one dataset.

Please let me know the solution

Thanks
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Jun 11, 2007 11:09 am
Reply with quote

Are all the 5 datasets used in 1 concatenation DD name or do you have 5 different dd names for 5 datasets.
Back to top
View user's profile Send private message
lekshmi_ci

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Mon Jun 11, 2007 11:47 am
Reply with quote

I have 5 different ddnames for 5 datasets
Back to top
View user's profile Send private message
lekshmi_ci

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Mon Jun 11, 2007 12:10 pm
Reply with quote

Hi

A PROC has a step using 5 Dataset with 5 different DD names,

I need to override this step in JOB so that the Step uses only one dataset.

Please reply me the solution

Thanks
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Jun 11, 2007 12:19 pm
Reply with quote

You can override one dataset, and remaining 4 make it Dummy.

//step.ddname1 dd dsn=dataset
//step.ddname2 dd dummy
//step.ddname3 dd dummy
//step.ddname4 dd dummy
//step.ddname5 dd dummy
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 11, 2007 12:19 pm
Reply with quote

OK, so you know the STEPNAME and the DD NAME, then code JCL override to use the dataset that you want to use followed by 4 DD DUMMY statements.
Back to top
View user's profile Send private message
khannay2k

New User


Joined: 24 Feb 2005
Posts: 28
Location: Bangalore

PostPosted: Mon Jun 11, 2007 1:02 pm
Reply with quote

I guess we need not mention the remaining 4 DD names as dummy even if the step has different DD names, and the syntax for overriding in case of having same DD names (concatenation) the the syntax will be

//step.ddname dd
dd
dd
dd
dd dsn=dataset
this is we need to override for last dsn, can place in for whatever the DD we require.

Regards,
Rajesh
Back to top
View user's profile Send private message
khannay2k

New User


Joined: 24 Feb 2005
Posts: 28
Location: Bangalore

PostPosted: Mon Jun 11, 2007 1:03 pm
Reply with quote

I guess we need not mention the remaining 4 DD names as dummy even if the step has different DD names, and the syntax for overriding in case of having same DD names (concatenation) the the syntax will be

//step.ddname dd
dd
dd
dd
dd dsn=dataset
this is we need to override for last dsn, can place in for whatever the DD we require.

Regards,
Rajesh
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Jun 11, 2007 2:46 pm
Reply with quote

lekshmi_ci wrote:
I need to override this step in JOB so that the Step uses only one dataset.

Hi,

I didn't get one thing, which step is 'this' step ?
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: Mon Jun 11, 2007 8:29 pm
Reply with quote

Hello,

I do not believe this
Quote:
//step.ddname dd
dd
dd
dd
dd dsn=dataset
this is we need to override for last dsn
addresses the question in the initial post. The initial post (if i understood correctly) specifies 5 separate ddnames.

Also, it would help if the existing jcl were posted as well as what the execution requires (not the actual overrides - we can help there).
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top