DATA Step, Macro, Functions and more

@

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 14
Accepted Solution

@

[ Edited ]

My doubt is the following:

 

 In the pdf you can see a exercise.

In the line that say 

 input style $ @; 

 this line want say that style is character and he @ that say that he read the same line not? 

Thanks

 


Accepted Solutions
Solution
‎11-14-2016 02:57 AM
Trusted Advisor
Posts: 1,570

Re: @

[ Edited ]

relating to line: 

input style $ @;

means: read first variable in row and stay in same row until you get:

input <optional more variables> ;

the semi-colon ( ; ) tels SAS to skip to next row on next READ statement;

View solution in original post


All Replies
Super User
Posts: 5,430

Re: @

What does the documentation say?

The best way to fully understand syntax is to try them, adjust and see the difference in behaviour.

Data never sleeps
Solution
‎11-14-2016 02:57 AM
Trusted Advisor
Posts: 1,570

Re: @

[ Edited ]

relating to line: 

input style $ @;

means: read first variable in row and stay in same row until you get:

input <optional more variables> ;

the semi-colon ( ; ) tels SAS to skip to next row on next READ statement;

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 272 views
  • 1 like
  • 3 in conversation