Help using Base SAS procedures

Arrays

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,040
Accepted Solution

Arrays

Hi

the variables in and out are created newly based on some condition..

why do we have to set these to missing  in=.; out=.;

Doesn't sas do that automatically?????

Thanks


Accepted Solutions
Solution
‎05-24-2013 02:49 PM
SAS Employee
Posts: 26

Re: Arrays

SAS sets DATA step variables to missing between iterations of the DATA step.

Your code indicates that you want them set to missing for each iteration of the DO loop, that you must do with assignment statements as you have done.

Here is more information on the details of DATA step execution:

SAS(R) 9.3 Language Reference: Concepts, Second Edition

Processing a DATA Step: A Walk-through

Jan

View solution in original post


All Replies
Solution
‎05-24-2013 02:49 PM
SAS Employee
Posts: 26

Re: Arrays

SAS sets DATA step variables to missing between iterations of the DATA step.

Your code indicates that you want them set to missing for each iteration of the DO loop, that you must do with assignment statements as you have done.

Here is more information on the details of DATA step execution:

SAS(R) 9.3 Language Reference: Concepts, Second Edition

Processing a DATA Step: A Walk-through

Jan

☑ This topic is SOLVED.

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

Discussion stats
  • 1 reply
  • 166 views
  • 0 likes
  • 2 in conversation