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
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 |
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 |
What is qsam?
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?
What is qsam? How it is used?
what is QSAM?use of the QSAM?how it is used?
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.
What is QSAM file?
What is the maximum Key length of a KSDS dataset
What is the use of qsam?