View previous topic :: View next topic
|
Author |
Message |
ashishwach
New User
Joined: 07 Nov 2008 Posts: 19 Location: India
|
|
|
|
Hi ppl,
In our project, we do JCL Scans before we implement anything in production, let me first explain what we do, and then I will explain the requirement..
JCL Scans is used to check whether all the JCL and Procs that we have created to implement are free from errors or not..
So we submit a job in which we give the name of JCl/PROC that needs to be scanned and the member where we want to store the scan result...
Now, that job automatically checks for any errors in the JCL/PROC and stores those in the output member provided..
So, we want to automate this whole process. Following are the requirements for this -
Step-1 Submit the job that will have the JCL name in it.
Step-2 Scan the report for the errors that we specify..
For these two tasks mentioned above, we want to develop a tool in rexx..
Please tell me if that is possible..and how?? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yes it is possible, you know where the output is, so you can then read it and look for whatever it is you want to look for and act accordingly. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Keep in mind that step-1 may have to sit in the queue until it gets a turn at an initiator. . . It may not run instantly on days when the mainframe is backed up.
fwiw. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
You did not indicate so, but implied is that you want to wait for the job to complete and then scan the report.
I cannot imagine that scanning the JCL takes very much resources, so I recommend a slightly different approach.
Instead of submitting a batch job, I recommend calling the same program from a rexx program and when it is done, the next rexx instructions are invoked. Issue a browse call after the scan program completes.
For example, if your JCL is like this:
Code: |
//SCAN EXEC PGM=myscan
//STEPLIB DD DISP=SHR,DSN=my.load
//IN DD DISP=SHR,DSN=my.dsn1(jcl1)
//OUT DD DISP=SHR,DSN=my.dsn2(rpt1)
|
instead, code a rexx program that does similar:
Code: |
Address TSO
"ALLOC F(IN) DSN('my.dsn1(jcl1)') SHR"
"ALLOC F(OUT) DSN('my.dsn2(rpt1)') SHR"
"CALL 'my.load(myscan)'
Address ISPEXEC "BROWSE DSN('my.dsn2(rpt1)')" |
The code is untested.
Other types of work is better to be run in a batch job. |
|
Back to top |
|
|
bala kalluri Warnings : 1 New User
Joined: 08 Jan 2009 Posts: 21 Location: INDIA
|
|
|
|
HI ashishwach,
Even my requirement is the same as urs. Could u pls share ur code snippet with me. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
It's been a while when ashishwach last posted - start with what is been suggested by Pedro & post us back with the outcome & questions.. |
|
Back to top |
|
|
|