I have 100 records in a file.. i want to sort the records from
5 to 5o... give the syntax...
Answers were Sorted based on User's Feedback
Answer / seema dawlekar
This can be done in two steps
in the step1 copy the the selective records by giving the
syntax as
skiprec = 4 -
stopaft = 50
this will copy only the selected records, now in the step2
we can perform sort
syntax is
sort fields=(starting position,length,type,A/D)
A--ascending and D--descending order
correct me if I am wrong
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / anand
Follow the workaround below,
1.split the file into 3 files using IDCAMS
file1 1-4
file2 5-50
file3 51-100
2.Sort the mid file file2.
3.Finally merge all the 3 files using concatenation.
| Is This Answer Correct ? | 3 Yes | 1 No |
COMP-3 field occupy ?
Can anyone please give the example of Inline Perform.
How do u know what version of cobol u are using?
Explain about different table spaces.
HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
copy 100 records without using ibm utilities
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
When is a scope terminator mandatory?
If we use GO BACK instead of STOP RUN in cobol?
How many maximum number of procedures can we write in one COBOL program?
Have you code any new programs in COBOL ? What is the functionality of the programs?
how to transfer the file from pc to mainframe??