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

What is the place for VSAM KSDS?

0 Answers  


Name some common VSAM error conditions and codes. ?

1 Answers   IBM,


What is the meaning of each of the values in SHAREOPTS(2 ?

1 Answers  


What is RECOVERY and SPEED parameters in DEFINE CLUSTER command?

1 Answers  


What is the maximum number of Alternate Index ???

4 Answers  






what is the RRN for the first record in RRDS?

2 Answers  


FREESPACE can be specified for which type of cluster? a.LDS b.RRDS c.ESDS d.KSDS

2 Answers  


What is a ca split?

0 Answers  


Define base cluster?

0 Answers  


Syntax of AMS modal commands ?

1 Answers   IBM,


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

0 Answers  


explain the information contained in ci

0 Answers   IBM,


Categories