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 / ramanujam
it may be filled with null values. Junk charecters.
Due to before writing data it has to initialize.
That is the reason it is showing junk charecters.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
example for sub strings ? and refernce modifications whit output pls
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
What is the difference between comp and comp-3 usage?
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.
How do you reference the following file formats from cobol programs?
What is the difference between next sentence and continue in cobol programing language?
IF I mention stop run in CICS what happens?
Write a program to enter and display the names of students in a class using the occurs clause.
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
i want a program using by if, evaluate , string, unstring, perform, occurs?
How can you get the ksds file records into your cobol program?
Difference between cobol and cobol-ii?
What are the different data types in cobol?