TECMAC.DOC This document describes the TECO macros which reside in this account. Where appropriate, MUNG calling conventions and use are also described. Note that only the TECO source files (.TES) have been included in this distribution. A TECO squisher can be used to compress these macros. ASCII.TES PDS> MUNG ASCII,[=] [:] ASCII.TEC -------------------------------------------------------------- If is not specified, := . If the is not specified, it becomes "/". Each line of is converted to the .ASCII directive in preparation for using the text in a Macro-11 program. The text in is preceded by a .MCALL C$C and then a C$C. The text is surrounded by .NLIST BEX and .LIST BEX. CTLIMP.TES PDS> MUNG CTLIMP, CTLIMP.TEC -------------------------------------------------------------- All files having the matching are duplicated. The duplicate files having varying length records, and implied carriage control. Note that wildcards are allowed, but that neither will UIC's nor explicit versions are allowed. KEEPER.TES PDS> MUNG KEEPER, KEEPER.TEC -------------------------------------------------------------- This macro will strip a file of records that do not contain a specified string in a specified location. The records may be variable in length and the string may contain any number of characters. If a given record is not long enough to test, then it is retained. NODUPS.TES PDS> MUNG NODUPS, NODUPS.TEC -------------------------------------------------------------- Duplicates of adjoining records in the specified file are removed. STRIPPER.TES PDS> MUNG STRIPPER,=/ST:x/EN:y STRIPPER.TEC -------------------------------------------------------------- Each record in is stripped of all characters except those between (and including) x and y. The flag /ST: indicates start position, /EN: indicates the end position. The first byte of each record is position 1. Note: This macro requires that all records in be at least y characters long. Also, no test is made to ensure that x LE y. TABREP.TES PDS> MUNG TABREP, TABREP.TEC -------------------------------------------------------------- All tabs in the file specified will be replaced with spaces. Tab stops are assumed to be at every 8 spaces. WILD.TES PDS> MUNG WILD,/PE: or WILD.TEC PDS> MUNG WILD,/FI: -------------------------------------------------------------- This macro will perform some user defined set of operations on the group of files defined by the string specified in the command line. The operation to be performed is either a short command string (/PE:) or a macro defined in a file (/FI:). WILD opens each file and yanks the first page into the buffer. The user is responsible for closing each file when the operation is complete. 029TO026.TES PDS> MUNG 029TO026, 029TO026.TEC -------------------------------------------------------------- The existing file is a file of records consisting of 029 punch card codes. This file is converted to 026 punch card codes and placed in a new file.