Hello,
i want to know if there’s a way to catch
the return code of a jcl submitted by natrje.
I want to have on my natural interface the return code
provided by SDSF Output for my users.
I use
“CALL ‘NATRJE’ CARTE-G COMPTE FLAG RETHEX”
in my program.
My jcl uncatalog, catalog files and lauch the program.
I have heard about ULSRRJE …
I know the job name.
Excuse me for my english, i’m french
Regards,
Florian GAULIER
GFI
This is not available with native Natural. You need an add-on product, Entire System Server.
wkk
(wkk)
March 6, 2007, 10:12pm
3
Using Entire System Server, you may doing this job as follows:
PROCESS SUBMIT USING NODE = nnn
, DSNAME = ‘datasetname’
, MEMBER = ‘mebername’
GIVING ERROR-CODE ERROR-TEXT JOB-NUMBER JOB-ID
PROCESS SUBMIT USING NODE = nnn
, DSNAME = ‘datasetname’
, MEMBER = ‘membername’
, FUNCTION = ‘CLOSE’
GIVING ERROR-CODE ERROR-TEXT JOB-NUMBER JOB-ID
The field JOB-NUMBER contains now the JES job-number, and at a later
point of time, you may read the job from JES queue with
FIND READ-SPOOL WITH JOB-NUMBER= xxxx
AND NODE = nnn
AND TYPE = ‘CC’
AND DATA-SET = 1
PRINT RECORD
END-FIND
with this coding you may read the completion-code of a given job.
Thanks for all your reply.
I try as soon as possible.
Hi, i find fex time to do this.
So i use
"FIND SPOOL-QUEUE-LDA WITH
NODE EQ 999
AND JOB-NAME EQ