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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: