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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between static and dynamic call in cobol?

767


What is the problem of ordered sequential files access?

691


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

987


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1106


Name the divisions, which are available in a cobol program?

676






A table has two indexes defined. Which one will be used by the SEARCH?

750


What is rmode(24)

676


What is report-item in COBOL?

702


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

639


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1223


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

668


How to know whether the module is dynamical or statistical?

649


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

701


what is search and searchall?what is the diffrence between them?give an best example?

5537


example for sub strings ? and refernce modifications whit output pls

1836