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 

question about address of FD in cobol

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


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Wed May 31, 2006 8:03 am    Post subject: question about address of FD in cobol Reply with quote

Hi all,

I have a question that how the envioment allocate address to the 01 fie-222? The address is allocate at the beginning of the program run? or when a 'read FILE' is issued it is allocated? I think this address would not change through the whole process of the program?I used to encounter a strange things that a 01 layer under qsam's fd can be initialize,but a vsam can not be,or unexpected data error would happen,Why this happen?

FD FILE
01 FIE-222
05 FF-33
05 EE-55
Back to top
View user's profile Send private message Send e-mail MSN Messenger
programmer1
Beginner


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Sun Jun 11, 2006 1:42 am    Post subject: Reply with quote

The fields/variables defined in the FD section are nothing but temperory memory allocation made for the program.

This memory would be used to store the individual records read/to-be written from/into the file.
_________________
Regards,
Programmer
Back to top
View user's profile Send private message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Tue Jun 20, 2006 11:33 pm    Post subject: Reply with quote

But there should be address for them?Right?like the working-area.How does program allocate temperory storage and where to allocate?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
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