; Do not change filenames or add or remove FILEI/FILEO statements using an editor. Use Cube/Application Manager.
RUN PGM=MATRIX PRNFILE="{SCENARIO_DIR}\\OUTPUT\DUWEIGHTS.PRN" MSG='Dwelling Unit Weights'
FILEO RECO[1] = "{Scenario_Dir}\OUTPUT\DUWEIGHTS.DBF",
FIELDS=SIZERANGE,PCT1PER,PCT2PER,PCT3PER,PCT4PER,PCT5PER
FILEI RECI = "{Catalog_Dir}\Parameters\DUWEIGHTS.DBF"

SIZERANGE = SIZERANGE +1
PCT1PER=RI.1PERSONHH
PCT2PER=RI.2PERSONHH
PCT3PER=RI.3PERSONHH
PCT4PER=RI.4PERSONHH
PCT5PER=RI.5PERSONHH

WRITE RECO=1



; The MATRIX module does not have any explicit phases.  The module does run within an implied ILOOP
; where I is the origin zones.  All user statements in the module are processed once for each origin.
; Matrix computation (MW[#]=) are solved for all values of J for each I.  Thus for a given origin zone I
; the values for all destination zones J are automatically computed.  The user can control the computations
; at each J by using a JLOOP.

ENDRUN
