FSLIST Procedure

FSLIST Command

Initiates an FSLIST session from any SAS window. The command enables you to use either a fileref or a filename to specify the file to browse. It also enables you to specify how carriage-control information is interpreted.


FSLIST <* | ? | file-specification <carriage-control-option<overprinting-option>>>

Without Arguments

If you do not specify any of these three arguments, then a selection window appears that enables you to select an external filename.

Required Arguments

opens a dialog box in which you can specify the name of the file to browse, along with various FSLIST procedure options. In the dialog box, you can specify either a physical filename, a fileref, or a directory name. If you specify a directory name, then a selection list of the files in the directory appears, from which you can choose the desired file.
opens a selection window from which you can choose the external file to browse. The selection list in the window includes all external files that are identified in the current SAS session (all files with defined filerefs).
To select a file, position the cursor on the corresponding fileref and press ENTER.
Notes:Only filerefs that are defined within the current SAS session appear in the selection list. Under some operating environments, it is possible to allocate filerefs outside of SAS. Such filerefs do not appear in the selection list that is displayed by the FSLIST command.

The selection window is not opened if no filerefs have been defined in the current SAS session. Instead, an error message is printed, instructing you to enter a filename with the FSLIST command.

identifies the external file to browse. file-specification can be one of the following:
the complete operating environment file specification (called the fully qualified pathname under some operating environments) for the external file. You must enclose the name in quotation marks.
If the specified file is not found, then a selection window appears that shows all available filerefs.
a fileref that is currently assigned to an external file. If you specify a fileref that is not currently defined, then a selection window appears that shows all available filerefs. An error message in the selection window indicates that the specified fileref is not defined.

Optional Arguments

If you specify file-specification with the FSLIST command, then you can also use the following options. These options are not valid with the ? argument, or when no argument is used:
indicates whether carriage-control characters are used to format the display.
If the FSLIST procedure can determine from the file's attributes that the file contains carriage-control information, then that carriage-control information is used to format the displayed text (the CC option is the default). Otherwise, the entire contents of the file are treated as text (the NOCC option is the default).
You can specify one of the following values for this option:
uses the native carriage-control characters of the operating environment.
uses FORTRAN-style carriage control. See the discussion of the PROC FSLIST statement's FORTCC option for details.
treats carriage-control characters as regular text.
indicates whether the carriage-control code for overprinting is honored. OVP causes the overprint code to be honored; NOOVP causes it to be ignored. The default is NOOVP. The OVP option is ignored if NOCC is in effect.