Macro XDIR (from Fraktal SAS Programming)
This SAS Macro reads entries from a specified OS directory and writes results to the SAS LOG screen.
- When no directory is specified, a pop-up window is defined and opened to ask the user for the directory name.
| Code executed | Function performed | 
|---|---|
| 
 
 
 | Start macro definition with name and positional parameter xpath. | 
| 
 
 
 | Define branch when parameter xpath is not supplied. | 
| 
 
 
 | Start definition of pop-up window. | 
| 
 
 
 | Specify position and size of window. | 
| 
 
 
 | Specify constant text shown, parameter name to be populated and attributes. | 
| 
 
 
 | Terminate pop-up window definition statement. | 
| 
 
 
 | Open pop-up window. | 
| 
 
 
 | Finalize branch definition for empty parameter xpath. | 
| 
 
 
 | Define text data stream with type pipe and logical record length. | 
| 
 
 
 | Initiate data step run group. | 
| 
 
 
 | Specify length in byte for character field entry. | 
| 
 
 
 | Open text data stream path. | 
| 
 
 
 | Specify structure of data stream path. | 
| 
 
 
 | Write value from field entry to the SAS LOG screen. | 
| 
 
 
 | Terminate data step run group. | 
| 
 
 
 | Revoke definition of text data stream. | 
| 
 
 
 | END macro definition with name | 


