I have a KSDS File.I hav a Records like 1,2,3,4,5,6,...100.
I want to read using Dynamic mode like from 10 th Record
onwards like, 10,12,14,16,18,....60.
Waht is the command for this.




Answers were Sorted based on User's Feedback



I have a KSDS File.I hav a Records like 1,2,3,4,5,6,...100. I want to read using Dynamic mode like ..

Answer / siva

By using START command
Example :

START filename
KEY is EQUAL TO keyname
[INVALID KEY ...........]
END-START


PERFORM UNTIL end-of-file
READ filename NEXT RECORD
AT END
SET end-of-file TO TRUE
END-READ
END-PERFORM

Is This Answer Correct ?    6 Yes 1 No

I have a KSDS File.I hav a Records like 1,2,3,4,5,6,...100. I want to read using Dynamic mode like ..

Answer / ashok

im not very sure but i have 2 ideas, correct me if iam wrong

1. first , read the 10th record randomly , and from then
read squentially from 10th to 60th.........commands are
start and read next.

2. in jcl, use sort card to skip the first 10 records
sort fields = copy skiprec=9

Is This Answer Correct ?    5 Yes 1 No

Post New Answer




More QSAM Interview Questions

Suppose I have a ksds file. I have a records like 1,2,3,4,5,6,...100. I want to read using dynamic mode like from 10 the record onwards like, 10,12,14,16,18,....60. Wat is the command for this?

0 Answers  


what is QSAM?use of the QSAM?how it is used?

1 Answers  


What is QSAM file?

1 Answers   Wipro,


What is the maximum Key length of a KSDS dataset

1 Answers  


I have a KSDS File.I hav a Records like 1,2,3,4,5,6,...100. I want to read using Dynamic mode like from 10 th Record onwards like, 10,12,14,16,18,....60. Waht is the command for this.

2 Answers   CTS,






What is qsam? How it is used?

0 Answers  


What is the use of qsam?

0 Answers  


What is qsam?

0 Answers  






Categories