Page 1 of 3

Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 6:30 pm
by Aoxx
I am trying to figure out how to write code for having REXX go out and check if a list of jobs have run, i have taken some basic tutorials on REXX coding but have not seen any commands that pass a command to another area (such as CA7 or SAR) wondering if anyone has this built or can push me in the right direction. Any advice is appreciated.

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 7:39 pm
by Aoxx
After reading some of the other posts i figured i should be a little more specific with what i am trying to do. Ok so i am new to the mainframe field (who woulda thought right?) I dont have any educational background in IT so sorry if i ask a lot of questions that seem basic. Everyday when my team comes in, we get "cycles" to watch, i watch 2 cycles, in the process of watching these we are checking to see if specific jobs have finished at set intervals (most of them are on "every 2 hours" marks) so i have to go out and check the same jobs everyday repeatedly. Currently i am going into CA7 and doing an ||LRLOG,JOB=ABCD1234,DATE=* || and it works...... but it also take s about 20 min to check the jobs and that's if i am on a roll with typing. What i want to do is see if i can write this all up in a REXX exec to go out and check these jobs at certain times, i am not sure if REXX can go out and touch CA7 but i figured it can go out and touch SAR so that might be an option. Again sorry if this is basic stuff but most of my team doesn't use REXX and doesn't have a whole lot of advice.

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 7:57 pm
by enrico-sorichetti
what is Your skill level in REXX ?

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 8:32 pm
by Aoxx
Not the best, i have been self teaching for a couple days now. I can write some simple things but i am not good with reading the advanced stuff.

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 9:40 pm
by enrico-sorichetti
unfortunately that' not enough!

did You check the CA 7 and the SAR manuals for the existence of a REXX interface
that' s the first thing to do.

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 9:44 pm
by Aoxx
We dont have manuals that are accessible as far as i know, I am the first person to start working here that didnt have a ton of experience in over 10 years. They dont really have a way to train me lol.

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 9:58 pm
by enrico-sorichetti
We dont have manuals that are accessible as far as i know,


then, unfortunately, You are bound to fail miserably...
how can You expect to interact with a product if You do not have the manuals/documentation available ???

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 10:01 pm
by NicC
Your shop uses CA-7 therefore we assume it is doing so legally. Furthermore if it is legal then the manuals are available somewhere in the place and if they are lost then they can be re-ordered. The rexx manuals can be linked to from the forum or googled for or just dive into www.ibm.com and start searching.

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 10:07 pm
by enrico-sorichetti
for the mother of all knowledge in the IBM manuals start from here
http://www-03.ibm.com/systems/z/os/zos/ ... index.html

Re: Rexx to check if jobs have ran.

PostPosted: Sat Apr 20, 2013 10:16 pm
by Aoxx
yes, i work for a rather large company so they dont keep the manuals lying around, It is very "legal" for us to be using CA7 along with all other CA products as well as IBM, EMC, Hitachi, Oracle, STK, and what ever else we have down stairs. We are using 9 zEC12 boxes here with 3 identical sites running the same in other areas of the country along with 2 out of country back up sites. They dont really care to order me manuals for one of our third party programs. I have been advised by my whole team to not use REXX as they think it is useless and i should be using something else, therefor they are not encouraged to help me when i wanted to automate this duty. I will atempt to look up the CA-7 manuals online and see where i go but i did do searches through google for pass commands to SAR and CA7 with no luck.