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 

Call CICS program from batch

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sinduja
Beginner


Joined: 20 Jun 2005
Posts: 29
Topics: 14

PostPosted: Mon Feb 02, 2015 2:17 am    Post subject: Call CICS program from batch Reply with quote

Hi All,

I am calling a CICS program from a batch program. The called program is getting invoked, but the data I pass in the callling program is not available in the called program.

The call in batch program is like this.

Code:
                                         
 EXEC CICS LINK                           
    PROGRAM(W01-TARGET-PROGRAM)           
    TRANSID(W01-TARGET-TRANSID)           
    APPLID(W01-TARGET-SYSTEM)             
    COMMAREA(SOMS-INPUT-FILE)             
    LENGTH(LENGTH OF SOMS-INPUT-FILE)     
    DATALENGTH(LENGTH OF SOMS-INPUT-FILE)
    RETCODE(EXCI-EXEC-RETURN-CODE)       
    SYNCONRETURN                         
 END-EXEC                                 
                                         


In the called progam..

Code:
 LINKAGE SECTION.                               
 01  DFHCOMMAREA           PIC X(1024).         
*                                               
 01  EXCI-EXEC-RETURN-CODE PIC X(5).             
*                                               
                                                 
                                                 
 PROCEDURE DIVISION.                             
********************                             
* getZIKDATA                                     
     DISPLAY 'DFHLEN' EIBCALEN                   
     MOVE DFHCOMMAREA TO WS-COMMAREA             


The above code displays length zero for EIBCALEN.

Can someone please point out what could be the problem here. Why am I not getting the data into the called program?

Thank you

Regards,
Sinduja
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Feb 02, 2015 12:06 pm    Post subject: Reply with quote

sinduja,

Look up the sample COBOL DFH0CXCC program in CICSTS*.CICS.SDFHSAMP library which shows how to use EXCI interface.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dfhtmp13/3.7.3.1?
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sinduja
Beginner


Joined: 20 Jun 2005
Posts: 29
Topics: 14

PostPosted: Tue Feb 03, 2015 2:06 am    Post subject: Reply with quote

Thank you Kolusu. I will check this.
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 -> Application Programming 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