Alternate Entry Name: .SYSTM
B: status = system([subsys,] format, a1, a2, a3, ... );
/* C users use C "system" */
SYSTEM calls another TSS subsystem. A command line is constructed with PRINTF using "format" and the arguments that follow it. This is passed to the called subsystem as its command line. The user does NOT supply a trailing '*n'; that is supplied by SYSTEM. If no subsystem name is supplied, SYSTEM will use the first four characters of the command line.
The effect of calling SYSTEM is similar to what would happen if the user had typed the command line at command level. However, TSS does not search the current command list to determine that subsystem to invoke; thus when calling subsystems that have command names that differ from the subsystem name (e.g. OLDN sometimes has command names of "new", "old" and "oldp"), it is the programmer's responsibility to choose the appropriate subsystem. Note however that some command names change their meaning depending on context (e.g. run), and there is no way for an unprivileged program to decide what the subsystem might be.
system("access cf,/blat,mode/random/,b/1,20/");
has the same effect as if the user had typed:
access cf,/blat,mode/random/,b/1,20/
Copyright © 1996, Thinkage Ltd.