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

CALL vs START vs LINK


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

New User


Joined: 22 Feb 2006
Posts: 27

PostPosted: Thu Jun 19, 2008 6:10 pm
Reply with quote

Does anyone have any documentation about the different performances of CICS START/LINK & CALL commands?
I have a new program which would be called by a number of existing programs. I am at loggerheads whether to use a CALL or an EXEC CICS START or EXEC CICS LINK command. Can someone help me decide which is the command that would give the best performance?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Jun 19, 2008 6:27 pm
Reply with quote

From a Main-Program -

01) A CALL to a sub-program is recommended providing that the sub-program is Called more than once.
02) A single LINK and a single Call to a sub-program are equivalent in overhead.
03) A START is a task which runs concurrently with the STARTER (IE: The Main-Program).

When you use a START, control will never be returned to the STARTER, as this is an Asynchronous/Concurrent task, unrelated to the Main-Program.

Otherwise, a CALL and a LINK will eventually return control to the Main-Program (IE: The LINKER/CALLER) and this process is Synchronous.

HTH....

Regards,

Bill
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Jun 19, 2008 6:28 pm
Reply with quote

Hi !

There is a difference between these two commands, START & LINK:

When a CICS program issues an EXEC CICS LINK command, control passes to a second program. The second program executes and, after completion, returns control back to the first program.

With the EXEC CICS START you're initiating another task.

Also look at EXEC CICS XCTL:
With that, you're terminating the current program and execute the one specified in the Command.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Jun 19, 2008 6:32 pm
Reply with quote

@Bill:

Sorry, the time you where sending your message, i was still typing mine.
You already said it. I'm getting old and turning into grey.
Back to top
View user's profile Send private message
morfius9
Warnings : 1

New User


Joined: 22 Feb 2006
Posts: 27

PostPosted: Thu Jun 19, 2008 7:07 pm
Reply with quote

Is there any extra overhead or over utilization of the resources that take place if i start say 10 transactions from the initiating program. i.e. In a loop, i have the CICS START commands that would be started with different data on each iteration of the loop?
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 Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts How can i link the RHDCSNON programa ... IDMS/ADSO 2
No new posts Start CICS transaction every day at 2AM CICS 4
Search our Forums:

Back to Top