Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dynamic CALL Vs XCTL in CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Fri Mar 11, 2005 10:47 am    Post subject: Dynamic CALL Vs XCTL in CICS
Reply with quote

Hi all

i have a doubt on call in cics

By using Call statement,
the called program will be a part of object module,so the size is huge and
so we go for link or XCTL,


Can't we use dynamic calls in cics,so that the program can we called at run time.

Thanks
Siva
Back to top
View user's profile Send private message

mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1202
Location: India

PostPosted: Sat Mar 12, 2005 2:07 am    Post subject: Re
Reply with quote

Quote:
Can't we use dynamic calls in cics


Good Question!

Yes, we can use Dynamic Call instead of Link/XCTL.

But we have to face the following limitations:

1. You have to store your subprograms in CICS Link Pack Area instead of CICS loadLibrary.

2. If the dynamic COBOL CALL fails, CICS abend handling is not invoked, and you may get a COBOL abend code

3. The called Program must be in Local Region, while you can LINK/XCTL a remote program.

4. If the called subprogram uses 24-bit addressing and any parameter is above the 16MB line, COBOL issues a message and abends.
Back to top
View user's profile Send private message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Mon Mar 14, 2005 10:39 am    Post subject: Re: Dynamic CALL Vs XCTL in CICS
Reply with quote

hi mcmillan


Thanks for the wonderfull answer





Bye
siva
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Sat Mar 19, 2005 2:57 pm    Post subject:
Reply with quote

Mac,
I have some queries abt what u replied.

1.What is CICS link pack area?
2. what u said in point 2 is "If dynamic cobol call fails"..what if dynamic cics call fails..and even if then we don't handle the error condition then also it will cobol abend?
Back to top
View user's profile Send private message
sarma Kappagantu

New User


Joined: 17 Mar 2005
Posts: 22
Location: Bangalore

PostPosted: Mon Mar 21, 2005 11:43 am    Post subject:
Reply with quote

1. It is better to use Dynamic Call when compared to LINK for performance.

2. Dynamically called programs should have CSD entry. (i.e PPT entry)

3. In dynamically called programs, you should issue fresh HANDLE CONDITION and HANDLE ABEND commands. (I believe this is the best practice even otherwise.)

4. Working storage variables will have old values. So you have to ensure that the variables are refreshed programatically or use IS INITIAL clause in the program ID.

5. Should not use RETURN. Use GOBACK instead to transfer control to the calling program.

6. DFHEIBLK and DFHCOMMAREA are the first two variables passed to the called program.

7. Can not make a call to a program in another CICS region. (In such cases, you are limited to using LINK only.)

Just compile using your CICS - COBOL compiler CLIST and go ahead and enjoy better performance.
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 Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us