Go to LeighWeb Home Page            

Back To LeighWeb Mainframe Utilities Page

View the module associated with this documentation

 This is an edit macro which will add up a column of numbers in a file you're
 editing.  You must exclude the lines you wish to tally, and specify which
 columns are to be included in the operation.  In the columns selected, spaces
 will be converted to zeros, but any other non-numeric character will cause the
 line to be identified as non-numeric and not counted.  Example follows :
 
 COMMAND ===> addcol 58 61  <== This example would add up the excluded numeric
 lines between columns 58 and 61 inclusive.  Notes : trailing spaces will be
 made zeros as well as leading spaces, so your numbers should be right
 justified.  If the numbers contain decimal points,specifiy the column of the
 decimal point as a 3rd parameter.