Using TYPRUN=SCAN does not catch all possible JCL errors, but it's a good start to ensuring that your job will run. TYPRUN=SCAN requests that the system scan this job's JCL for syntax errors, without executing the job or allocating devices.
This parameter asks the system to check for: * Spelling of parameters and some subparameters that is not correct. * Characters that are not correct. * Unbalanced parentheses. * Misplaced positional parameters on some statements. * In a JES3 system only, parameter value errors or excessive parameters. * Incorrect syntax on JCL statements in cataloged procedures invoked by any scanned EXEC statements. You might still encounter JCL errors after using TYPRUN=SCAN, because this request checks the JCL only through the converter, not the interpreter. The difference is that the converter basically checks all expressions to the left of an equal sign plus some expressions to the right of an equal sign (and issues messages that start with IEFC), while the interpreter checks all expressions to the right of an equal sign (and issues messages that start with IEF). For example, a data set name containing a qualifier that exceeds eight characters, such as DSN=L9755TB.JCL.TEST19970103 would not be flagged by TYPRUN=SCAN but would be caught by the interpreter. >From manual "Reusable JCL collection". HTH, Greg Shirey Ben E. Keith Co. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Lynd, Eugene C. Sent: Monday, August 24, 2009 10:01 AM To: [email protected] Subject: TYPRUN=SCAN TYPRUN=SCAN does not do a complete job of syntax-checking JCL. For example, DISP=SH is not flagged by the scan, but gets a JCL error if submitted normally (z/OS 01.09.00). A user did a ton of TYPRUN=SCAN submissions manually, and while I was playing with a tool to automate the process I encountered this inconvenient truth. Anyone know of more examples, or of a fix? Gene Lynd ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

