As there are hundreds of JCL, PROCS, and different substitution combinations possible, its a bit tricky when you're searching for a job that accesses a particular dataset.
So what I want to do is submit all of the JCLS with TYPRUN=SCAN to a dataset where I will be able to search for a particular dataset later on.
Once I figure out how to send the interpreted JCL with TYPRUN=SCAN to a dataset instead of JES2, I should be able to figure out the rest.
so... anyone know how to send the output of TYPRUN=SCAN to a dataset?
Do an XDC from spool panel and save it into a file.
If your shop has ASG-JOB/SCAN installed, it supports a feature for running batch job to check the syntax of JCL's. You could store the o/p in a dataset and then try searching for the dataset names of your interest.
Yes, XDC would work, but when you've got thousands of jobs, its impractical to perform XDC thousands of times.
.... after some research, I've found a way to get the data from SDSF directly:
Code:
//SDSFBTCH JOB ' ',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),REGION=0M,
// NOTIFY=&SYSUID
//*------------------------------------------------------------
//* JOB TO RUN SDSF IN BATCH
//*------------------------------------------------------------
//SDSFSTEP EXEC PGM=SDSF,PARM='++60,228'
//ISFOUT DD SYSOUT=*
//ISFIN DD *
PRINT ODSN 'USERNAME.DATA.FLATFILE'
OWNER USERNAME
ST
PRE JOBNAME
FIND JOBNAME
++?
FIND JESJCL
++S
PRINT
PRINT CLOSE
/*
This will print out the interpreted JESJCL in SDSF to USERNAME.DATA.FLATFILE.
... so looks like the steps would be to
- write a rexx to edit all JCLs to include TYPRUN=SCAN
- program to batch submit all jobs
- extract JESJCL from SDSF.
- wola!
Will post up my final solution when I get round to writing it.
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
Posted: Thu Jun 04, 2009 10:26 am Post subject:
I'm glad you got a good result because anyone who would say "wola!" deserves to have a good day _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
1> The solution which Ram gave (ASG-JOB/SCAN) ie., which uses JSCAN you can submit the batch job directly and get the all outputs into a PDS in one single step. It works as I tried it earlier.
2> what scheduler do you use in your shop?
If its CA7, then you can give the prodcution file name using LDSN option and
LDSN,DSN=MY.PROD.FILE,LIST=ALL and it will show you all the JCL's using that file.
3> If you have DOCUTEXT (Which SCLM uses) installed, you can use the Option 2. ONLINE XREF Query and get the desired result.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum