IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to use CALL in CICS Program


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jay86

New User


Joined: 01 Aug 2005
Posts: 14

PostPosted: Mon Oct 10, 2005 9:32 am
Reply with quote

icon_question.gif
I WANT TO USE 'CALL' IN CICS.

I CODE IT JUST LIKE IN COBOL BATCH,BUT IT DIDN'T WORK,DATA CAN'T TRANSMIT TO SUBPROGRAM.

CAN YOU GIVE ME SOME EXAMPLES?
I NEED YOUR HELP,THANS
Back to top
View user's profile Send private message
rajakumar10

New User


Joined: 03 Aug 2005
Posts: 12

PostPosted: Tue Oct 11, 2005 9:02 pm
Reply with quote

CALL statement can't be used in CICS. You have to use XCTL or LINK depending upon your requirement.
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Wed Dec 28, 2005 12:20 pm
Reply with quote

here is a sample for u question

EXEC CICS XCTL

PROGRAM ('PROGRAMNAME')
COMAREA(WS-COMAREA)
LENGTH (WS-LENGTH)

END-EXEC.

LINK and XCTL are like CALL and CHAIN

kumar.p.v
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Dec 28, 2005 12:40 pm
Reply with quote

jay86 -

You can use CALL in your CICS programs.

See the chapter "Calling Subprograms from COBOL" in the fine manual.

O.
Back to top
View user's profile Send private message
vinodmaanju

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Thu Dec 29, 2005 11:28 am
Reply with quote

you can't code call in cics- COBOL program. If u want to call a program then you have to use XCTL or LINK command depending on your requirement.

XCTL ---- transfer control permanently to called program
LINK ----- does not transfer control permanent and expect back to calling program
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Dec 29, 2005 11:50 am
Reply with quote

vinodmaanju -

Have you read the fine IBM's manual before answering that ?

O.
Back to top
View user's profile Send private message
raju_rangam
Warnings : 1

New User


Joined: 31 Mar 2005
Posts: 25
Location: bangalore

PostPosted: Thu Dec 29, 2005 2:22 pm
Reply with quote

there is no statement like CALL In CICS,
use Link,Xtcl for Data passing, link will use when we wnat control back, xctl wil use we no need of to get control back.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Dec 29, 2005 2:28 pm
Reply with quote

Again, there is a CALL statement in COBOL, and it can be used in any COBOL program (CICS or batch). It is not a CICS API command, it is a COBOL statement.

Please read the manual !!!!

O.
Back to top
View user's profile Send private message
Brian's_song

New User


Joined: 27 Dec 2005
Posts: 21

PostPosted: Mon Jan 09, 2006 4:36 pm
Reply with quote

I Agree with Ofer71! a Call can be used in CICS, but only at the following conditions: You can use call only when calling the VS COBOL II or the other assemble PGMs if it is in the same Load LIB, or else LINK OR Xtcl will be used.
Back to top
View user's profile Send private message
umeshkmrsh

New User


Joined: 21 Sep 2005
Posts: 79
Location: India

PostPosted: Mon Jan 09, 2006 6:11 pm
Reply with quote

I agree with ofer71. I have been coding CICS COBOL programs which use all the three CALL, XCTL and LINK.

CALL is COBOL statement.
Where as XCTL and LINK are CICS statements and need to be coded within EXEC CICS block.
Back to top
View user's profile Send private message
filler

New User


Joined: 03 Aug 2005
Posts: 5

PostPosted: Wed Jan 25, 2006 3:37 pm
Reply with quote

U can use a CALL in CICS COBOL programs. The program being called must be defined in the PPT just like an online program.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top