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
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 |
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 |
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 |
what is meant by binary search?
is it possible to declare index in cobol program? if it is not why its tell me pls
What is the size of s9(19)comp3? explain
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.
How do you compile cobol program..?
Can we change the password using ALTER? anyone tried and changed?
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?
If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read the same record thrice or it will read three records sequentially? For example : Input File 01 02 03 Para 900 Read infile Display Infile rec Read infile Display infile rec Read infile Display infile rec. What will be the output?
Name some of the examples of COBOl 11?
)what is retrieve?
can we use COPY statement in w-s section? how?
01 A pic 9(100) find record length of it