; Do not change filenames or add or remove FILEI/FILEO statements using an editor. Use Cube/Application Manager.
RUN PGM=NETWORK PRNFILE="X:\Projects\CRTPA\Model\C\APPLICATIONS\00NET00A.PRN" MSG='Generate Network Volume Report'

FILEO NETO = "{SCENARIO_DIR}\output\TransitLinkLoad_{alt}{year}.NET",
INCLUDE=A,B,NTVOL_PK,TVOL_PK,NTVOL_OP,TVOL_OP,TOTAL_VOLUME

FILEI LINKI[5] = "{SCENARIO_DIR}\output\PKWalk.NET"
FILEI LINKI[4] = "{SCENARIO_DIR}\output\TLINKOP3_{alt}{year}_It01.DBF"
FILEI LINKI[3] = "{SCENARIO_DIR}\output\TLINKOP1_{alt}{year}_It01.DBF"
FILEI LINKI[2] = "{SCENARIO_DIR}\output\TLINKPK3_{alt}{year}_It01.DBF"
FILEI LINKI[1] = "{SCENARIO_DIR}\output\TLINKPK1_{alt}{year}_It01.DBF"


MERGE RECORD=F

PROCESS  PHASE=LINKMERGE

  NTVOL_PK = LI.1.NTVOL + LI.2.NTVOL
  TVOL_PK  = LI.1.TVOL + LI.2.TVOL
  NTVOL_OP = LI.3.NTVOL + LI.4.NTVOL
  TVOL_OP  = LI.3.TVOL + LI.4.TVOL
  TOTAL_VOLUME = TVOL_PK+ TVOL_OP

ENDPROCESS

ENDRUN
