Hi,
I’m nost sure why you need the *IN01 code – this won’t do anything. Try this – This will display your next record, each time you press enter :-
FPFRPG1 IF E K DISK
FDSP1 CF E WORKSTN
C READ REC
C DOW *IN03=*OFF
C EXFMT DSP
C READ REC
C ENDDO
C SETON LR
This will display your next record, each time you press F1. Notice the ENDIF is after the READ :-
FPFRPG1 IF E K DISK
FDSP1 CF E WORKSTN
C READ REC
C DOW *IN03=*OFF
C EXFMT DSP
C IF *IN01 = *ON
C READ REC
C ENDIF
C ENDDO
C SETON LR
Regards,
Martin Gilbert.
Discuss This Question: