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

Name the divisions, which are available in a cobol program?

673


What is a SSRANGE and NOSSRANGE?

800


How can you get the ksds file records into your cobol program?

634


Difference between array and sub-script ?

1147


What is amode(24)?

676






which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1011


explain sorting techniques in cobol program?

678


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

660


What type of SDLC u followed? Why?

1508


What is the difference between goback, stop run and exit program in cobol?

906


How do you define a variable of comp-1 and comp-2?

686


Can we change the password using ALTER? anyone tried and changed?

1533


What is the difference between structured cobol programming and object alternativelyiented cobol?

742


HOw can I get the negative sign while deduct high value from low value

1775


how to refer the data field?

1791