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
 

 

Want to override the Disp in the proc through the JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Thu May 25, 2006 4:04 pm    Post subject: Want to override the Disp in the proc through the JCL
Reply with quote

I have a JCl say X which is calling a Proc Y in the First step

In the Proc there are about 10 steps

In the first step its creating a dataset whose disp is (mod,delete,delete)

If I want to override the Disp in the proc through the JCL how can we do that?

My requirement is to change the disp to (old,delete,delete) without changing the proc and by using the JCL which is calling the proc

Could you please share ur thoughts icon_rolleyes.gif
Back to top
View user's profile Send private message

gskulkarni

New User


Joined: 01 Mar 2006
Posts: 70

PostPosted: Thu May 25, 2006 4:20 pm    Post subject:
Reply with quote

In JCL after EXEC PROC statement you can give the override
//PROC EXEC your_proc,
// OUTD1=*
//STEP010.dataset DD DSN=your_data_set_name, DISP=(OLD,DELETE,DELETE).

The MOD,DELETE,DELETE will ensure that if that dataset was present it gets deleted, and if it was not present it will still go ahead without stopping the process.

OLD,DELETE,DELETE will cause the process to stop if the dataset is not present at the start of teh JCL, right? Is that what you want?
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Thu May 25, 2006 4:25 pm    Post subject:
Reply with quote

You can use overding the ddname in the step by coding stepname.ddname
or u can use symbolic parameter concept

please find example for symbolic parameter concept.

//DEF PROC STATUS=OLD,LIBRARY=SYSLIB,NUMBER=777777
//NOTIFY EXEC PGM=ACCUM
//DD1 DD DSNAME=MGMT,DISP=(&STATUS,KEEP),UNIT=3400-6,
// VOLUME=SER=888888
//DD2 DD DSNAME=&LIBRARY,DISP=(OLD,KEEP),UNIT=3350,
// VOLUME=SER=&NUMBER


Three symbolic parameters are defined in this cataloged procedure: &STATUS, &LIBRARY, and &NUMBER. Values are assigned to the symbolic parameters on the PROC statement. These values are used when the procedure is called and values are not assigned to the symbolic parameters on the calling EXEC statement.

Regards
jai
Back to top
View user's profile Send private message
sada_polaris

New User


Joined: 24 May 2006
Posts: 13

PostPosted: Fri May 26, 2006 10:09 am    Post subject: Re: Overiding
Reply with quote

The other way.

//.... job
//JSTY0010 exec proc=<proc name>
//JSTY0010.PSTY0010 DD DISP=(OLD,DELETE,DELETE)

If the proc step PSTY0010 will have only one DD. If the are more that one
DD then we need to be specific as below.

//.... job
//JSTY0010 exec proc=<proc name>
//JSTY0010.PSTY0010 DD DSN=.....,DISP=(OLD,DELETE,DELETE)

Also for ypur informatin, if you give (Mod,delete,delete) this disp position will delete the dataset.
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 Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm


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