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 / sivakumar sekharannair

I will try to answer as per my understanding on the
behaviour.
With cobol-2 junk values- This is because the the 40 bytes
are not properly initialized and so the system puts some
junk values.
With enterprise cobol - spaces- I beleive that the
enterprise cobol before using an work arean intialize it by
itself and then use it. that is the reason why the unused
40 bytes had spaces.
My answer is just an assumption

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

780


What type of SDLC u followed? Why?

1520


What is the problem of ordered sequential files access?

702


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

1024


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

678






System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1588


Can you please let me know the centre name of INS certification in Kolkata.

1716


What is the LINKAGE SECTION used in COBOL?

889


What is the difference between perform … with test after and perform … with test before?

883


Which mode is used to operate the sequential file?

669


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1117


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

712


What is a scope terminator give example?

657


What is rmode(any) ?

686


What is the difference between comp and comp-3?

704