Search the web
Sign In
New User? Sign Up
os390andmvs · OS390 and MVS - For z/OS, OS/390 and MVS System Programmers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Passing Instream JCL Variables to Rexx Script   Message List  
Reply | Forward Message #620 of 637 |
Re: Passing Instream JCL Variables to Rexx Script

Hi,
since this message was posted already 2 months ago, you might have
found a solution already.

If not, here some hints:

- passing information to a TSO-user from within a rexx is no big deal.
You got the userid, you know the returncode that you want to set and
you can code a "TSO SEND '.....' USER(..) LOGON " from within your
REXX.

- getting the information about Job, Jobstep etc is not as easy, but
can also be achieved. What you need to do is to write a small program
in COBOL and call this program from within your REXX, retrieve the
information produced by the program and add it to your TSO Send
command
Here is a link to one of a couple of sites where you will find how
such a program looks like:

http://supportline.microfocus.com/documentation/books/mx25sp1/cocblk.h
tm

The trick behind that program is simple:
SET ADDRESS OF PSA TO NULL.
From this point onward you can get information from most structures
in your address space and around.

If you need other information apart from Jobname,job number and other
infos found in this sample however, it will be tedious work and you
will have to have some knowledge of the internal structures of z/OS

Best regards

Holger Grote
--- In os390andmvs@yahoogroups.com, "kenp11@..." <kenp11@...> wrote:
>
> Hi,
> I have a job stream that executes a rexx exec at the end .
What i am looking for his a way to send the JOBNAME, JOB NUMBER and
Highest Condition Code to the last step which is a REXX exec. I would
like the same information that is available from the NOTIFY parm on
the JOBCARD in JES2 that sends the information to the TSO userid. Is
there anyway i can get the information and pass it to the REXX exec?
> The REXX Exec is a simple socket SMTP email to notify users.
> Can this be done without storing variables? Also I heard of
CONDCODE rexx exec from XMITIP. Does anyone have a working copy and
how it works?
> I am just trying to send the NOTIFY message to email users instead
of TSO
> Thanks for your help.
>
> _____________________________________________________________
> Hotel pics, info and virtual tours. Click here to book a hotel
online.
>
http://thirdpartyoffers.netzero.net/TGL2211/fc/Ioyw6ijmgiaGJBx9bIuO4uX
heb6LCXQkkc18415NBrMwqgsht2y9fZ/
>





Thu Jun 12, 2008 8:15 am

groteholger
Offline Offline
Send Email Send Email

Forward
Message #620 of 637 |
Expand Messages Author Sort by Date

Hi, I have a job stream that executes a rexx exec at the end . What i am looking for his a way to send the JOBNAME, JOB NUMBER and Highest Condition Code to...
kenp11@...
kpvc7
Offline Send Email
Apr 22, 2008
5:22 am

Hi, since this message was posted already 2 months ago, you might have found a solution already. If not, here some hints: - passing information to a TSO-user...
groteholger
Offline Send Email
Jun 12, 2008
2:21 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help