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

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,


How many times secondary space allocated?

5 Answers  


How to declare the EMP Name, EMP No., DOB in VSAM KSDS file? Please explain.....

3 Answers   CTS,


In a file(PS), we dont know how many records are there. requirement is divide half n half the records n insert into 2 another files(PS).

6 Answers   Cap Gemini, TCS,


What are the different commands used in idcams for vsam?

0 Answers  






What are the optional parameters to the input dataset While loading the empty cluster with the data records?

1 Answers   IBM,


what is the concept of IMPORT in vsam??

2 Answers  


explain how do you define a gdg in vsam?

0 Answers   IBM,


Do all versions of the GDG have to be of the same record length ? is it possible to ovverride the dcb of the model dataset?

2 Answers  


What are the access method services used in vsam?

0 Answers  


What is the meaning of the DEFINE MODEL parameter?

1 Answers  


What are the distinctive features of a ksda, key sequenced dataset?

0 Answers  


Categories