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
What is the compute verb? How is it used?
What type of SDLC u followed? Why?
What is the use of intialize verb?
Write a program to explain size error.
What are the different rules of SORT operation?
how do you reference the rrds file formats from cobol programs
how do you reference the printer file formats from cobol programs
) How do u handle errors in BMS macro?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the difference between comp and comp-3 usage?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
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.
HOw can I get the negative sign while deduct high value from low value
what happens if parmparameter passes zero bytes to the program