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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol?

655


What are the rules of the move verb?

704


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.

1115


) How do u handle errors in BMS macro?

1427


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

820






What is an in line perform? When would you use it? Anything else you wish to say about it.

643


Write the code implementing the perform … varying.

643


Why would you use find and get rather than to obtain?

683


What are different data types in cobol?

687


What are the pertinent COBOL

2043


What are all the divisions of a COBOL program?

663


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2108


What is difference between static and dynamic call in cobol?

777


What are the cobol coding sheets?

664


Write a program to enter and display the names of students in a class using the occurs clause.

652