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
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Explain how you can characterize tables in cobol?
What is the utilization of copybook in cobol?
i need a small 3d program using inline and outline.
Write a program to enter and display the names of students in a class using the occurs clause.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is rmode(24)
What is amode(24)?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How are the next sentence and continue different from each other?
Whats the difference between search & search ALL?
What is rmode(any) ?
Describe the cobol database components?