Hi, could you please explain to me why when using Browse the program doesn't work.
thanks
PROCESS-POLICIES.
******************
MOVE LOW-VALUES TO WPOL-KEY.
MOVE HIGH-VALUES TO WPOL-ENDBR-KEY.
* PERFORM POL-1000-BROWSE
* THRU POL-1000-BROWSE-X.
IF WPOL-IO-OK
PERFORM POL-READ-NEXT
THRU POL-READ-NEXT-X
PERFORM POL-READ-NEXT
THRU POL-READ-NEXT-X
END-IF.
IF NOT WPOL-IO-EOF
PERFORM MAIN-LINE
THRU MAIN-LINE-X
UNTIL WPOL-IO-EOF.
* PERFORM POL-END-BROWSE
* THRU POL-END-BROWSE-X.
PROCESS-POLICIES-X.
EXIT.
/
ALL-DONE.
**********
PERFORM POL-CLOSE
THRU POL-CLOSE-X.
PERFORM OCF-CLOSE
THRU OCF-CLOSE-X.
STOP RUN.
ALL-DONE-X.
EXIT.
0000-MAIN-LINE.
MOVE 0 TO W1-RPOL-POL-MPREM-AMT.
MOVE MPREM-AMT TO W1-MPREM-AMT.
COMPUTE W1-MPREM-AMT=…..
COMPUTE WS-GRS-AMT=…..
IF (W1-MREM-AMT NOT EQUAL 0)
AND (BILL NOT EQUAL 0)
AND (WS-GRS-AMT > GRS-APREM-AMT)
DISPLAY 'IF >= POL-ID = ', POL-ID
MOVE XXXXX TO YYYYY
* PERFORM POL-READ-FOR-UPDATE
* THRU POL-READ-FOR-UPDATE-X
PERFORM POL-REWRITE
THRU POL-REWRITE-X.
IF NOT WPOL-IO-EOF
PERFORM POL-2000-READ-NEXT
THRU POL-2000-READ-NEXT-X.
0000-MAIN-LINE-X.
EXIT.
thanks
PROCESS-POLICIES.
******************
MOVE LOW-VALUES TO WPOL-KEY.
MOVE HIGH-VALUES TO WPOL-ENDBR-KEY.
* PERFORM POL-1000-BROWSE
* THRU POL-1000-BROWSE-X.
IF WPOL-IO-OK
PERFORM POL-READ-NEXT
THRU POL-READ-NEXT-X
PERFORM POL-READ-NEXT
THRU POL-READ-NEXT-X
END-IF.
IF NOT WPOL-IO-EOF
PERFORM MAIN-LINE
THRU MAIN-LINE-X
UNTIL WPOL-IO-EOF.
* PERFORM POL-END-BROWSE
* THRU POL-END-BROWSE-X.
PROCESS-POLICIES-X.
EXIT.
/
ALL-DONE.
**********
PERFORM POL-CLOSE
THRU POL-CLOSE-X.
PERFORM OCF-CLOSE
THRU OCF-CLOSE-X.
STOP RUN.
ALL-DONE-X.
EXIT.
0000-MAIN-LINE.
MOVE 0 TO W1-RPOL-POL-MPREM-AMT.
MOVE MPREM-AMT TO W1-MPREM-AMT.
COMPUTE W1-MPREM-AMT=…..
COMPUTE WS-GRS-AMT=…..
IF (W1-MREM-AMT NOT EQUAL 0)
AND (BILL NOT EQUAL 0)
AND (WS-GRS-AMT > GRS-APREM-AMT)
DISPLAY 'IF >= POL-ID = ', POL-ID
MOVE XXXXX TO YYYYY
* PERFORM POL-READ-FOR-UPDATE
* THRU POL-READ-FOR-UPDATE-X
PERFORM POL-REWRITE
THRU POL-REWRITE-X.
IF NOT WPOL-IO-EOF
PERFORM POL-2000-READ-NEXT
THRU POL-2000-READ-NEXT-X.
0000-MAIN-LINE-X.
EXIT.