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

Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?

3 Answers   TCS,


Write a program that uses move corresponding.

0 Answers  


i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2

9 Answers  


Explain how you can characterize tables in cobol?

0 Answers  


How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


What is length is cobol?

0 Answers  


01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?

7 Answers  


File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  


what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?

4 Answers   IBM,


I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?

3 Answers  


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

0 Answers  


Categories