what are the steps to sort in a cobol program?

Answers were Sorted based on User's Feedback



what are the steps to sort in a cobol program?..

Answer / snehatechm

sort file-1 on ascending/descending key using file-2 giving
file-3

file-1 is the work file and it should be defined in SD
file-2 is the input file and it should be defined in FD
file-3 is the output file and it should be in FD.

Is This Answer Correct ?    15 Yes 0 No

what are the steps to sort in a cobol program?..

Answer / 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

More COBOL Interview Questions

what happens when a copybook variables are declared using include statement ?

3 Answers   IBM,


What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?

4 Answers  


What is SQL Code -904 and -903 in DB2 And how to handle it?

1 Answers   IBM,


When is a scope terminator mandatory?

3 Answers  


Whats the use of Examine command? can someone help me?

1 Answers   IBM,






What is Static and Dynamic linking ?

3 Answers  


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


how can we get current dat and time thru cobol pgm

3 Answers   DELL,


At the minimum, which division of COBOL is enough to be coded?

3 Answers   CTS,


how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


How will you find the currepted records in a file

2 Answers  


Categories