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

Can we access the a[0] in the array ?

6 Answers   DCL, IBM,


Write a cobol program making use of the redefine clause.

0 Answers  


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

0 Answers  


consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250

3 Answers   TCS,


how do you reference the esds vsam file formats from cobol programs

0 Answers  






what are decleratives in cobol?

0 Answers   GGG, Satyam,


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

2 Answers   IBM, Wipro,


How can you get the ksds file records into your cobol program?

0 Answers  


Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,


What is the difference between next sentence and continue in cobol programing language?

0 Answers  


can i use multiple when statements in search & search all ? justify ur answer?

2 Answers  


what is dynamic array in cobol? what is the difference b/w array and table in cobol?

2 Answers  


Categories