Using the SAS Windowing Environment |
Ways to Find a File |
There are a number of ways in which you can find a file or library member in the SAS windowing environment, including the following:
When the SAS windowing environment opens, the Explorer window also opens by default in many operating environments. You can issue the EXPLORER command to open the Explorer window if it does not open by default.
To find a file in the Contents Only view of the Explorer window, select the Libraries folder or the File Shortcuts folder, and then select Open from the pop-up menu. You can continue this process with subfolders until you locate the appropriate file.
To find a file in the Tree view of the Explorer window, use the expansion icons (+ and - icons) located in the tree until the appropriate file appears in the window.
Note: You might find it useful to use specific navigational tools to move through the different levels of the Explorer window:
Menu | View Up One Level |
Command |
For more information about selecting an Explorer window view, see Customizing the Explorer Window.
The Find window enables you to search for an expression (such as a text string or a library member) that exists in a SAS library. The default search looks at everything in the library, except catalogs, but you can click the check box for the search to include the catalogs in the library as well.
The Find Window
Select Tools Find from the Explorer window to open the Find window.
Alternatively, issue the EXPFIND or EXPFIND <library-name> command. If you issue the EXPFIND command, then SASUSER is the default library. If you issue the EXPFIND WORK command, then WORK is the default library.
In the Search For field, enter the expression that you want to find. Wildcard characters are acceptable.
From the Search In drop-down list, select the library in which you want to search.
Click Search Catalogs to expand the search to include the catalogs of the library that you have selected.
Searching catalogs can lengthen search time considerably depending on the size and number of catalogs in the library.
You can find TABLE files that begin with a specific letter and exist in a specific library. For a file that starts with the letter S and which exists in the SASHELP library
Issuing File-Specific Commands |
There are a number of commands that you can issue against a file after you find the file in the SAS windowing environment. The commands that are available are determined by the type of file with which you are working.
Find the file with which you want to work. For more information, see Ways to Find a File.
Select the file, and then right-click the file. A list of file-specific commands appears from which you can make a selection.
Operating Environment Information: If you are using the z/OS or CMS operating environment, then you can open a pop-up menu by typing ? in the selection field next to an item. Alternatively, you can type an s or x in the selection field next to an item.
Opening Files |
There are a number of ways in which you can open files in the SAS windowing environment.
To open a SAS file from Explorer:
Open a library and appropriate library members until you see the file that you want to open.
Select the file, then select Open from the pop-up menu.
Depending on the file type, you might also be able to select Open in Editor.
Note: In some cases, the pop-up menu also enables you to select Browse in SAS Notepad, which enables you to open a file in the SAS NOTEPAD window.
To open a file that has a file shortcut:
Assigning a File Shortcut |
File shortcut references provide aliases to external files (such as a .sas program file or a .dat text file). A file shortcut is the same as a file reference or fileref. In operating environments that support drag and drop functionality, you can drag file shortcuts from the Explorer window to the Editor window to display their contents.
In the Name field of the File Shortcut Assignment window, enter a name for the file shortcut.
Select the method or device that you want to use for the file shortcut.
The methods or devices that are available from the Method drop-down list depend on your operating environment. The DISK method is the default method (if it is available for your operating environment).
Select the Enable at Startup check box if you want SAS to automatically assign the file shortcut each time SAS starts. This option is not available for all the file shortcut methods.
If you want to stop a file shortcut from being enabled at startup, then select the file shortcut in the SAS Explorer window, and then select Delete from the pop-up menu.
Fill in the fields of the Method Information area, including the name and location of the file for which you want to create a file shortcut. You can select Browse to locate the actual file. The fields that are available in this area depend on the type of method or device that you select.
Note: Selecting a new method type erases any entries that you might have made in the Method Information fields.
Select OK to create the new file shortcut. The file shortcut appears in the File Shortcut folder of the SAS Explorer window.
You can use the following ways to create a file shortcut, depending on your operating environment:
while your mouse is positioned on File Shortcuts in the Explorer window.
New File Shortcut if you have opened the File Shortcut folder in the Explorer window.
New (while your mouse is positioned on File Shortcuts in the Explorer window.)
Modifying an Existing File Shortcut |
You can modify existing file shortcut references, if needed.
DMFILEASSIGN file-shortcut-name |
The File Shortcut Assignment window appears. Its fields include information that is specific to the chosen file shortcut.
Edit the fields of the File Shortcut Assignment window as needed.
Right-click the File Shortcuts folder and select Open. Alternatively, you can double-click the folder to open it.
Right-click the file shortcut reference that you want to change, and then select Modify.
Edit the fields of the File Shortcut Assignment window as needed.
Operating Environment Information: If you are using the z/OS or CMS operating environment, then you can open a pop-up menu by typing ? in the selection field next to an item. Alternatively, you can type an s or x in the selection field next to an item.
Printing Files |
There are a number of ways in which you can print files. Often, printing capabilities depend on the type of file with which you are working, as well as your operating environment.
Nonetheless, the following lists common ways in which you might be able to print a file.
Refer to your operating environment documentation for information about printing files.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.