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

I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


Name the sections present in data division.

0 Answers  


Whtz the specialty of 77 level number ?

2 Answers   Infosys,


can we use variable picture clause as xx.99 in cobol.

3 Answers  


what are the limitations of Inline Perform?

3 Answers   Zensar,






which generation language is cobol

4 Answers   Kanbay,


which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks

1 Answers  


suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.

2 Answers   IBM,


how do you reference the rrds file formats from cobol programs

0 Answers  


How you can characterize tables in cobol?

0 Answers  


consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

5 Answers   TCS,


can anyone explain me the concept of COMP-4 PLEASE??

2 Answers  


Categories