MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing Return code back to CICS program from a spooled Batr

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Thu Nov 02, 2006 3:07 am    Post subject: Passing Return code back to CICS program from a spooled Batr Reply with quote

Hi,

There is a CICS program which will spool a job to invoke a batch program. Is there anyway I can get back the return code of the execution (or set inside the program) of Batch program back to the CICS program which spooled the job. I need this for controlling the program flow.

Thanks & Regards,
Haseen
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Thu Nov 02, 2006 3:22 am    Post subject: Reply with quote

haseen_mohammed,

are you talking about an IMS batch job, which is started passing jcl from cics program to internal reader ?
Back to top
View user's profile Send private message
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Thu Nov 02, 2006 4:10 am    Post subject: Reply with quote

Hi Bauer,

Not sure about IMS batch jobs Embarassed

To be specific .. this is a cobol-db2 batch program which will be invoked by the JCL (spooled by the CICS program).

Thanks & Regards,
Haseen
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Thu Nov 02, 2006 4:40 am    Post subject: Reply with quote

So call is done like this, right ?

//S099 EXEC PGM=IKJEFT01,DYNAMNBR=20
//STEPLIB DD DSN=....
//SYSTSIN DD *
DSN SYSTEM(??)
RUN PROGRAM(??) PLAN(??) LIB('??')


So DB2 and CICS Program run under control of two diffrent transaction monitors, both programs run asynchron.

Is this ths situation?
Back to top
View user's profile Send private message
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Thu Nov 02, 2006 5:26 am    Post subject: Reply with quote

Yes Bauer,

You are correct!!

Haseen
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Thu Nov 02, 2006 7:54 am    Post subject: Reply with quote

I'm not sure about a mechanism to wait in the cics transaction for completion of a batchjob.

Sorry, no proposel.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group