138k views
5 votes
Global variables cannot be accessed by any SAS program available in SAS environment. (True/False)

1 Answer

3 votes

Final answer:

False, global variables can be accessed by any SAS program available in the SAS environment.

Step-by-step explanation:

False, global variables can be accessed by any SAS program available in the SAS environment. In SAS, a global variable is defined outside of any data steps and can be used by all subsequent data steps. It is declared with a %GLOBAL statement, and its value can be accessed and modified by any data step or SAS procedure within the same SAS session. For example, if you define a global variable as %GLOBAL myvar=10;, you can access its value in any subsequent data steps or SAS procedures.

User Tatjana Heuser
by
8.2k points

No related questions found