I'm just heading out the door, but here's an example of how I create a variable called LOGREC. This record contains the number of SimpList functions that were performed for a particular user (where for example vs#b is a variable containing the number of Browse functions that were performed and is right justified for a length of 7). As each record is written the columns all line up underneath each other, and some extra columns are written at the end for future use:
logrec = left(syspref,8),
|| left(memname,8), /* userid */
|| right(invoke,7), /* total tool usage this month*/
|| right(vs#b,7), /* total Browse this month*/
|| right(vs#c,7), /* total Copy this month*/
|| right(vs#e,7), /* total Edit this month*/
|| right(vs#h,7), /* total HSM this month*/
|| right(vs#i,7), /* total Info this month*/
|| right(vs#l,7), /* total List this month*/
|| right(vs#p,7), /* total Print this month*/
|| right(vs#u,7), /* total Util this month*/
|| right(vs#v,7), /* total View this month*/
|| right(vs#rtz,7), /* total func R/T/Z this month*/
|| right(vs#123,7), /* total func 1/2/3 this month*/
|| right(vs#chg,7), /* total CHGALL this month*/
|| right(vs#sek,7), /* total HIDE/SEEK this month*/
|| right(vs#d,7), /* total mems delet this month*/
|| right(vs#j,7), /* total mems submt this month*/
|| right(vs#r,7), /* total mems renam this month*/
|| right(vs#a,7), /* total mems stat this month*/
|| right(vs#amb,7), /* total AMBLIST this month*/
|| right(vs#o,7), /* total macrO this month*/
|| right(vs#t,7), /* total TSO/ISPF this month*/
|| right(vs#x,7), /* total exclude this month*/
|| right(vs#n,7), /* total xfer this month*/
|| right(vs#lbl,7), /* total labels this month*/
|| right(vs#see,7), /* total SEE cmd this month*/
|| right(vs#sym,7), /* total symbolics this month*/
|| right(vs#wkst,7), /* total workstationthis month*/
|| right(vs#link,7), /* total AML linK this month*/
|| right(vs#look,7), /* total AML looK this month*/
|| " 0 0 0 0 0"
> Date: Fri, 26 Apr 2013 14:26:03 -0400
> From:
john.t...@SALLIEMAE.COM
> Subject: Re: Help with column specific output using Rexx