Rexx to check if jobs have ran.



IBM's Command List programming language & Restructured Extended Executor

Re: Rexx to check if jobs have ran.

Postby Aoxx » Sat Apr 20, 2013 10:26 pm

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.
Last edited by Aoxx on Sat Apr 20, 2013 10:33 pm, edited 1 time in total.
Aoxx
 
Posts: 10
Joined: Sat Apr 20, 2013 6:25 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx to check if jobs have ran.

Postby prino » Sun Apr 21, 2013 12:55 am

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"
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Rexx to check if jobs have ran.

Postby Aoxx » Sun Apr 21, 2013 1:26 am

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
Aoxx
 
Posts: 10
Joined: Sat Apr 20, 2013 6:25 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx to check if jobs have ran.

Postby NicC » Sun Apr 21, 2013 3:24 am

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Rexx to check if jobs have ran.

Postby Pedro » Sun Apr 21, 2013 9:20 pm

Use the SDSF rexx api to check if a job has completed.
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Rexx to check if jobs have ran.

Postby enrico-sorichetti » Sun Apr 21, 2013 9:55 pm

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...
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Rexx to check if jobs have ran.

Postby Aoxx » Sun Apr 21, 2013 11:18 pm

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.
Aoxx
 
Posts: 10
Joined: Sat Apr 20, 2013 6:25 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx to check if jobs have ran.

Postby Ed Goodman » Mon Apr 22, 2013 7:15 pm

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.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Rexx to check if jobs have ran.

Postby Aoxx » Fri Apr 26, 2013 1:00 am

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.
Aoxx
 
Posts: 10
Joined: Sat Apr 20, 2013 6:25 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx to check if jobs have ran.

Postby dick scherrer » Fri Apr 26, 2013 7:13 am

Hello,

Yes, posting what you found may help someone else in the future (even in the present<g>).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

PreviousNext

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post