On 10/31/2011 2:32 PM, Roberts, John J wrote:
Would it be feasible to submit the job with TYPRUN=HOLD (TYPRUN=SCAN is 
irreparably
broken) and scan the resolved JESJCL with SDSF, then cancel it?
No SDSF at this shop, yet.  We use $AVRS and some other piece of junk which is 
a small improvement on ISPF 3.8.

But you might be on the right track.  From what I have read, JCL processing 
goes thru these stages: Reader, Converter, Interpreter, Resource Allocation, 
Job Selection and Scheduling, Output, and Purge.  It seems that TYPRUN=SCAN 
only does the reader and converter phases.  I suspect TYPRUN=HOLD is probably 
the same, or maybe it does the Interpreter too.  In any event, the converter 
phase does the PROC/SET/INCLUDE resolution and stores the result as C/I text on 
the JES SPOOL.  If only there was a way to pull this out of spool and write to 
a regular dataset.

Unlike JES2, JES3 C/I does both conversion and interpretation before execution. In addition, JES3 provides the JCLTEST and JSTTEST tools for doing even more in-depth JCL testing. From z/OS JES3 Initialization and Tuning Guide:

"During the prescan phase, the JCL for the job is examined for PGM=JCLTEST
or PGM=JSTTEST. If PGM=JCLTEST is found on an EXEC statement, the JCL is
interpreted and the job is then express canceled on completion of the CI
DSP.  If PGM=JSTTEST is found on an EXEC statement, the job is processed
through the prescan and postscan phases, a printed format of the job
summary table (JST) is printed on the JESYSMSG data set, and the job is
then canceled-with-print on completion of the CI DSP. For more information
on JCLTEST and JSTTEST, see z/OS JES3 Diagnosis."

You can write a REXX that submits your jobs, changes the EXEC to PGM=JSTTEST and then examines the results. The JST table will tell you lots of great information about data set use.

You can use the TSO/E OUTPUT command to copy the results from SPOOL to a data set. Also, if you submit the job(s) via FTP, you can get the results back via FTP. [Better tools are also available... ;-) ]

--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
310-338-0400 x318
edja...@phoenixsoftware.com
http://www.phoenixsoftware.com/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to