Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
CALL vs START vs LINK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: CALL vs START vs LINK
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Thu Jun 19, 2008 6:27 pm    Post subject: Re: CALL vs START vs LINK
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: 757
Location: Germany

PostPosted: Thu Jun 19, 2008 6:28 pm    Post subject:
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: 757
Location: Germany

PostPosted: Thu Jun 19, 2008 6:32 pm    Post subject:
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    Post subject: Reply to: CALL vs START vs LINK
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    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 Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 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 DIrect link of dynam/nodynam nkjain87 COBOL Programming 2 Mon Apr 24, 2017 6:23 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us