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
What are all the divisions of a COBOL program?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What do you understand by psb and acb?
How do u write test cases?
Are you comfortable in cobol or jcl?
In which area will you utilize 88 level items in cobol?
IF I mention stop run in CICS what happens?
Name the divisions, which are available in a cobol program?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
i need a small 3d program using inline and outline.
how to access the file from prodution from changeman tool and to submit a file to production
What is amode(24)?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Can we change the password using ALTER? anyone tried and changed?
What is the difference between binary search and sequential search?