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 

variables in linkage section

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mfjude
Beginner


Joined: 12 Jan 2006
Posts: 7
Topics: 3

PostPosted: Fri Feb 17, 2006 2:03 am    Post subject: variables in linkage section Reply with quote

I am analysing some client code.He has inserted variables in the linkage section but is not using them as parameters in procedure division using clause....Can these variables be used as simple working-storage variables now ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Fri Feb 17, 2006 4:58 am    Post subject: Reply with quote

mfjude,

No you CANNOT use the variables as working storage variables.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mfjude
Beginner


Joined: 12 Jan 2006
Posts: 7
Topics: 3

PostPosted: Fri Feb 17, 2006 5:08 am    Post subject: reply Reply with quote

but some address is assigned to it in the pgm ?
Back to top
View user's profile Send private message
PaulPeplinski
Beginner


Joined: 17 Feb 2006
Posts: 11
Topics: 3

PostPosted: Fri Feb 17, 2006 9:50 am    Post subject: Reply with quote

Linkage section definitions can be used in a program without being in the USING clause in one of the following ways:

Getmain and then (if needed) address the storage. This is seen more in CICS with the EX CICS GETMAIN SET(....) ...... END-EXEC.

Using the COBOL SET ADDRESS of .... TO ..... to "redefine" an area of storage. One place this could be handy would be to remap a CICS DFHCOMMAREA to some public copybook. (The alternative being to move DFHCOMMAREA to Working Storage layouts on entry and moving it back on exit).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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