IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Requirement to submit job and scan a report


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashishwach

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Wed Nov 19, 2008 1:59 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Nov 19, 2008 5:12 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 20, 2008 12:22 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Thu Nov 20, 2008 3:06 am
Reply with quote

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
View user's profile Send private message
bala kalluri
Warnings : 1

New User


Joined: 08 Jan 2009
Posts: 21
Location: INDIA

PostPosted: Tue Jan 27, 2009 5:22 pm
Reply with quote

HI ashishwach,
Even my requirement is the same as urs. Could u pls share ur code snippet with me.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jan 27, 2009 6:50 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Report of batch jobs JCL & VSAM 1
Search our Forums:

Back to Top