Explain the exact situation, when to use CALL, XCTL and LINK?
Answers were Sorted based on User's Feedback
Answer / mehdee
1- We do XCTL to another program and we do not want to
return.
2- We do LINK to another program and we do want to return.
3- We do CALL to another program and we do want to return,
and we use it if we need to pass and return more
information than what COMMAREA is holding by the "USING"
option in the CALL.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / suman kumar
A called program remains in the last used state after it
returns control but link/xctl program always brings a new copy
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / qasim
1- We do XCTL to another program and we do not want to
return.
2- We do LINK to another program and we do want to return.
3- We do CALL to another program and we do want to return,
and we use it if we need to pass and return more
information than what COMMAREA is holding by the "USING"
option in the CALL.
this is the exact use of above 3 keywords.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sriharsha s r
I worked on all the 3 situations. Using CALL statement is
very interesting.
In main program use send text command then Call subprogram
(pure batch) using call statement by passing values..
Use call when You want to call pure batch program from
CICS, but use goback statement in Subprogram to get the
value back to CICS program.
Then use once again Send text command to dispaly the value
which You receive from subprogram.
Main program:
EXEC CICS SEND TEXT from (value of variable in main
program)) END-EXEC.
CALL WS-PGM1 by using A by reference, B by content
EXEC CICS SEND TEXT from (value received from subprogram)
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / girish kumar
IN THE MAP JUST U CODE PICIN AS X(LENGTH) AND NEVER CODE THE
ANYTHING IN THE "INITIAL" JUST GIVE A BLANK SPACE.
FOR EX: IF YOU ARE DOING ADDITION USE
FUNCTION NUM VALUES(NO1I) PIC X(5).
FUNCTION NUM VALUES(NO2I) PIC X(5).
THEN COMPUTE NO1I + NO2I.
CODE LIKE THIS IN APPLICATION PROGRAM
I GET THE EXACT RESULT.
Is This Answer Correct ? | 1 Yes | 1 No |
in additon to the above answers, VSCOBOLII allows to make
CALL stmt, so you can do this in ur earlier versions
if you routine is imbedded to ur main program, then that
case CALL is more effective.
if the modification are higher ,sub program size is higher
go for LINK, once issue link that u the control to one
level down to ur calling program. and ur calling pgm will
expect a return,
Xctl is more convienent way calling a progam in CIcs,.
Is This Answer Correct ? | 0 Yes | 2 No |
What is a deadlock?
Given below code, find the value of 'x'. Perform s001-x thru s001-y. s001-x. add 1 to x . s001-1x. ------- . s001-y. perform s001-1y 10 times . s001-1y. perform s001-2y 10 times . s001-2y. perform s001-x 10 times .
What is the error condition that is set when the file specified in the NAME option is not in the FCT?
what is the difference between a return with transid and xctl? For example program. A is issuing return with transid to program b. Program a. Is isssuing xctl to program b?
Which of the following statements correctly describe the syntax of CICS command language?
What is the general Command format of CICS ?
whar is the difference bwn LINK() and XCTL()?
7 Answers Cap Gemini, CGI, IBM,
Can you issue SQL COMMIT from a CICS program?
If we wish to create bms executable, what are the basic steps that the user has to go through?
What is the eib?
The read of a record from an Intrapartition TDQ is not destructive(True or False).
Can you explain communication area?