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
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
Why would you use find and get rather than to obtain?
In which area will you utilize 88 level items in cobol?
Name some of the examples of COBOl 11?
In COBOL, what is the different between index and subscript?
Write the code to count the sum of n natural numbers.
example for sub strings ? and refernce modifications whit output pls
How do u write test cases?
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
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
) How do u handle errors in BMS macro
Can a Search can be done on a table with or without Index?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What rules are to be followed while using the corresponding options?