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

Can you override a JCL error in a Proc?


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

New User


Joined: 06 Oct 2009
Posts: 41
Location: Melbourne, Australia

PostPosted: Wed Feb 27, 2013 7:18 am
Reply with quote

In this obvious example, the proc is provided with an incorrect full-stop and 'UNTI' instead of 'UNIT'. But it appears that you cannot override the incorrect DD with a correct one (even though the JCL parser has found the correct location in the JCL stream).
Code:
       3 //CPY     PROC DSN2=                                                 
         //GENER   EXEC PGM=IEFBR14                                           
         //SYSUT2   DD  DSN=&DSN2,SPACE=(TRK,(1)),                             
         //             DISP=(NEW,CATLG,DELETE),UNTI=SYSDA,                   
         //             RECFM=FB,LRECL=1700.BUFNO=100                         
         //        PEND                                                       
       4 //MAKE    EXEC CPY,DSN2=TS.PACH.TEST                                 
       5 ++CPY     PROC DSN2=                                                 
       6 ++GENER   EXEC PGM=IEFBR14                                           
       7 ++BEFORE   DD DUMMY
       8 //GENER.SYSUT2   DD DSN=&DSN2,SPACE=(TRK,(1)),                       
         //            DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,                     
         //            RECFM=FB,LRECL=1700,BUFNO=100                           
         IEFC653I SUBSTITUTION JCL - DSN=TS.PACH.TEST,SPACE=(TRK,(1)),DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,RECFM=FB,
         LRECL=1700,BUFNO=100                                                 
         +/SYSUT2   DD  DSN=&DSN2,SPACE=(TRK,(1)),                             
         +/             DISP=(NEW,CATLG,DELETE),UNTI=SYSDA,                   
         +/             RECFM=FB,LRECL=1700.BUFNO=100                         
         IEFC653I SUBSTITUTION JCL - DSN=TS.PACH.TEST,SPACE=(TRK,(1)),DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,RECFM=FB,
         LRECL=1700.BUFNO=100                                                 
       9 ++AFTER    DD DUMMY
STMT NO. MESSAGE                                                               
       4 IEFC001I PROCEDURE CPY WAS EXPANDED USING INSTREAM PROCEDURE DEFINITION
       8 IEFC630I UNIDENTIFIED KEYWORD UNTI                                   
       8 IEFC641I IMPROPER SUBPARAMETER LIST IN THE LRECL FIELD               
       8 IEFC624I INCORRECT USE OF PERIOD IN THE LRECL FIELD                   


Is there a way of overriding a DD in a proc if that DD is generating a JCL error with its incorrect syntax? Or do you always have to replace the proc/point to a new one?

I guess that a proc should never reach a procedure library without being tested - right? icon_wink.gif Maybe I'm getting old (or I've been spoilt too much with pristine procedures) or maybe it was DOS procedures that would override the entire DD - but was it always this way?

P.S. I have tried to search through the manuals, but couldn't find anyting on overrides when I had found JCL errors, and couoldn't find anything on errors when I was looking for overrides. If I missed something, then simply a manual name would be enough!
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Feb 27, 2013 8:45 am
Reply with quote

Hi,


z/OS V1R11.0 MVS JCL Reference z/OS V1R10.0-V1R11.0
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Modifying Procedures

z/OS V1R11.0 MVS JCL Reference z/OS V1R10.0-V1R11.0
SA22-7597-13




There are two ways you can modify a procedure:

•Using system symbols and JCL symbols
•Using overrides.
Using system symbols and JCL symbols, you can design your procedures to be easily modified. If the procedure does not contain required system symbols and JCL symbols, you can override the statement.

For its current execution, you can override an in-stream or cataloged procedure by:

•Overriding, nullifying, or adding EXEC statement parameters
•Overriding, nullifying, or adding parameters to DD or OUTPUT JCL statements
•Adding DD or OUTPUT JCL statements
Overriding a parameter modifies only that parameter; the system uses all other parameters on the original statement. For example, if you override the data set name on a DD statement that includes a UNIT and VOL=SER parameter, the system will still use the UNIT and VOL=SER parameters.

Invalid parameters in a procedure cannot be corrected through overrides. Before processing overrides, the system scans the original procedure statements for errors and issues error messages.





--------------------------------------------------------------------------------
Notices | Terms of use | Support | Contact z/OS

URL: publib.boulder.ibm.com/infocenter/zos/v1r11/topic/com.ibm.zos.r11.ieab600/iea2b69022.htm

Copyright IBM Corporation 1990, 2010
This information center is Built on Eclipse™ ( Use [URL] BBCode for External Links ).



Gerry
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Wed Feb 27, 2013 6:29 pm
Reply with quote

You can copy the entire Proc instream into your Job and correct the errors there.

This will accomplish the same end result.

Hopefully the proc will corrected soon.
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top