How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning.
Answer Posted / nagaraju
SORT SORT-FILE
ON ASCENDING/DESCENDING KEY key-value
USING input-file
GIVING output-file.
we can use input procedure and output procedure as fallow
SORT SORT-FILE
ON ASCENDING/DESCENDING KEY key-value
INPUT PROCEDURE IS --------
OUTPUT PROCEDURE IS -------.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are the cobol coding sheets?
How do you define a variable of comp-1 and comp-2?
what are decleratives in cobol?
Write a program to enter and display the names of students in a class using the occurs clause.
What is link edit in cobol?
example for sub strings ? and refernce modifications whit output pls
What are literals?
) How do u handle errors in BMS macro
Write the code implementing the perform … varying.
How arrays can be defined in COBOL?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How do define dynamic array in cobol.
What guidelines should be followed to write a structured cobol prgm?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.