Originally posted by Danny-SRL:
Lera,
I will assume that OMETHOD and BSARK have the same format.
There are 2 methods I can think of (probably more...).
Method 1:
SET HOLDLIST=PRINTONLY, ASNAMES=ON
TABLE FILE filename
PRINT BSARK AS OMETHOD
BY PERIOD BY INVOICENUM
ON TABLE HOLD
END
MODIFY FILE filename
FIXFORM FROM HOLD
MATCH PERIOD INVOICENUM
ON MATCH UPDATE OMETHOD
ON NOMATCH REJECT
DATA ON HOLD
END
Method 2 - this works only with FOCUS files
MODIFY FILE filename
NEXT PERIOD INVOICENUM
ON NEXT COMPUTE OMETHOD=D.BSARK;
ON NEXT UPDATE OMETHOD
ON NONEXT GOTO EXIT
DATA
END
Good luck.