Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Q:what is the difference between the variable length and
fixed lenght.how it varies in the cobol.

Answers were Sorted based on User's Feedback



Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / sushant chavan

fixed length:-
1.Every record in the file has exactly same size (in byte)
2.It take huge memory.
3.Access become fast.
4.Computer knows exact location of records so easy access.
5.slow in transferring the records it has large size.

Variable length:-
1.Different record in the file have different size.
2.It take least memory.
3.access become slow.
4.computer does not know exact location of record so slow access.
5.fast transferring as it is small in size.

Is This Answer Correct ?    96 Yes 10 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / subash

A file where all the records are of the same length is said to have fixed length records.
Advantage : Access is fast because the computer knows where each record starts.
Disadvantage : Using Fixed length records, the records are usually larger and therefore need more storage space and are slower to transfer (load or save).

One or more of the fields can be of differing lengths in each record, called variable length records

Advantages:
the records will be smaller and will need less storage space
the records will load faster

Disadvantages:

The computer will be unable to determine where each record starts so processing the records will be slower.

Is This Answer Correct ?    74 Yes 10 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / sruthi

Fixed length means the length of all records in the file is
same.so we code record length is x chrs
where as in variable length means the length of records are
varying from each other. so we code as record length is x
to y chars

Is This Answer Correct ?    31 Yes 22 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / kannan

hi,
vareable length record is the record contain different
format(length) but the first 4 bytes taking length of record.

the fixed length record must be declaring length otherwise
throw the error.so after fill the records md fields fillup
th e filler clause.

Is This Answer Correct ?    39 Yes 34 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / thiyagarajan

if we didnt mention length then it is variable length,if we
declare the size then it is fixed length

Is This Answer Correct ?    20 Yes 16 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / boopathi

variable length is nothing but. we declare our
conviniance.but fixed lengtn we do not change

Is This Answer Correct ?    27 Yes 29 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / ragini roy

Fixed length strings, storage space required is length of string and range of values is 1to 65400 , characters, whereas the variable string length, storage space required is length +10 bytes and range of values is 0 to billion characters

Is This Answer Correct ?    0 Yes 2 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / manonmani.r

variable length is changed in dynamic variable creation.but
fixed lenth is mentioned in static variable creation.

Is This Answer Correct ?    9 Yes 12 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / krishnakumar

In JCL:
We have to code acutual lentgh + 4 Bytes for Variable
length files.For fixed length files we have to code actual
length.

in COBOL:
In FD Section we have to write
Recording Mode is F --> for Fixed length files,
Recording Mode is V --> for Variablelength files

Is This Answer Correct ?    8 Yes 11 No

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol...

Answer / adeti solomon

1.Yes
2.Yes
3.No
4.Yes
5.No
6.No

Is This Answer Correct ?    11 Yes 14 No

Post New Answer

More COBOL Interview Questions

How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp

3 Answers   CTS,


What is report-item in COBOL?

0 Answers   Arigo Infotech,


How many maximum number of procedures can we write in one COBOL program?

5 Answers  


I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."

1 Answers  


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


What is the problem of ordered sequential files access?

0 Answers  


Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???

5 Answers   IBM,


What is XDC ?

3 Answers   Cap Gemini, IBM,


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size

1 Answers   TCS,


for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?

3 Answers   IBM, UST,


Categories