|
If you are using a V6.* version of FOCUS, the best way would be to
create a FOCUS file in the following manner.
TABLE FILE AM1001
PRINT FLDA FLDB FLDC ...
BY CCTR_BKCTR
--> ON TABLE HOLD AS AM03EXTR FORMAT FOCUS INDEX CCTR_BKCTR
END
This will create a .FOC file (AM03EXTR.FOC) containing all of the
PRINTed fields, keyed by the object of the BY PHRASE (CCTR_BKCTR).
Additionally, we've instructed FOCUS to INDEX the KEY field. This is
important to avoid any "from field/to field out of sequence" type
errors when joining to this file.
Once you've created this file, simply JOIN to it from your other data
files.
e.g. JOIN COST_CTR IN OTHRFILE TO CCTR_BKCTR IN AM03EXTR AS J1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you are using a pre- V6.0 version of FOCUS, you'll have to take a
two-step approach.
1) TABLE FILE AM1001
PRINT FLDA FLDB FLDC ...
BY CCTR_BKCTR
ON TABLE HOLD
END
2) MODIFY FILE AM03EXTR NOTE: You'll have to
FIXFORM FROM HOLD create the AM03EXTR.MAS
MATCH CCTR_BKCTR to correspond to the
ON MATCH UPDATE * fields (use same names)
ON NOMATCH INCLUDE being loaded from AM1001
DATA ON HOLD
END
|