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

is delete operation supported in an esds? Is rewrite operation possible in esds?

0 Answers   IBM,


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

0 Answers  


Explain the purpose of the file status clause in the select statement?

0 Answers  


can you specify some the distinctive features of a ksds, key sequenced dataset?

0 Answers   IBM,


How many Alternate Indexes you can have on a dataset?

2 Answers   AB Inc,






How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?

0 Answers  


what do you mean by the repro command?

0 Answers   IBM,


explain in brief how are different versions of gdg named?

0 Answers   IBM,


Syntax of AMS modal commands ?

1 Answers   IBM,


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

0 Answers  


Hi, I want to create alternate index on VSAM file.my file structure is ex: RoomID pic x(7) R000001 Floor pic a((6) First RoomNo pic x(2) FA1 Occupied(yes/no) pic a(3) Yes Occupied Batch pic x(10). Maths i want to create alternate index on floor,roomno fields.can i create alternate index on both the fields.and tell me how to create.

1 Answers  


What is FREESPACE ?

2 Answers  


Categories