BookmarkSubscribeRSS Feed
luis
Calcite | Level 5
Hi all,
I am new in SAS and I am trying to interpret some codes.
I found the following line:
DBPLANT=X IN (1 3)
I haven't found the explanation for the IN command. Does it means that variable DBPLANT takes value of 1 if X is equal to 1 or 3, or if X is belongs to the closed interval 1 through 3.
Thanks in advance,
Luis
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Yes, the operand(s) in parantheses can be separated by a blank or comma. Here is a Google advanced argument against the SAS.COM site which yields some DOC and technical / conference reference matches for reference:

in operator site:sas.com


Scott Barry
SBBWorks, Inc.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
I was able to find the phrase "IN operator" in the SAS 9.1.3 SP4 online documentation for SAS, under INDEX tab.

Scott
milts
Pyrite | Level 9
Hi Luis,

You got it right. It takes the value of 1 if X is equal to 1 or 3.

Regards,
Milton

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3 replies
  • 616 views
  • 0 likes
  • 3 in conversation