On 6/5/2025 7:47 AM, Dave Day wrote:
I would like to retrieve a Jes dataset from within the same started
task that creates it, and writes to it. I've got code that will
retrieve the output of batch jobs that the task submits to the
internal reader that work.
However, when I try to get the task's Jes datasets using Put/Get,
I either get SSOBRETN of SSS2EODS, with reason code 240(no matching
datasets), or SSOBRETN of SSS2INVA.
SSS2INVA if I set SSS2SEL1 flags SSS2SJBN + SSS2SJBI. SSS2SEL5
flag SSS2SRON. SSS2JOBN is set to the started tasks name, with
SSS2JBIL and SSS2JBIH set to the Jes jobid pulled from the JSABJBID.
SSS2EODS if the above are set plus SSS2SEL6 flag SSS2STPI.
In searching the manual on using SAPI I found this:
" • Data sets available for selection are those that are not
currently being processed."
Does this mean I can't get the data because the datasets are
open? If not, what selection criteria do I set to get Jes data for an
active started task from within that started task?
For SAPI (SSI 79) you will need to CLOSE the data set and spin it off.
Otherwise, you should be able to access it using SSI 80 and SPOOL Data
Set Browse (SDSB).
https://www.ibm.com/docs/en/zos/3.1.0?topic=programming-jes-spool-data-set-browse
--
Phoenix Software International
Edward E. Jaffe
831 Parkview Drive North
El Segundo, CA 90245
https://www.phoenixsoftware.com/
--------------------------------------------------------------------------------
This e-mail message, including any attachments, appended messages and the
information contained therein, is for the sole use of the intended
recipient(s). If you are not an intended recipient or have otherwise
received this email message in error, any use, dissemination, distribution,
review, storage or copying of this e-mail message and the information
contained therein is strictly prohibited. If you are not an intended
recipient, please contact the sender by reply e-mail and destroy all copies
of this email message and do not otherwise utilize or retain this email
message or any or all of the information contained therein. Although this
email message and any attachments or appended messages are believed to be
free of any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by the
sender for any loss or damage arising in any way from its opening or use.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN