Reading the spool from Rexx

0 pts.
Tags:
REXX
Hi, I have a requirement to read the data from the spool and use it in the rexx program. The first step in my jcl will be a program which writes some output in to the spool(Let us assume that I will not be able to redirect the output into a dataset), then I need to run the rexx program which should read the data which are written in the spool. Can anyone help on this. Thanks in advance, Ram
ASKED: March 23, 2005  4:18 AM
UPDATED: March 26, 2005  10:17 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

While what you want to do is possible (consider that SDSF reads the contents of the SPOOL datasets), there are no native interfaces that permit this from a REXX procedure. If you must, you can invoke SDSF from the batch and enter commands to it, so that you could add a step ahead of your REXX step to SNAP the SPOOL dataset to a temporary dataset to be read by your REXX procedure. Or, you could imbed the call to SDSF in the REXX procedure (I prefer the separate step). See chapter 11 “Using SDSF in Batch” in the SDSF manual “z/OS V1R4.0 SDSF Operation and Customization” for a description of the interface. You will probably need RACF authority to be able to invoke SDSF and to issue selective commands to it.

If it were up to me, I would just have the step that creates the output write it to a temporary data set (I can’t imagine why it HAS to be written to the SPOOL by the step that creates it) and then just have my REXX procedure read and filter it while writing it to a SYSOUT file created in the REXX step. But that’s just me following the K.I.S.S. principle.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sramki
    Hi, I am using IOF. Is there any way to access IOF from rexx. Thanks, Ram
    0 pointsBadges:
    report
  • PscJohnD
    If you must read a JES SPOOL file from REXX, you will have to buy REXXTOOLS or an equivalent third party product which provides extensions to the REXX language (see http://www.open-softech.com/rexmvs.htm). Native REXX does not support reading the JES SPOOL file type.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following