Syntax Supported by the IML Procedure and the iml Action
STRUCT Call
CALL STRUCT (object <, optList>) ;
This subroutine is supported by the IML procedure and the iml action.
The STRUCT subroutine prints the structure of any SAS/IML object. Although the STRUCT subroutine is mainly used for lists, you can also pass in a matrix or a table.
You must specify the following argument:
You can also specify the following argument:
For an example of the output, see the example in the ListPrint subroutine. The following program demonstrates the use of the optional argument:
M = {1 2, 3 4};
C = {"Shakespeare, William","Austen, Jane",
"Dickens, Charles","Woolf, Virginia"};
sublist = [1:5, 'String1':'String4'];
L = [M, C, sublist];
opt = [#"FirstFew"=3, #"Truncate"=7];
call Struct(L, opt);
Figure 401: Output from the STRUCT Subroutine
| Symbol Description | |||||||
|---|---|---|---|---|---|---|---|
| Name | Level | Type | Dimensions | VALUE1 | VALUE2 | VALUE3 | More |
| L | 0 | List | 3 Items | L$1 | L$2 | L$3 | |
| L$1 | 1 | Numeric | 2 x 2 | 1 | 2 | 3 | ... |
| L$2 | 1 | Character | 4 x 1 | Shakesp | Austen, | Dickens | ... |
| L$3 | 1 | List | 2 Items | L$3$1 | L$3$2 | ||
| L$3$1 | 2 | Numeric | 1 x 5 | 1 | 2 | 3 | ... |
| L$3$2 | 2 | Character | 1 x 4 | String1 | String2 | String3 | ... |
Last updated: March 08, 2024