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 vsam catalog ?

2 Answers   Tech Mahindra,


What is SHAREOPTS ?

2 Answers  


In vsam why we use export-import utility?

3 Answers  


How to insert values for variables that are declared as COMP-3 variables in COBOL program in an already created VSAM file.

3 Answers  


What are all the ways we can create datasets?

7 Answers   IBM,






How is the sorting of vsam files carried?

0 Answers  


what do you mean by a shareoptions parameter (shr) in define cluster command?

0 Answers   IBM,


how to view clusters that has more than 10000 records

2 Answers  


what are the different types of vsam files available? Explain them

1 Answers   IBM,


Can we copy Vsam files from a Vsam file in Iebgener step?

4 Answers   iGate, Tech Mahindra,


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

0 Answers  


What is the use of KSDS,LDS,ESDS,RRDS??what is VRRDS?? How are all these useful in realtime scenario??Plz helpme out...Its a recent question in IGATE..

0 Answers   iGate,


Categories