View previous topic :: View next topic |
Author |
Message |
mohanj28 Beginner
Joined: 08 Sep 2005 Posts: 1 Topics: 1
|
Posted: Thu Sep 08, 2005 4:56 am Post subject: Passing parms to CICS Subpgm called from a driver batch pgm |
|
|
I need to call CICS subprogram from a batch driver program and pass some parms to the subprogram.
In the driver i have the call like this
CALL CICS-SUBPGM USING PARM-GROUP.
END-CALL.
I have the PARM-GROUP defined in the cics subpgm linkage section.
When the CALL statement is encontered , the CICS pgm is called but the parm values are NOT passed to the CICS pgm . Why is this happening ?
I cannot use the call in the driver like
CALL CICS-SUBPGM USING DFHEIBLK
DFHCOMMAREA
CICS-SUBPGM.
If i call like this the driver will become a CICS pgm .
I want to have the driver as a plain batch.
Any help would be of great value. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
Posted: Thu Sep 08, 2005 8:07 am Post subject: |
|
|
Quote: |
I cannot use the call in the driver like
CALL CICS-SUBPGM USING DFHEIBLK
DFHCOMMAREA
CICS-SUBPGM.
If i call like this the driver will become a CICS pgm .
|
mohanj28,
Says who ? Just because you had DFHEIBLK and DFHCOMMAREA does not mean it is a cics PGM. Just define a dummy definitions of DFHEIBLK and DFHCOMMAREA. And you don't have to go thru cics translator when compiling the batch pgm.
Check this link which explains in detail about calling sub-programs from cobol
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP3P00/1.4.5?DT=20011211104148
ex:
Code: |
IDENTIFICATION DIVISION.
PROGRAM-ID. COBBTCH.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 DFHEIBLK PIC X.
01 DFHCOMMAREA PIC X.
01 PARM1 PIC X(10) VALUE 'XXXXXX'.
PROCEDURE DIVISION.
CALL 'CICS-PGM' USING DFHEIBLK DFHCOMMAREA PARM1.
GOBACK.
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Koleman Beginner
Joined: 08 Sep 2005 Posts: 2 Topics: 1
|
Posted: Fri Sep 09, 2005 4:27 am Post subject: |
|
|
More doubts?
Can a batch program call a CICS sub-program by passing dummy areas with appropriate value, if CICS-subprogram has CICS statements in it??
How would batch job interact with CICS in that case? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
Posted: Fri Sep 09, 2005 4:34 am Post subject: |
|
|
Koleman,
Did you try reading the link which was provided by me in the above post?
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Sep 09, 2005 9:51 am Post subject: |
|
|
I think the question is how to invoke a program from a non-cics environment (batch) and have that program run within CICS. Just calling it does not get CICS involved at all. I don't know much about CICS, but is this what EXCI is for? (or something like that) |
|
Back to top |
|
 |
|
|