if a file has 1000 recods how copy the records from 1 to 100
records using sort
Answers were Sorted based on User's Feedback
Answer / bhaskar reddy
//sysin dd*
sort fields=copy
stopaft=100
/*
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / rv rocks
using iceman utility we can copy the 1st 100 records .
//sysin dd *
option copy, stopaft=100
/*
| Is This Answer Correct ? | 2 Yes | 0 No |
What is the use of intialize verb?
how can i see junk values in dclgen or in hostvariable of comp ?
How do you differentiate between cobol and cobol-ii?
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.
Why IBM?
01 a pic s9(5) value '-12345' how it will be stored
What is COMP-1? COMP-2?
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between PIC 9.99 and PIC9v99?
01 ws-p pic 9(2). 01 ws-q pic 9(2) value 01. 01 ws-r pic 9(2) value 99. p.d. compute p = q + r what will be result of p ans(00) but my question is that how i got 10 on the place of 00. (truncation will ocuure on right side not left). please tell me ?
What is different between variable length and fixed length?
how can we code index in an array of cobol pgm?