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

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.

 

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
1 ACCEPTED SOLUTION

Accepted Solutions
japelin
Rhodochrosite | Level 12

Yes, it is.
"//" is two lines break.

 

2021-03-01_11h28_48.png

View solution in original post

5 REPLIES 5
japelin
Rhodochrosite | Level 12

"/" is a line pointer control that represents a line break

See here.

https://v8doc.sas.com/sashtml/lgref/z0161869.htm#z0150137

Phil_NZ
Barite | Level 11

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.

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
ChrisNZ
Tourmaline | Level 20

> so "/ /" is two lines break ????

 

indeed

japelin
Rhodochrosite | Level 12

Yes, it is.
"//" is two lines break.

 

2021-03-01_11h28_48.png

Shmuel
Garnet | Level 18

The / is used in a put statement. Each / breaks a line, thus start a new line.

// is therefor adds two space lines.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 498 views
  • 3 likes
  • 4 in conversation