View previous topic :: View next topic
|
Author |
Message |
bh
New User
Joined: 19 Mar 2006 Posts: 26 Location: India
|
|
|
|
Hi,
What would be the O/P in this case, the piece of code is---
FD newfile
01 first1 x(24).
01 second1 x(24).
procedure division.
Read newfile into first1.
Display second1.
Note--- what will be the O/P of the last statement.
Regards,
BH. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
bh,
all of the '01' levels under a 'FD' are redefines of each other. They occupy the same memory locations.
You do not have to 'Read newfile into first1'. 'Read newfile' will be enough. the READ INTO is only used when you want the record to be placed somewhere else in working storage.
Dave |
|
Back to top |
|
|
|