View previous topic :: View next topic |
Author |
Message |
haseen_mohammed Beginner
Joined: 20 Feb 2006 Posts: 27 Topics: 14
|
Posted: Thu Nov 02, 2006 3:07 am Post subject: Passing Return code back to CICS program from a spooled Batr |
|
|
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 |
|
 |
bauer Intermediate
Joined: 10 Oct 2003 Posts: 317 Topics: 50 Location: Germany
|
Posted: Thu Nov 02, 2006 3:22 am Post subject: |
|
|
haseen_mohammed,
are you talking about an IMS batch job, which is started passing jcl from cics program to internal reader ? |
|
Back to top |
|
 |
haseen_mohammed Beginner
Joined: 20 Feb 2006 Posts: 27 Topics: 14
|
Posted: Thu Nov 02, 2006 4:10 am Post subject: |
|
|
Hi Bauer,
Not sure about IMS batch jobs
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 |
|
 |
bauer Intermediate
Joined: 10 Oct 2003 Posts: 317 Topics: 50 Location: Germany
|
Posted: Thu Nov 02, 2006 4:40 am Post subject: |
|
|
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 |
|
 |
haseen_mohammed Beginner
Joined: 20 Feb 2006 Posts: 27 Topics: 14
|
Posted: Thu Nov 02, 2006 5:26 am Post subject: |
|
|
Yes Bauer,
You are correct!!
Haseen |
|
Back to top |
|
 |
bauer Intermediate
Joined: 10 Oct 2003 Posts: 317 Topics: 50 Location: Germany
|
Posted: Thu Nov 02, 2006 7:54 am Post subject: |
|
|
I'm not sure about a mechanism to wait in the cics transaction for completion of a batchjob.
Sorry, no proposel. |
|
Back to top |
|
 |
|
|