Purpose
Specifies a file from which commands are to be read (input redirection).
Syntax
< fname
Remarks
This command causes subsequent commands to be read from the specified file. Commands are read from this file until a RETURN command is read, the end of the file is reached, or input is again redirected. Input redirection can be nested up to 10 levels deep. If fname is CON then input is taken from the console (generally the user's keyboard). If input has been redirected to the console, entering RETURN will cause control to revert back to the calling command file.
Examples
a) The file STARTUP.CMD contains the following text:
ECHO
NAMES cc setno sex region dose @
INPUT study.dat @
MISS dose < 0 >= 999 @
TRAN exposed = (dose>0) @
LEVELS exposed sex @
SAVE @
RETURN
To redirect input from the text file STARTUP.CMD:
< startup.cmd
b) For analysis of time-dependent covariates in PEANUTS, the file CESS.TDC contains the following code for creating categories of time since cessation of exposure:
ECHO
TRAN tmlast = alstemp - agein @
TTRAN v3 = v1*log(%time);
cess = (%time > tmlast)+(%time > tmlast+5)+
(%time > tmlast+10) @
TLEVELS cess @
RETURN
To fit a model with cess and then remove time-dependent code:
< cess.tdc
FIT dose cess; BY sex @
TTRAN @