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
 

 

Can you override a JCL error in a Proc?

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

New User


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

PostPosted: Wed Feb 27, 2013 7:18 am    Post subject: Can you override a JCL error in a Proc?
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: 1703
Location: Australia

PostPosted: Wed Feb 27, 2013 8:45 am    Post subject:
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: http://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™ ( www.eclipse.org ).



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

Active Member


Joined: 01 Dec 2006
Posts: 646
Location: Pennsylvania

PostPosted: Wed Feb 27, 2013 6:29 pm    Post subject:
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    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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


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