I write a program to read the physical file:
0002.00 A REF(USRMF) 0002.01 A R TSREC 0005.00 A USRID R *user ID 0006.00 A USRDT R *date 0007.00 A USRTI R *time IN 0008.00 A USRTO R *time OUT 0009.00 A K USRID
Where I allow the user to enter the date, time in and time out.
Ofcourse it will duplicate the USRID:
Where on my program I check the previous max value like this:
0019.01 C *LOVAL SETLL USRTS 0019.03 C USRID READE USRTS 45 0019.04 C DOW (*IN45='0') 0019.05 C IF (USRDT>=MIN) 0019.06 C MOVE USRTO MAX 0019.07 C MOVE USRDT MIN 0019.08 C ENDIF 0019.09 C USRID READE USRTS 45 0019.10 C ENDDO 0029.00 C ENDSR
I have the following users:
Opt USR ID User Name A0000001 SAMSUL ARIPIN MISDAR A0000002 NUR QISTINA SAFIYYAH A0000003 LEE TSAE YUN A0000004 SOFFUAN SAURI
But when I try to compare with previous value.
My program only can check for user A000000001
, not the other users.
How can I modify the progrtam so that all users are checked?