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 / vish

I think you ppl are hitting on wrong direction for
answering this question. The question doesn't seem to be
asking how to resolve a junk character, instead it's asking
about the different behaviour of the same program in two
different versions of Cobol - COBOLII and Enterprise COBOL.
One is placing junk characters in the last 40 bytes and the
other one intialized it to spaces. Any possible answer from
anyone now...?

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

IF I mention stop run in CICS what happens?

1896


What is the difference between Global and External Variables?

666


Explain the configuration section of a cobol program with examples of syntax.

660


How to know whether the module is dynamical or statistical?

656


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1773






What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


What are the rules of the move verb?

708


Write down the divisions of cobol program?

671


How to print 10 to 1 if the input have only 10 digit number?

811


What is the usage of comp fields in cobol?

660


What is difference between static and dynamic call in cobol?

777


Why did you choose to work with ibm mainframe cobol programming?

631


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


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

720


What are the different rules to perform a Search?

619