WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED,
FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED.
WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT
SHOULD BE USED WHEN

Answers were Sorted based on User's Feedback



WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFIN..

Answer / vijay

Hi as you specified we have five types of record formats

when u know exactly the length of record lay out then you
can specify fixed or fixed block.Then system will allocate
the fixed lenth for the record. when u enter data it takes
exactly fixed lenth as u specified, if u give data less
than the length specified also then system will allocate
the fixed lenth only . Memory will be wasted.

When you are not sure of record format i:e if u specify the
length of a record is x(156) , then record may be of 156
or it may be less than that.
more record length it wount accept,
same record lenth as specified accept ,
record which is of less than specified size accept.

here memory wount be wasted.System will allocate memory
based on record data u supply.

undefined format we usually use for load libs. we are not
sure how long the data will be. then we will specify
undefined.

Is This Answer Correct ?    21 Yes 4 No

WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFIN..

Answer / vinothaaa

when we use the FB we cant compress it,to free the unused
space ......
but in VB we can compress the PDS to free the unused space
in it ...
when we use U it is used for storing only executable files
.... that is the load module,what we get
when we compile the cobol program

Is This Answer Correct ?    8 Yes 3 No

WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFIN..

Answer / mr.perfect

hi Vinothaaa , yours answers wrong.

FB -- We can compress , because i used the my cobol prgm in
this format, whenever space is not enough. i used to compress.
it is allowed me to do this.

U --unformat mode, the data will store in not human readbale
format.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More COBOL Interview Questions

What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....

3 Answers   IBM,


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

0 Answers  


Whats the difference between search & search ALL?

3 Answers   IBM,


what is srange and nosrange pls reply to ths question ?

2 Answers   L&T,


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?

5 Answers   Cognizant,






What is the meaning of 'TALLING' verb in cobol?

5 Answers  


What is the difference between static call & Dynamic call?

2 Answers   CSC, TCS,


Which mode is used to operate the sequential file?

0 Answers  


What is the difference between performing a SECTION and a PARAGRAPH?

5 Answers   Accenture, Patni,


Can the OCCURS clause be at the 01 level?

8 Answers   Oracle,


What are literals?

0 Answers  


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

0 Answers  


Categories