Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to use CALL in CICS Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: How to use CALL in CICS Program
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    Post subject: Re: HOW CAN I USING CALL IN CICS?
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    Post subject: Re: HOW CAN I USING CALL IN CICS?
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: 2360
Location: Israel

PostPosted: Wed Dec 28, 2005 12:40 pm    Post subject:
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    Post subject: Re: HOW CAN I USING CALL IN CICS?
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: 2360
Location: Israel

PostPosted: Thu Dec 29, 2005 11:50 am    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Dec 29, 2005 2:28 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us