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

Dynamic CALL Vs XCTL in CICS


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

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Fri Mar 11, 2005 10:47 am
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: 1210
Location: India

PostPosted: Sat Mar 12, 2005 2:07 am
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: 191
Location: hyderabad

PostPosted: Mon Mar 14, 2005 10:39 am
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top