Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Requirement to submit job and scan a report

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Requirement to submit job and scan a report
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: 8620
Location: Back in jolly old England

PostPosted: Wed Nov 19, 2008 5:12 pm    Post subject:
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

Site Director


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

PostPosted: Thu Nov 20, 2008 12:22 am    Post subject:
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

Senior Member


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

PostPosted: Thu Nov 20, 2008 3:06 am    Post subject: Reply to: Requirement to submit job and scan a report
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    Post subject: Requirement to submit job and scan a report
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

Senior Member


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

PostPosted: Tue Jan 27, 2009 6:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How many people submit job? Pedro All Other Mainframe Topics 2 Thu Oct 26, 2017 2:59 am
No new posts Copying part of the report using SARBCH Aedulla CA Products 1 Tue Oct 24, 2017 9:24 am
No new posts Report cost in CA-dispatch Nileshkul CA Products 3 Wed Jun 07, 2017 10:32 pm
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us