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 / ram.g
hi
Before writing into the output file, just explicitly give
move spaces to rest of fields..
eg: ww-filler pic x(40) value spaces.
move ww-filler to ww-out-rec(61:40)
write ww-out-rec.
i hope the above code will resovle your problem.
Happy coding,
Ram.G
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
how do you reference the printer file formats from cobol programs
What is the local-storage section?
How do you reference the following file formats from cobol programs?
What is the utilization of copybook in cobol?
how do you define single dimensional array and multidimensional array in your cobol?
State the various causes of s0c1, s0c5 and s0c7.
How do get the result of your program directly on your pc?
What is the difference between perform … with test after and perform … with test before?
What is the difference between Call and a Link?
A table has two indexes defined. Which one will be used by the SEARCH?
how do you reference the ksds vsam file formats from cobol programs
What rules are to be followed while using the corresponding options?
What type of SDLC u followed? Why?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?