Page 2 of 3

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 10:26 pm
by Aoxx
FYI i am not asking for anyone to write this out for me, I will attempt to figure that out on my own, starting thing i am asking now is "If you were to be coding a REXX exec with the intention of send a command to CA7 or SAR (which ever would work better) what command or instruction would you use to do so?" I figured start with the top point and work the rest of the way.

Re: Rexx to check if jobs have ran.

PostPosted: Sun Apr 21, 2013 12:55 am
by prino
Aoxx wrote:FYI i am not asking for anyone to write this out for me, I will attempt to figure that out on my own, starting thing i am asking now is "If you were to be coding a REXX exec with the intention of send a command to CA7 or SAR (which ever would work better) what command or instruction would you use to do so?" I figured start with the top point and work the rest of the way.


address CA7 "whatever CA7 command"
address SAR "whatever SAR command"

Re: Rexx to check if jobs have ran.

PostPosted: Sun Apr 21, 2013 1:26 am
by Aoxx
Thanks Prino, so far what i have come up with is:

 /* REXX */
 
ADDRESS XPVIEW                     

XPVIEW.DBASE = 'XXX.VIEWDB03'
       
'LIST GEN=* ID=THEJOBXX


or

 /* REXX */
 
ADDRESS XPVIEW                     

XPVIEW.DBASE = 'XXX.VIEWDB03'
       
'/LIST ID=jobname'


but neither are returning anything to me but errors

Re: Rexx to check if jobs have ran.

PostPosted: Sun Apr 21, 2013 3:24 am
by NicC
Number 1 thing to do when debugging Rexx is use the Trace command - I use Trace ?i others prefer Trace ?r. Just depends on the level of detail you want from the trace. Also check your return codes.

I do not know if XPVIEW is a valid environment or not. I've never come across it but then I mostly come across IBM software.

Re: Rexx to check if jobs have ran.

PostPosted: Sun Apr 21, 2013 9:20 pm
by Pedro
Use the SDSF rexx api to check if a job has completed.

Re: Rexx to check if jobs have ran.

PostPosted: Sun Apr 21, 2013 9:55 pm
by enrico-sorichetti
googling for CA7 REXX EXAMPLES returned ...

... you can invoke CA-7 from a REXX by using the CA7REXX sample code in CAICLIB.
If you don't know where your CAICLIB is, you'll need to contact your site CA-7 support person to find out...

Re: Rexx to check if jobs have ran.

PostPosted: Sun Apr 21, 2013 11:18 pm
by Aoxx
Thank you for the replies, i am at home today so i dont have the ability to test anything right now, I have sent an email to the CA team at my work but was advised by our storage admin that they are working on a new service desk (ticketing system) application and i might not get any help with this for a while. I did find one of our automation team members that seems to have written some rexx coding back when he was on the mainframe team years ago and have reached out to him, and of course waiting on reply from him, when i go back in i will try looking into the CAICLIB to see if i can find any connection towards it. **thank you guys for this, this is what i am kinda looking for. Just basically ideas on paths to take to get through to this. If anyone has any more ideas please throw them at me. I did receive a few PMs on the other forum about some things to try but my remote from home abilities is having some issues with getting through all of our securities measures. might just need to stop in and grab one of the laptops lol.

Re: Rexx to check if jobs have ran.

PostPosted: Mon Apr 22, 2013 7:15 pm
by Ed Goodman
As a pure hacker strategy, I would start by looking for datasets beginning with 'IBMBK', which is IBM book manager. CA7 is old enough to possibly have book manager files. That will at least give you the API names you need to work with.

I am siding with a non-REXX approach too. Chances are, CA7 has a utility to do exactly what you need in a batch job. We use BMC's Control-M, and I have batch jobs set up with it to do this. So look for a utility.

Re: Rexx to check if jobs have ran.

PostPosted: Fri Apr 26, 2013 1:00 am
by Aoxx
I got in contact with some of our program teams today and was able to get enough info to actually get this done, while i was on completely the wrong course lol, i was able to construct this and get it to run.If anyone thinks it would be valueable to them please let me know would be happy to share what i found.

Re: Rexx to check if jobs have ran.

PostPosted: Fri Apr 26, 2013 7:13 am
by dick scherrer
Hello,

Yes, posting what you found may help someone else in the future (even in the present<g>).