what are the steps to sort in a cobol program?

Answer Posted / vaneesh

SORT WORK-FILE ON
ASCENDING KEY AS WS-KEY1
DESCENDING KEY WS-KEY2
USING INPUT-FILE GIVING OUTPUT-FILE.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to refer the data field?

1812


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

825


how can i see junk values in dclgen or in hostvariable of comp ?

2545


How many bytes S(8) comp field occupy and its maximum value?

1634


What are literals?

632






Write a program that uses move corresponding.

673


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5695


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859


how to access the file from prodution from changeman tool and to submit a file to production

6686


What are the different rules for performing sort operation?

763


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1945


how do you reference the fixed unblock file formats from cobol programs

712


How you can characterize tables in cobol?

719


how do you reference the printer file formats from cobol programs

666


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17046