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E^S ^W^I^L^L ^B^E ^R^E^W^O^U^N^D.
.ENDHELP
 .IF($RW$.NE.$NO$,REWIND)
   .IF($L$.NE.$0$.AND.$L$.NE.$OUTPUT$)REWIND(L)
   REWIND(I)
 .ENDIF(REWIND)
 RENAME(ZZZZSF3=I)
 RETURN(ZZZZSF0,ZZZZSF1,ZZZZSF2,C)
 .IF($REC$.NE.$$.AND.$REC$.NE.$*$,MULTI)
   GTR(ZZZZSF3,I)REC
 .ELSE(MULTI)
   COPYBR(ZZZZSF3,I)
   .IF($REC$.EQ.$*$,MULTI)
     WHILE(.NOT.(FILE(ZZZZSF3,EOF).OR.FILE(ZZZZSF3,EOI)),NEXTREC)
 .ENDIF(MULTI)
 $PANEL(#I=I,#L=ZZZZSF2,#C=ZZZZSF0)
 .IF($L$.NE.$0$)COPYBR(ZZZZSF2,L)
 .IF($C$.NE.$0$,LOAD)
   COMPASS,#I=ZZZZSF0,#L=0,B=ZZZZSF1,S=0.
   LOAD(ZZZZSF1)
   NOGO(C)
 .ENDIF(LOAD)
 RETURN(ZZZZSF0,ZZZZSF1,ZZZZSF2)
 .IF($REC$.EQ.$*$,MULTI)
   COPYBR(ZZZZSF3,I)
   ENDW(NEXTREC)
 .ENDIF(MULTI)
 .IF($C$.NE.$0$.AND.$LIB$.NE.$0$,STORE)
   .IF(.NOT.FILE(LIB,AS),NOTAS)
     $ULIB(#C,C,LIB)
   .ELSE(NOTAS)
     $ULIB(#R,C,LIB)
   .ENDIF(NOTAS)
 .ENDIF(STORE)
 RENAME(I=ZZZZSF3)
 .IF($RW$.NE.$NO$,REWIND)
   .IF($L$.NE.$0$.AND.$L$.NE.$OUTPUT$)REWIND(L)
   REWIND(I)
 .ENDIF(REWIND)
 REVERT,NOLIST.
 EXIT.
 RENAME(I=ZZZZSF3)
 .IF($RW$.NE.$NO$,REWIND)
   .IF($L$.NE.$0$.AND.$L$.NE.$OUTPUT$)REWIND(L)
   REWIND(I)
 .ENDIF(REWIND)
 .IF($L$.NE.$0$)COPYBR(ZZZZSF2,L)
 RETURN(ZZZZSF0,ZZZZSF1,ZZZZSF2)
 REVERT,ABORT.
*WEOR