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 difference between PIC 9.99 and PIC9v99?
How do u write test cases?
What is link edit in cobol?
What are the different types of condition in cobol and write their forms.
How do you get the data to code the BMS macro?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
i need a small 3d program using inline and outline.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are various search techniques in cobol? Explain.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Describe the cobol database components?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?