XMT program ----------- Purpose: To convert files from various formats to other formats Operating System: RSX-11M Version 3 Calling: RUN $XMT XMT>file1=file2/switches file1 output file file2 input file Switches: /EB ASCII-to-EBCDIC conversion /AS EBCDIC-to-ASCII conversion /UC lower-to-upper-case conversion (ASCII) /UCX as /UC, but also converts | (ASCII 174) to ! (ASCII 041) /BL replace empty line by a single space (ASCII) /-BL delete trailing blanks /FTN gives the output file the FORTRAN carriage control attribute (default is CR/LF attribute) /CRLF search the input for CR/LF separators each separator starts a new record in the output file /-CRLF don't search for CR/LF (must be specified for binary files) N.B. default is /CRLF ! /RC:n split input record in fixed length records of length n and generate a fixed-length record file /TR truncate input records to length specified by /RC:n /TR:n truncate input records to length n /TR:m:n delete first m characters and truncate at next n chars If also /RC is given n must be equal to or a multiple of the RC parameter N.B. /RC:n/TR generates fixed-length records of length n /TR:n generates variable-length records of length n /DE delete input file after successful conversion /SP spool output file to lineprinter /P:C clear the parity bit of all input characters /P:S set the parity bit of all input characters /P:O generate odd parity bits /P:E generate even parity bits default is no parity handling Magtape input: specify MTxx: (or MMxx:) for file2 The tape must be unmounted, unlabelled with each block = 1 input record. By using the /RC:n switch this record may be split into several smaller records. If the tape is preceded by a tape mark (i.e. an empty 'label') the switch /TM must be used. The following switches may be used for magtape input only: /RW rewind the tape before the operation (default is no rewind) /DENS:x spefify the tape density x=1600 or 16 for 1600 BPI (MM: only) x=800 or 8 for 800 BPI x=556 or 5 for 556 BPI (MT: only) x=200 or 2 for 200 BPI (7 track MT: only) default is 800 BPI or the last one specified (the density is not reset between successive commands) /TM:m:n specifies the number of tape marks to be skipped m= number of tapemarks to be skipped before the operation n= number of tapemarks to be read before the operation stops default is m=0, n=1 /TM means /TM:1:1 /TM:n means /TM:0:n Magtape output: specify MTxx: (or MMxx:) for file1 The tape will be written as 1 block per record The following switches are applicable for magtape output: /RW see above /DENS see above /-EOF don't write a tapemark after the output default (/EOF) means 2 tapemarks are written with a backspace over the last one It is not possible to copy from magtape to magtape. COMBINATIONS OF SWITCHES ARE POSSIBLE, BUT BEWARE OF PECULIAR SIDE EFFECTS!!! Installation: @XMTBLD INS XMT/TASK=...XMT Piet van Oostrum