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 COBOL2 AND COBOL390?
What are literals?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Write the code implementing the perform … varying.
Describe the cobol database components?
How do you get the data to code the BMS macro?
State the various causes of s0c1, s0c5 and s0c7.
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
IF I mention stop run in CICS what happens?
In COBOL, what is the different between index and subscript?
Explain about different table spaces.
example for sub strings ? and refernce modifications whit output pls
what is search and searchall?what is the diffrence between them?give an best example?
What is link edit in cobol?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc