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

input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1777


) how do u code after getting data?

1578


example for sub strings ? and refernce modifications whit output pls

1843


What is report-item in COBOL?

705


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

744






What are declaratives and what are their uses in cobol?

706


how do you reference the fixed unblock file formats from cobol programs

707


How do you get the data to code the BMS macro?

1473


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

2052


Discuss about changing dataset name in proc.

757


What is the difference between Call and a Link?

695


How do we get current date from system with century in COBOL?

798


What is the use of intialize verb?

743


What is the utilization of copybook in cobol?

651


Write a program that uses move corresponding.

669