View previous topic :: View next topic
|
Author |
Message |
jay86
New User
Joined: 01 Aug 2005 Posts: 14
|
|
|
|
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 |
|
|
rajakumar10
New User
Joined: 03 Aug 2005 Posts: 12
|
|
|
|
CALL statement can't be used in CICS. You have to use XCTL or LINK depending upon your requirement. |
|
Back to top |
|
|
kumar_ngl Warnings : 1 New User
Joined: 05 Aug 2005 Posts: 50 Location: chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
jay86 -
You can use CALL in your CICS programs.
See the chapter "Calling Subprograms from COBOL" in the fine manual.
O. |
|
Back to top |
|
|
vinodmaanju
New User
Joined: 10 May 2005 Posts: 28 Location: Pune
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
Back to top |
|
|
raju_rangam Warnings : 1 New User
Joined: 31 Mar 2005 Posts: 25 Location: bangalore
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
Brian's_song
New User
Joined: 27 Dec 2005 Posts: 21
|
|
|
|
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 |
|
|
umeshkmrsh
New User
Joined: 21 Sep 2005 Posts: 79 Location: India
|
|
|
|
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 |
|
|
filler
New User
Joined: 03 Aug 2005 Posts: 5
|
|
|
|
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 |
|
|
|