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 using CALL PLIRETC(somevalu) Pedro PL/I & Assembler 1 Wed May 09, 2018 10:25 pm
No new posts LE Modules in Link Edit John Poulakos COBOL Programming 1 Sat Apr 28, 2018 12:14 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Defining SYSLIB to USS c++ (cxx) comp... Harold Barnes All Other Mainframe Topics 2 Sat Apr 07, 2018 5:06 am
No new posts Limit in Length for a CICS START seahawk789 CICS 6 Mon Apr 02, 2018 8:34 pm

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