Hi all SAS Users,
Today when reading a SAS code:
data have;
input x @@;
datalines;
1 2 3
;
data test3;
set have;
put _N_=;
_N_=0;
put _N_= //;
run;
The log is as below
_N_=1
_N_=0
_N_=2
_N_=0
_N_=3
_N_=0
It is my first time seeing "/ /" in SAS, I tried to perform some searches but there is no result available for me, even from lexjansen.
My keyword is " "/ /" in SAS meaning", whether I did something wrong in searching as well? And could you please explain what does "/ /" play on the above code and some cases we normally apply this one?
Warm regards.
"/" is a line pointer control that represents a line break
See here.
Hi @japelin
Thank you for your reply.
I understand this one because "/" is an operator and can be searched, I am curious about what does "/ /" mean
Or, "/" is one line break, so "/ /" is two lines break ????
Warm regards.
Yes, it is.
"//" is two lines break.
The / is used in a put statement. Each / breaks a line, thus start a new line.
// is therefor adds two space lines.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.