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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the password using ALTER? anyone tried and changed?

1780


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

979


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2307


how to convert the recors form vsam file to db2 table tru file aid

3015


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2261


What is the local-storage section?

915


How do you define a variable of comp-1 and comp-2?

950


What is amode(24)?

918


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1265


What is a scope terminator give example?

868


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

2389


How do you reference the fixed block file formats from cobol programs

959


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?

1446


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2913


how to access the file from prodution from changeman tool and to submit a file to production

7160