SUBJECT: USING TABLEGEN.TEC with MUNG to produce a MACRO-11 table for CCL from a .CCL command file. A file containing normal CCL commands, such as a USER.CCL or SYSCCL.CCL file, can be converted into a MACRO-11 module that will be included in CCL.TSK, greatly speeding processing (although making CCL considerably larger and also making it harder to modify commands, since CCL must be reassembled to change the TABLE). Al Watson of the BERGEN RECORD has developed a TECO macro to do this conversion speedily and intelligently. The IND command file TABLEGEN.CMD provided by Jim Downward runs very slow and cannot handle comments or blank lines (it attempts to make them entries in the TABLE). USING THE TECO MACRO The source file should contain only CCL commands, comments, and blank lines. SYSCCL.CCL contains a file name on its first line which should be edited out if this is the file you are converting. The TECO macro is called TABLEGEN.TEC and resides in [1,5] along with SYSCCL.CCL. (There is also a commented version, TABLEGEN.TES, for those who want to know how TECO does it.) Call in the file you want to convert with standard TECO, giving a different output file name if you wish: TECO OURTABLE.MAC=OURTABLE.CCL When you get the TECO "*" prompt, type in: EI[1,5]TABLEGEN$$ (where "$" represents an escape) The "[1,5]" is not necessary if the file you are converting lives in [1,5] and you have already set that as your default UIC. When the TECO prompt returns, you have converted the file. EXIT to store the MACRO version, or "HT" to see the whole thing before storing. INCORPORATING THE TABLE INTO CCL The CCLGEN.CMD file gives you the option of including a table. You can either answer YES to the question about a user-created table, or you can name the table you are creating TABLEBIG.MAC and request the table by that name. You must move a copy of your table to UIC [344,61] on the SYSTEMDEV pack before starting CCLGEN. Currently (9-MAR-82) we are naming the table TABLEBIG.MAC. REVERSE CONVERSION Another TECO macro, also in [1,5], reverses the process. It is called MACTOCCL.TEC. It assumes that the TABLE.MAC you are re-converting was created by TABLEGEN.TEC and has the exact format that macro creates, such as number of comment lines between commands, etc. Usage: TEC TABLE.CCL=TABLE.MAC *EIMACTOCCL$$ *EX$$