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


Please Help Members By Posting Answers For Below Questions

What is static and dynamic call in cobol?

771


What is the difference between goback, stop run and exit program in cobol?

1210


What is the local-storage section?

871


State the various causes of s0c1, s0c5 and s0c7.

833


What is a report item?

889






Explain about different table spaces.

844


How do you differentiate between cobol and cobol-ii?

835


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1218


Discuss about changing dataset name in proc.

946


Can you please let me know the centre name of INS certification in Kolkata.

1930


) how do u code after getting data?

1767


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2307


What is the difference between comp and comp-3 usage?

849


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

938


What is the difference between Call and a Link?

870