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 |
I have a occurs for 100 times but it has executed 101 time what could be the reason?
What is tne need to use sub programs in Cobol?
What is the maximum size of a 01 level item in COBOL I? in COBOL II?
There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.
Have you used comp and comp-3 in your project? And how?
i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."
how to transfer the file from pc to mainframe??
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.
consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error
Hai friends why we need to read a file before re-write a record?
What are all the divisions of a COBOL program?