/* REXX UPOE@#ST Will update the stats and TBMOD the table Written by Chris Lewis 19950308 Impact Analysis . SYSEXEC TRAPOUT Modification History 20070517 fxc revamp; */ arg argline address TSO /* REXXSKEL ver.20040227 */ arg parms "((" opts signal on syntax signal on novalue call TOOLKIT_INIT /* conventional start-up -*/ rc = Trace("O"); rc = Trace(tv) info = parms /* to enable parsing */ call A_INIT /* -*/ call B_RESTAT /* -*/ if \sw.nested then call DUMP_QUEUE /* -*/ exit /*@ UPOE@#ST */ /* . ----------------------------------------------------------------- */ A_INIT: /*@ */ if branch then call BRANCH address TSO parse arg memname dataset vv mm created changed, time size init mod id . parse var created crtyr "/" if crtyr < 100 then, if crtyr < 79 then created = "20"created else created = "19"created parse var changed chgyr "/" if chgyr < 100 then, if chgyr < 79 then changed = "20"changed else changed = "19"changed return /*@ A_INIT */ /* . ----------------------------------------------------------------- */ B_RESTAT: /*@ */ if branch then call BRANCH address ISPEXEC "LMINIT DATAID(BASEID) DATASET('"dataset"')" "LMMSTATS DATAID("baseid")" "MEMBER("memname")" "USER("id")", "VERSION("vv")" "MODLEVEL("mm")" "MODDATE4("changed")", "MODTIME("time")" "CREATED4("created")" "CURSIZE("size")", "INITSIZE("init")" "MODRECS("mod")" if rc > 0 then do zerrsm = "Stats Error" zerrlm = "Unable to modify to the ISPF Stats. RC = "rc "SETMSG MSG(ISRZ002)" end /* rc > 0 */ "LMFREE DATAID("baseid")" return /*@ B_RESTAT */ /* . ----------------------------------------------------------------- */ LOCAL_PREINIT: /*@ customize opts */ address TSO return /*@ LOCAL_PREINIT */ /* subroutines below LOCAL_PREINIT are not selected by SHOWFLOW */ /* . ----------------------------------------------------------------- */ HELP: /*@ */ address TSO;"CLEAR" ; if helpmsg <> "" then do ; say helpmsg; say ""; end ex_nam = Left(exec_name,8) /* predictable size */ say " "ex_nam" sets ISPF statistics for the dataset and member specified." say " " say " Syntax: "ex_nam" (Required)" say " (Required)" say " (Required)" say " (Required)" say " (ccyy/mm/dd) (Required)" say " (ccyy/mm/dd) (Required)" say "