Published on :
Administration CREATION_INTERNE

Displaying operating system information

This code is also available in: Deutsch Español Français
This script uses the %PUT macro instruction to write to the log the values of the automatic macro variables &SYSSCP (operating system abbreviation) and &SYSSCPL (full operating system name). This is useful for checking the execution environment (e.g., Windows vs Linux).
Data Analysis

Type : CREATION_INTERNE


The script does not use any external or internal data tables; it relies solely on SAS system automatic macro variables.

1 Code Block
MACRO
Explanation :
Displays in the log the code and label of the OS on which the SAS session is running.
Copied!
1%put sysscp returns &sysscp ;
2%put sysscpl returns &sysscpl ;
3 
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.