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 difference between PIC 9.99 and PIC9v99?

1036


How do u write test cases?

1821


What is link edit in cobol?

947


What are the different types of condition in cobol and write their forms.

874


How do you get the data to code the BMS macro?

1698


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1885


i need a small 3d program using inline and outline.

1900


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1824


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.

2237


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9242


What are various search techniques in cobol? Explain.

871


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2996


Describe the cobol database components?

893


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

943


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2183