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

What is inspect in cobol ?

800


what are decleratives in cobol?

1827


Define cobol?

857


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2053


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

712






What are the different open modes available in cobol?

714


What is the Purpose of POINTER Phrase in STRING command in COBOL?

718


What are declaratives and what are their uses in cobol?

708


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

775


how do you reference the variable block file formats from cobol programs

682


Explain how to differentiate call by context by comparing it to other calls?

684


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

1768


what is the difference between COBOL2 AND COBOL390?

2453


What are the access modes of START statement?

718


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

643