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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More VSAM Interview Questions

what is the concept of AIX in vsam ????

1 Answers   HCL,


How vsam datasets are cataloged?

1 Answers   Ordain Solutions,


How are different versions of GDG named ?

2 Answers   IBM,


1. delete is not possible in esds. why? 2. i have 10 records in a esds file and i want to delete only 1st record ..then what i have to do?.. it will not affect any sequence of the RBA. 3. why open extend is not possible in rrds vsam file?

3 Answers  


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

0 Answers  






Is CA(Control Area) is part of CI(Control Interval)

1 Answers  


Suppose a generation of GDG gets created in a particular step of a proc. How would you refer the current generation in a subsequent step? What would be the disposition of this generation now ?

4 Answers   Patni,


On which dataset you can have alt index?

0 Answers  


what do you mean by define model parameter?

0 Answers   IBM,


Explain the catalog?

0 Answers  


What are the advantages of vsam over isam?

0 Answers  


name a few common vsam status codes?

0 Answers   IBM,


Categories