SHOW Statement

SHOW operands ;

The SHOW statement displays system information. The following operands are available:

ALL

displays all the information included by the OPTIONS, SPACE, DATASETS, FILES, and MODULES options.

ALLNAMES

behaves like NAMES, but also displays names without values.

CONTENTS

displays the names and attributes of the variables in the current SAS data set.

DATASETS

displays all open SAS data sets.

FILES

displays all open files.

MEMORY

returns the size of the largest chunk of main memory available.

MODULES

displays all modules that exist in the current PROC IML environment. A module already referenced but not yet defined is listed as undefined.

name

displays attributes of the specified matrix. If the name of a matrix is one of the SHOW keywords, then both the information for the keyword and the attributes of the matrix are shown.

NAMES

displays attributes of all matrices having values. Attributes include number of rows, number of columns, data type, and size.

OPTIONS

displays current settings of all PROC IML options (see the RESET statement).

PAUSE

displays the status of all paused modules that are waiting to resume.

SPACE

displays the workspace and symbolspace size and their current usage.

STORAGE

displays the modules and matrices in the current PROC IML library storage.

WINDOWS

displays all active windows that have been opened by WINDOW statements.

An example of a valid SHOW statement follows:

a = {1 2, 3 4};
b = 1:5;
free c;
start MyMod(x); 
   return(2*x);
finish;
create Temp;

show modules allnames datasets memory;

Figure 23.320: System Information

Modules:                                                                        
  MYMOD                                                                         
                                                                                
 SYMBOL   ROWS   COLS TYPE   SIZE                                               
 ------ ------ ------ ---- ------                                               
 a           2      2 num       8                                               
 b           1      5 num       8                                               
 c           0      0 ?         0                                               
  Number of symbols = 3  (includes those without values)                        
                                                                                
LIBNAME  MEMNAME                          OPEN MODE   STATUS                    
-------- -------------------------------- ---------   --------                  
WORK     TEMP                             Update      Current Input/Output      
                                                                                
Memory Usage (in bytes):