View previous topic :: View next topic |
Author |
Message |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Wed May 31, 2006 8:03 am Post subject: question about address of FD in cobol |
|
|
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 |
|
 |
programmer1 Beginner
Joined: 18 Feb 2004 Posts: 138 Topics: 14
|
Posted: Sun Jun 11, 2006 1:42 am Post subject: |
|
|
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 |
|
 |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Tue Jun 20, 2006 11:33 pm Post subject: |
|
|
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 |
|
 |
|
|