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 / 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 |
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?
Write some characteristics of cobol as means of business language.
how to submit a jcl by cobol program. clear me with an example.
What is amode(31)
How to delete the records of a dataset through cobol programme?We should not use jcl utilitities like IDCAMS.
What is the difference between a binary search and a sequential search?
how to transfer the file from pc to mainframe??
what is srange and nosrange pls reply to ths question ?
How to print 10 to 1 if the input have only 10 digit number?
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
What is the difference between SEARCH and SEARCH ALL?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?