I have 100 records in a file.. i want to sort the records from
5 to 5o... give the syntax...
Answer Posted / 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 |
Post New Answer View All Answers
) How do u handle errors in BMS macro
What is link edit in cobol?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
What is the local-storage section?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
In COBOL programming, what is PERFORM? What is VARYING?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the difference between goback, stop run and exit program in cobol?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How do define dynamic array in cobol.
Explain about different table spaces.
Write a program to explain size error.