how to see the last records in vsam dataset??



how to see the last records in vsam dataset??..

Answer / dave

Depends.

If you're talking CICS, set the key of the VSAM file to
high-values, do a STARTBR to position the pointer, and
execute a READPREV to get the last record.

In batch, set the key to high-values, and execute a READ
Key < Key.

Is This Answer Correct ?    9 Yes 5 No

Post New Answer

More VSAM Interview Questions

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  


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  


Suppose 3 generations of a GDG exist. How would you reference the 1st generation in the JCL?

2 Answers   IBM,


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?

0 Answers   RBS,


we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.

0 Answers   IBM,






How many times secondary space allocated?

5 Answers  


What is the meaning of the DEFINE MODEL parameter?

1 Answers  


What is the catalog?

1 Answers  


Describe SHAREOPTIONS parameter (SHR) in Define Cluster command.?

1 Answers  


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

3 Answers   CTS,


Discuss record management in vsam?

0 Answers  


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

1 Answers   IBM,


Categories