define sort? and its syntax?

Answers were Sorted based on User's Feedback



define sort? and its syntax?..

Answer / chandana

Here the sort is considered as an internal sort that is we
want to manipulate the data before feeding it to sort.Else
in rest of the cases we use external sort.
The syntax is :
SORT SORTFILE ON ASCENDING/DESCENDING KEY
USING FILE1,FILE2/ INPUT PROCEDURE PARA-1
GIVING FILE3/ OUTPUT PROCEDURE PARA-2

Is This Answer Correct ?    8 Yes 1 No

define sort? and its syntax?..

Answer / swetha p rao

Sort in the sense ? there is an opcode for sorting array

SORTA sorts the array in ascending order

Is This Answer Correct ?    5 Yes 1 No

define sort? and its syntax?..

Answer / tim austin

There is no need in an as400 COBOL shop to ever use a sort.
Data is organized by keyed physical files or alternate
logical paths over the physical path. The most Inefficient
thing you can do in as400 cobol is to have the program
attempt to sort data

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL400 Interview Questions

define sort? and its syntax?

3 Answers  


What is perform?

0 Answers  


What is output procedure?

0 Answers  


How to detect record is locked in cobol/400? What is the solution for that?

0 Answers  


seqence numbers in cobol

0 Answers   TCS,






Explain how to detect record is locked in cobol/400? What is the solution for that?

0 Answers  


How to update data area in cobol 400 program?

0 Answers  


How to detect record is locked in cobol/400?

0 Answers  


How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC

2 Answers   HP,


How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC * EVALUATE TRUE WHEN SQLCODE = +000 MOVE WS-COUNT TO Copybook field WHEN SQLCODE = +100 MOVE ZEROES TO Copybook field

2 Answers  


what is the cobol compiler?

2 Answers   TCS,


Explain the difference between search and searchall?

0 Answers  


Categories