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
 
Use External Vars in CICS

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

New User


Joined: 11 May 2006
Posts: 2

PostPosted: Thu May 11, 2006 9:55 am    Post subject: Use External Vars in CICS
Reply with quote

Hi,

Need to use external var in CICS-environment(cobol prog). It is a dynamic call. Many CICS transactions will call module X at the same time from different programs. What will happen with the working storage fields & external vars. Will a CICS-thread have its own working storage for module X or will it be shared with other CICS-threads?
In short could someone pls ans the following ques....

1) If i use External variables in my Cobol+CICS prog will the value remain throughout a CICS transaction?
2) Will the value of the external var remain across diff CICS transactions?

Any help will be greatly appreciated...Thanks
Back to top
View user's profile Send private message

mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Thu May 11, 2006 8:22 pm    Post subject:
Reply with quote

When you say call, is it the standard methods of CICS calls, i.e. XCTL, LINK or LOAD? Or are you talking about calling a batch program from a CICS program?

Again, when you say external variable, do you mean COMMAREA?

Like any other environment, CICS would have a different working storage for each instance of the program running.
Back to top
View user's profile Send private message
murtank

New User


Joined: 11 May 2006
Posts: 2

PostPosted: Fri May 12, 2006 10:18 am    Post subject: Re: Use External Vars in CICS
Reply with quote

By external i meant a var defined as EXTERNAL in the PICTURE clause.

From what i have found for each instance of the transaction invoked we have its own copy of the EXTERNAL var. And its value is lost if an XCTL or LINK is used (within the same run unit or transaction) but is available through out if a normal CALL (to batch cobol) is made...

Please correct me if im wrong..

Thanks,
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 How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 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 How do I define a DB2 plan for a web ... John Poulakos CICS 4 Sat Apr 14, 2018 1:58 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
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