I have three fields in a Variable VSAM file

X(2)
Y(10) occurs X times
Z(02)

Say for the first record X=2
then the length of the file is
2+(10*3)+2=34

second record, x=4 then 4+(10*4)+2=46

If any time if the field x is updated then the total length
changes. Is it feasible?
Is it


Answer Posted / satish

yes,as you say occurs X times for every record. but not x times
for single record. so your total length is
if x=2
then 1st record--> 2+(10*2)+2=36.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by the cobol record key clause in vsam?

594


What are the distinctive features of a ksda, key sequenced dataset?

524


On which dataset you can have alt index?

497


What is the device independent method to indicate where a record is stored?

578


is it required that primary key values have to be unique? Do alternate key values have to be unique?

597






Why is it required to have a keyed directed retrieval?

551


What are the different versions of gdg named?

557


what do you mean by define model parameter?

588


what is the purpose of the verify function of idcams?

594


What is a lds (linear data set) and what is it used for?

518


explain the information contained in ci

597


What are the different parameters that are used in vsam?

719


How do you calculate record size of an alternate cluster?

661


what is the use of the file status clause in the select statement in vsam?

565


what will happen if there is no secondary allocation made for datasets?

618