Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to get a return code of an jcl submitted thru cics prog

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 19, 2010 2:02 pm    Post subject: how to get a return code of an jcl submitted thru cics prog
Reply with quote

hi,
i am facing a problem as i am submitting a jcl from cics region using (spool write) but i need to know what is the return code of that jcl in the same program is there any way how to get the return code..
thanks..
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Tue Oct 19, 2010 2:10 pm    Post subject: Reply to: how to get a return code of an jcl submitted thru
Reply with quote

NO what You ask cannot be done!
the best thing would be to review the requirement
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 19, 2010 2:14 pm    Post subject: re
Reply with quote

hi,
my requrement is to only know if t code was executed successfully or not (RC=0), is there a way to check only this much..
thanks
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Oct 19, 2010 2:44 pm    Post subject:
Reply with quote

In response to Enrico's
Quote:
NO what You ask cannot be done!
the best thing would be to review the requirement

you say
Quote:
my requrement is to only know if t code was executed successfully or not (RC=0), is there a way to check only this much


In what way does this show a review of the requirement? What you want can't be done !

Garry.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Oct 19, 2010 4:02 pm    Post subject:
Reply with quote

ankit saxena,

this type of request is similar to an interactive ISPF panel waiting on the results of a submitted job.

because the execution of the job can be delayed for a multitude of reasons,
thus resulting in a period of time between SUBMIT and completion.
Nothing should be waiting
not an interactive ISPF Panel
certainly not a module in CICS

people who makes such designs, only display their basic ignorance of mainframe computers
The Mainframe is not a PC

Resolving the status of a submitted job should never be part of the submitting task.
a separate task should be designed to respond to the results of submitted jobs,
however the results are gathered.

a suggestion:
the module in CICS that SUBMITs the job,
also write to a queue (which as a file is accessable by a batch job) the job name
or
an entry to a db2 table
or
a step within the submitted job, write to a batch file with particulars of the job.


a batch task should be designed to access
the queue generated file
or batch file from job submitted
or db2 table
(to determine if jobs have been submitted)
and if so, access the JES system - SDSF, ...
(or the batch job results in the batch generated file)

and then write results to a file (which is defined by cics as a queue)
which fires off a transaction to process the 'results of the job',
whatever process is required of the job results.

Often a db2 row is written/updated by the submitting task in cics
and updated/deleted by the submitted job.
then the 'job results processor' accesses this db2 table for outstanding jobs.

a lot of work for an automated feedback...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
No new posts Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us