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.

 

 

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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