I have a source program compiled with Cobol-2. The output
file has a record length of 100 defined in the program but
a record of 60 bytes getting written into it. i.e. The rest
of 40 bytes I am not Writing anything. But it by default
puts some values into the last 40 bytes. However it does
not impact anything. But when Compiled the module with
Enterprise Cobol the last 40 bytes were spaces as fillers.
Can anyone explain?
Answer Posted / sivakumar sekharannair
I will try to answer as per my understanding on the
behaviour.
With cobol-2 junk values- This is because the the 40 bytes
are not properly initialized and so the system puts some
junk values.
With enterprise cobol - spaces- I beleive that the
enterprise cobol before using an work arean intialize it by
itself and then use it. that is the reason why the unused
40 bytes had spaces.
My answer is just an assumption
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What are the various section in data division and briefly explain them.
What are declaratives and what are their uses in cobol?
Mention the guidelines to write a structured cobol program?
What is rmode(24)
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is Pic 9v99 Indicates in COBOL?
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between PIC 9.99 and 9v99 in COBOL?
In which area will you utilize 88 level items in cobol?
What is the difference between PIC 9.99 and PIC9v99?
What is amode(31)
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?