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 |
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
How many divisions we have in Cobol ?
What type of Call you would use if you don;t want the control back to the calling program?
How do you set a return code to the JCL from a COBOL program?
Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.
How can you add a particular field/coloumn in copybook?
Can we use redefine clause in occurs clause?
what is subscript in cobol?give realtime example?
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
i want to enter the name 'pandu' into ur table how?
What is the maximum length of a field you can define using COMP-3?
4 Answers Complex System, Infosys,