If you are using the Bourne shell or the Korn shell,
SAS assigns filerefs of the following form to files that have a file
descriptor (see
Filerefs Assigned by SAS in UNIX Environments) larger than 2.
FILDESnumber
number
is a two-digit representation
of the file descriptor. You can use these filerefs in your SAS applications.
For example, if you
invoke SAS with the following command, then the operating environment
opens the file sales_data and assigns file descriptor 4 to it:
sas salespgm 4< sales_data
SAS assigns the fileref
FILDES04 to the file and executes the application
salespgm
. When the application reads input from FILDES04, it reads the file
sales_data. Using file descriptors as filerefs enables you to use
the same application to process data from different files without
changing the application to refer to each file. In the command that
you use to invoke the application, you assign the appropriate file
descriptor to the file to be processed.