I'm looking for some guidance on loading a multi-segment FOCUS database using iWay (we're on release 5.1.2). The target has one parent segment with three child segements.
The child segments are quite simple in that they are providing full descriptions of codes (ie the parent segment may contain a code value of '01' for a report type and the child segment provides a full description of the value, eg 'Trade Report'). The FOCUS master file describes these segments with SEGTYPE=U.
The data in all segments is to be completely dropped and refreshed each month.
My question: how is the load to be performed? Should the parent be loaded first and then the children or the other way around?
I've had a poke around in the documentation library with no success (there's simple stuff on how to load an individual segment but nothing on how to manage the target as a whole).
I know the same could be achieved by just joining files in a report but I am keen for to have OLAP dimensions across the child segments.
Thanks in advance
Plain old MODIFY. Since NOMATCH is guaranteed, you don't even need MATCH-WITH-UNIQUES.
If you arrange to HOLD the data, sorted by key, this will do it:
whatever AS XYZ
CREATE FILE XYZ
MODIFY FILE XYZ
FIXFORM FROM HOLD
DATA ON HOLD
(The USE syntax is platform dependent.)
|Powered by Social Strata|