MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cics and address space

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Fri Apr 02, 2010 5:57 am    Post subject: Cics and address space Reply with quote

Hi All,

Suppose there is a program A having work storage work-var and comm area variable comm-var and the transaction txn1 for this is executed (task1).

After sometime another task, task2 is executed, but suppose this also got the same address location which the working storage and comm area occupied for task1, will the variables of program A inherit the values used in task1.

My understanding is, task 1 will release the address space used after the completion of task, but will it initiliaze and release or just free up the space.

The reason I am asking is one variable is there in program A which is not initialized, and sometimes the program is abending due to the reason, its having invalid value.

Regards
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Fri Apr 02, 2010 6:54 am    Post subject: Reply with quote

Use of unintialized working storage variables is a very poor practice and you are getting what you deserve!
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Fri Apr 02, 2010 10:28 am    Post subject: Reply with quote

To quote an old IBM caution:
Quote:
The results may be unpredictable. . .


Unpredictable = unacceptable Exclamation

Fix the code. . .
_________________
All the best,

di
Back to top
View user's profile Send private message
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Sun Apr 04, 2010 7:22 am    Post subject: Reply with quote

So Can i confirm than cics will not initilaize the memory when it releases the address space.
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Sun Apr 04, 2010 10:25 am    Post subject: Reply with quote

When memory is released, there is nothing to initialize. . .
_________________
All the best,

di
Back to top
View user's profile Send private message
icbc
Beginner


Joined: 01 Aug 2010
Posts: 1
Topics: 0

PostPosted: Thu Aug 05, 2010 9:41 am    Post subject: Reply with quote

I do not think this have any relationship to the address space,it is program level problem,it is a good habit that initialize any variable before you use it,or you can set you LE option STORAGE=((NONE,NONE,00,0K) ,it will initialize the storage to x'00' value as the program initializing
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Tue Aug 10, 2010 7:38 am    Post subject: Reply with quote

Using the LE option might work, but what happens if the program is run on a different system and the LE option is not set like that. The correct method is for the program to be correctly programmed.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group