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 / ram
i didn't understand the problem
how u write 34 and 46 as length
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the distinctive features of a ksda, key sequenced dataset?
OPEN INPUT StudentFile READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ PERFORM UNTIL EndOfStudentFile DISPLAY StudentId SPACE StudentName SPACE CourseCode SPACE YOBirth READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ END-PERFORM CLOSE StudentFile STOP RUN what will be output
What is control area?
Differentiate between control interval (ci) and control area (ca)?
Define free space?
What is the purpose of relative record data set used in vsam?
if you wish to use the rewrite command how must the vsam file be opened?
In a KSDS file, key is missing for one record. How to insert the key for that particular record from back up file. Is there any sorting needed for the back up file before the key insertion?
Explain about the file objects in vsam?
Describe the uses of ams?
What are the information stored in ci?
explain the information contained in ci
what is meant by s0c-07 system abend codes?
what is meant by dirty read in vsam?
Why is master catalog used in vsam?