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 

COBOL CALL and CICS LINK

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


Joined: 03 Jan 2003
Posts: 8
Topics: 5

PostPosted: Wed Jan 28, 2004 1:45 am    Post subject: COBOL CALL and CICS LINK Reply with quote

What is the Difference between COBOL CALL and CICS LINK.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
buntyjain
Beginner


Joined: 03 Jan 2003
Posts: 8
Topics: 5

PostPosted: Wed Jan 28, 2004 2:40 am    Post subject: Reply with quote

Though I got the Answer :

" If you're accessing the sub-program ONCE, then the LINK and the CALL are equal in overhead. The difference is realized when accessing the sub-program more than one time."

But can anyone throw more light into it ?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jan 28, 2004 5:04 am    Post subject: Reply with quote

Buntyjain,

In simple terms both CALL & LINK function alike.LINK executes the program at the next logical level from its currently executing program. Upon return from a program called by LINK, execution will resume at the next statement after the LINK call.

The call also works in the same fashion. i.e upon return from a program CALLed program, execuetion will resume at the next statement after the CALL.

In CICS, XCTL executes a program at the same logical level, immediately terminating the calling program to run the program being called.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Wed Jan 28, 2004 6:50 am    Post subject: Reply with quote

Some differences:
LINK can be used between any CICS supported languages. CALL can only be used between specific language combinations.
LINK can only pass a single chunk of storage (commarea) with all parameters in it. CALL supports multiple parameters.
LINK can only be used to invoke CICS-translated programs. CALL can invoke CICS-translated programs or programs which have not been translated. CALLing a CICS translated program means you must specify DFHEIBLK and DFHCOMMAREA as the first two parameters; these must not be included if CALLing a non-CICS translated program.
There are various other considerations, detailed in the 'COBOL programming' chapter of the 'CICS application programming Guide', which is available via this board's manual links.
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