BookmarkSubscribeRSS Feed
viona
Calcite | Level 5

Hello,

is there a notion a macro variable scope ( global/local) when we are on a remote session?

Example:

on a local session i have to declare global macro variable (%global) to be able to use it out of the macro where it was created then i'm using %syslput to send this macro variable on a remote session. do i need to declare a global macro variable on server like:

rsubmit;

%global macro_variable_name

endrsubmit;

thx,

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Remote sessions have the local and global scope for macro variables.

 

If you want a macro variable to have a global scope on the remote session, then I think you have to declare it as %GLOBAL.

--
Paige Miller
viona
Calcite | Level 5

Thx a lot for your reply

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 448 views
  • 0 likes
  • 2 in conversation