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


Answers were Sorted based on User's Feedback



I have three fields in a Variable VSAM file X(2) Y(10) occurs X times Z(02) Say for the firs..

Answer / ram

i didn't understand the problem
how u write 34 and 46 as length

Is This Answer Correct ?    3 Yes 1 No

I have three fields in a Variable VSAM file X(2) Y(10) occurs X times Z(02) Say for the firs..

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

More VSAM Interview Questions

there are seven idcams commands in vsam. Can you name and explain each of them?

0 Answers   IBM,


What is the place for VSAM KSDS?

0 Answers  


When CISZ is declared as 4096 at cluster level,is this true that data will have 4096 and index will have default?????

1 Answers   Wipro,


Explain what are the optional parameters to the input dataset while loading the empty cluster with the data records?

0 Answers  


Tell about the ams used in vsam?

0 Answers  






what is freespace

2 Answers   EDS,


What is the significance of the SHAREOPTIONS parameter?

1 Answers   IBM,


explain in brief what are the 3 types of vsam files?

0 Answers   IBM,


How do you load a VSAM data set with records ?

2 Answers  


What are the different dataset organizations used in vsam?

0 Answers  


Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system ?

1 Answers   IBM,


What is VERIFY command ? when do you use this command?? What actually it does ??

2 Answers   Xansa,


Categories