Information Systems:EODUPDW
Jump to navigation
Jump to search
This rebuilds ASW search files, and runs IC calcs (Inventory Control calculations). It is called by EODWEEKLY.
/* Calculate IC CALCS period as calendar year and month (not fiscal) */ CHGASWLDA TYPE(*DATDZ) STARTPOS(001) RTVDTAARA DTAARA(*LDA (1 6)) RTNVAR(&PERIOD) /* Periodic balance update */ RTVASWPAR PGM(DIR345B) PAID(BALUPDATE) USER(*ALL) CHGASWLDA TYPE(*PERDZ) STARTPOS(001) CHGASWLDA TYPE(*PERDZ) STARTPOS(007) EXCASWPGM PGM(DIR345B) PARM(N) /* Rebuild item search fields */ RTVASWPAR PGM(DMC981) PAID(ITEMSEARCH) USER(*ALL) CHGASWLDA TYPE(*PERDZ) STARTPOS(007) EXCASWPGM PGM(DMC981) PARM(N) /* Rebuild name search fields */ RTVASWPAR PGM(GDMC981) PAID(NAMESEARCH) USER(*ALL) CHGASWLDA TYPE(*PERDZ) STARTPOS(007) EXCASWPGM PGM(GDMC981) PARM(N) /* Inventory calculations */ RTVASWPAR PGM(INVC401) PAID(ICCALCS) USER(*ALL) CHGASWLDA VALUE(&PERIOD) TYPE(*CHAR) STARTPOS(226) + POSITIONS(6) EXCASWPGM PGM(INVC401) PARM(N)