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 parms to CICS Subpgm called from a driver batch pgm

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


Joined: 08 Sep 2005
Posts: 1
Topics: 1

PostPosted: Thu Sep 08, 2005 4:56 am    Post subject: Passing parms to CICS Subpgm called from a driver batch pgm Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Thu Sep 08, 2005 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Koleman
Beginner


Joined: 08 Sep 2005
Posts: 2
Topics: 1

PostPosted: Fri Sep 09, 2005 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Fri Sep 09, 2005 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Sep 09, 2005 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
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