Macro XSET (from Fraktal SAS Programming): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K |
K |
||
Zeile 8: | Zeile 8: | ||
|vorwärts=Macro XDIR (from Fraktal SAS Programming) | |vorwärts=Macro XDIR (from Fraktal SAS Programming) | ||
}} | }} | ||
+ | |||
+ | ;This Macro transfers the environment from the particular operating system to SAS Macro variables. | ||
+ | :Characters ''"not appreciated"'' by '''''SAS''''' are removed from variable values. | ||
+ | :If a specific variable name is supplied, this will be the only one tranferred. | ||
{| class="wikitable" | {| class="wikitable" | ||
Zeile 35: | Zeile 39: | ||
| | | | ||
:input xvar $ xval $; | :input xvar $ xval $; | ||
− | |Define structure | + | |Define structure of data stream ''path'' with variables xvar and xval |
|- | |- | ||
| | | |
Version vom 4. August 2014, 13:05 Uhr
- This Macro transfers the environment from the particular operating system to SAS Macro variables.
- Characters "not appreciated" by SAS are removed from variable values.
- If a specific variable name is supplied, this will be the only one tranferred.
Code executed | Function performed |
---|---|
|
Start Macro definition with name and positional parameter xvar |
|
Open source for text data of type pipe pointing to OS command |
|
Start datastep run group |
|
Declare variables xvar and xval by length in bytes |
|
Utilize data stream from data source path |
|
Define structure of data stream path with variables xvar and xval |
|
Remove unwanted characters from variable xvar |
|
Specify condition on macro parameter xvar for using code segment |
|
Conditionally executed code |
|
End condition on macro parameter xvar |
|
Transfer variable values to symbol table |
|
End data step run group |
|
Close source for text data |
|
End Macro definition with name |