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 report-item in COBOL?
Write a cobol program making use of the redefine clause.
how do you reference the variable unblock file formats from cobol programs
Explain how to differentiate call by context by comparing it to other calls?
Can we change the password using ALTER? anyone tried and changed?
In which area will you utilize 88 level items in cobol?
Write a program to explain size error.
How to know whether the module is dynamical or statistical?
How do get the result of your program directly on your pc?
What is a scope terminator give example?
i need a small 3d program using inline and outline.
Define cobol?
What is difference between static and dynamic call in cobol?
Why did you choose to work with ibm mainframe cobol programming?
What are declaratives and what are their uses in cobol?