| Valid in: | in DATA step |
| Category: | Character |
| Alignment: | left |
If the value of length-variable is greater than 0 but less than w, SAS writes the number of characters that are specified by length-variable.
If length-variable is greater than or equal to w, SAS writes w columns.
put @10 name $varying12. varlen;
|
Value of name 1
|
|
|---|---|
| 1The value of NAME appears before the value of VARLEN. | |
varlen=length(name); put @10 name $varying12. varlen;The assignment statement determines the length of the varying-length variable. The variable VARLEN contains this length and becomes the length-variable argument to the $VARYING12. format.
|
Values 1
|
|
|---|---|
| 1The value of NAME appears before the value of VARLEN. | |