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

Using override parameter


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

New User


Joined: 20 Feb 2006
Posts: 14

PostPosted: Tue Dec 19, 2006 4:58 pm
Reply with quote

Hi,

I have a problem in using the override parameter in a JCL. See the below jcl.

Code:

//PROCNAME.STEP001.SYSIN  DD DISP=SHR,                     
//  DSN=ABCDEFGH.ABCD.ABCD.ABCD.PROCLIB(ABCDEFGH)     


Since the override parameter is contnuing in the second line, my job is failing.

Is there any way of continuing the override parameter in the second line?

Thanks,
Herewego.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Dec 19, 2006 5:19 pm
Reply with quote

A proc override is defined as procstep_name.ddname. Your example shows one too many nodes.

Specifically:

Place modifying DD statements after the EXEC statement that calls the procedure.

To override, nullify, or add parameters to a procedure DD statement, code in the name field of the overriding DD statement the name of the procedure step containing the overridden statement, followed by a period, followed by the name of the ddname of the procedure DD statement.

//pstepname.ddname DD parameters

as defined in the z/OS V1R7.0 MVS JCL Reference
manual
.
Back to top
View user's profile Send private message
herewego

New User


Joined: 20 Feb 2006
Posts: 14

PostPosted: Tue Dec 19, 2006 6:09 pm
Reply with quote

Thanks Superk,

But my code is working when i gave a member in a single line.
i.e.

Code:

//PROC.STEP1.SYSIN DD DISP=SHR,DSN=ABC.ABC.PROCLIB(ABC)


Thanks,
Herewego
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Dec 19, 2006 8:07 pm
Reply with quote

I'm at a loss. On my system (z/OS v1r7) it fails in the JCL checker and it fails to actually execute with a JCL error, unless I code the override as documented in the manual.

Anyone else want to take a try at this?
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: Tue Dec 19, 2006 11:55 pm
Reply with quote

Hello,

The continuation may not have worked due to a requirement to "continue" in col 16. Placing a non-blank character in col 72 may also help.

Could you please post the jobstream, not just the one line?

Thank you.
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: Wed Dec 20, 2006 4:32 am
Reply with quote

Hello,

Tried several combinatons here and got the same results that you reported - failed the jcl checker and got a jcl error when submitted.

Might they have a reader exit that is processing this?
Back to top
View user's profile Send private message
shanudarling
Warnings : 1

New User


Joined: 20 Dec 2006
Posts: 55
Location: noida

PostPosted: Thu Dec 21, 2006 3:16 pm
Reply with quote

plz try it, in this format

Code:

//procedur_name.stepname sysin dd disp=shr,
//          dsn=a.b.c.d(pgm)
            (from 10th)   


regards
-------------
shanu icon_razz.gif

?To Succeed do the best you can, where you are, with what you have.?
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Dec 21, 2006 4:49 pm
Reply with quote

Hi !

There is no continuation-sign needed, cause you're declaring a normal dataset. Also, as superk said, only use procstep_name.dd_name.

Regards, UmeySan

Example:
// EXEC T004G001,
// INR=007,MBR=SS009307,GRUPPE='G007.',
........
//*
//*
//S10.DATDL DD DSN=IER1337.BEST307.T300506,
// DISP=(NEW,CATLG,DELETE),
// LRECL=4018,BLKSIZE=18452,RECFM=VB,
// SPACE=(CYL,(50,50),RLSE)
//*
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top