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


Please Help Members By Posting Answers For Below Questions

How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2959


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5597


Explain how you can characterize tables in cobol?

821


For rewrite, why is it mandatory that file needs to be opened?

837


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

949


How do define dynamic array in cobol.

857


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

866


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.

1165


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

905


What is a report item?

903


Why would you use find and get rather than to obtain?

900


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.

2235


What are all the divisions of a COBOL program?

893


how do you define single dimensional array and multidimensional array in your cobol?

864


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

936