BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
AJ_Brien
Quartz | Level 8

Hello,

 

I'm trying to test something very basic. 

 

options nocenter source2 mlogic symbolgen nomprint

%let unix_out = abc;

%put unix_out;

 

when I run this, I get this in the log window and nothing else

 

1 The SAS System 14:34 Wednesday, April 17, 2019

1 %_eg_gridprologue;
NOTE: Remote submit to GRID commencing.
NOTE: Remote submit to GRID complete.
2 %_eg_gridclientepilogue;
3 %let _EGRC=&_EGRCGRID;
4

 

Appreciate any help!

1 ACCEPTED SOLUTION

Accepted Solutions
AJ_Brien
Quartz | Level 8
Just to close the thread:

simply using %put as mentioned above never worked for me.

The only thing that did work was :
%put &=unix_out;

View solution in original post

4 REPLIES 4
SASKiwi
PROC Star

Classic missing semicolon:

options nocenter source2 mlogic symbolgen nomprint; * <=== semicolon here;

%let unix_out = abc;

%put &unix_out;
AJ_Brien
Quartz | Level 8

I added the semicolon, thank you.

 

But I don't see any output still.

AJ_Brien
Quartz | Level 8

I've tried the following to see if any of these might work, but they didn't

 

%put &unix_out.;

 

%put unix_out;

 

%put &unix_out;

 

AJ_Brien
Quartz | Level 8
Just to close the thread:

simply using %put as mentioned above never worked for me.

The only thing that did work was :
%put &=unix_out;

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 865 views
  • 2 likes
  • 2 in conversation