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 |
In a program, variables are used but no DB2 involved in it. Can you call it as host variables??
how to access the file from prodution from changeman tool and to submit a file to production
what is label record is standard or omitted in file description of data division?
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...
given the following: 77 A PIC 9V9 VALUE 9.5 77 B PIC 9 VALUE 9. 77 C PIC V9 VALUE 0.8 77 D PIC 9 77 E PIC 9 77 F PIC 9V999 what are the contenta of D E nad F after the following statements are executed: COMPUTE F ROUNDED=A+C/B MULTIPLY A BY C GIVING E ADD B C A GIVING D ROUNDED a.F=9.589 E=8 D=1 b.F=9.589 E=8 D=9 c.F=9.589 E=7 D=9 d.F=9.589 E=7 D=1
a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?
What is Redefines clause?
What is the use of EVALUATE statement?
How to remove 2 duplicate records and copy only one using job control language?
How can you get the ksds file records into your cobol program?
How can you pass values from COBOL program to non-COBOL programs?
how to access vsam files in cobol and how to differentiate that this is ESDS file