How can I find the maximum value of a field in a file while
reading the file dynamically? without using sort function.
Suppose i have a file with fields Timestamp, description,
teamname, teamnumber.. i have read the file till end and
find the maximun value of timestamp which is not in sorted
order.. can we use function max(timestamp)?

Answer Posted / mr.perfect

yes, we can use the function command.

MOVE FUNCTION MAX(timestamp-field) TO WS-TIMESTAMP

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the compute verb? How is it used?

661


What type of SDLC u followed? Why?

1520


What is the use of intialize verb?

750


Write a program to explain size error.

677


What are the different rules of SORT operation?

698






how do you reference the rrds file formats from cobol programs

800


how do you reference the printer file formats from cobol programs

665


) How do u handle errors in BMS macro?

1428


What is the difference between structured cobol programming and object alternativelyiented cobol?

755


What is the difference between comp and comp-3 usage?

681


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

857


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710


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.

2008


HOw can I get the negative sign while deduct high value from low value

1790


what happens if parmparameter passes zero bytes to the program

1667