In addition to the standard Report Writer parameters, the programmer can arrange to have shell variables available to the report program. To access a shell variable, the programmer simply uses its name preceded by a dollar sign ($), as in:
This accesses the shell variable MASTER.
Shell variables are made available to the report program (and any other program for that matter), by executing the following commands from within the shell:
To send the file name of "sub" into a report program as $MASTER, use the following commands: