BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am using following condition

if li_date ne 0 and ((logging_date - datejul(li_date)) <= 180) and (NEGAUTH_STAT_CD in ('LI') or NEGAUTH_REM1_STAT_CD in ('LI'))

I am getting error in datejul(li_date) function as few values of li_date = 0, i used li_date ne 0 to avoid this condition but error is keep comming.

when I changed NEGAUTH_STAT_CD in ('LI') to NEGAUTH_STAT_CD ='LI' , code works fine.

Could anyone explain, why in() operator shows error and = opertor doen't.
1 REPLY 1
LinusH
Tourmaline | Level 20
You may want to try to post your full code and question again. You might have a problem with this:

http://support.sas.com/forums/thread.jspa?messageID=15090㫲


Regards,
Linus
Data never sleeps

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 572 views
  • 0 likes
  • 2 in conversation