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

Hi, 

I am new to SAS. The question might be stupid but I really need to know the answer.

 

The code is 

 

data score;

  input student $9.   +1 StudentID $;

  datalines;

.................

run;

 

what is the function of "+1" here??

 

Thank you for your help in advance

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

These types of questions are explained in the documentation - see example 1 in the link below:

 

https://documentation.sas.com/?docsetId=lestmtsref&docsetTarget=p0f9yk6pd4znukn1rlw6hzkg1url.htm&doc...

 

If the documentation isn't clear then by all means ask for clarification.

 

I suggest you bookmark documentation.sas.com for future reference.

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

These types of questions are explained in the documentation - see example 1 in the link below:

 

https://documentation.sas.com/?docsetId=lestmtsref&docsetTarget=p0f9yk6pd4znukn1rlw6hzkg1url.htm&doc...

 

If the documentation isn't clear then by all means ask for clarification.

 

I suggest you bookmark documentation.sas.com for future reference.

JackHamilton
Lapis Lazuli | Level 10

If you know where to look, it's easy to find the answer, yes.

 

In this case, you have to know to look under the input statement; search for "+", and there's the answer.

 

But if you don't know to look under the input statement?  The documentation is of no help.  Not all special characters are indexed.

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1310 views
  • 1 like
  • 3 in conversation