BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
1 ACCEPTED SOLUTION

Accepted Solutions
learsaas
Quartz | Level 8

CASE
WHEN t1.Acc_No4 IN (" ") THEN t1.Acc_No3
WHEN t1.Nmp_Subclass IN ("HRN","FRB", "HOC", "HON", "HHH") AND (t1.Acc_No3 ^? "3040820") AND (t1.Acc_No3 ^? "9040172") THEN CATS(t1.Acc_No3,"PCL")
else t1.Acc_No3

View solution in original post

2 REPLIES 2
learsaas
Quartz | Level 8

CASE
WHEN t1.Acc_No4 IN (" ") THEN t1.Acc_No3
WHEN t1.Nmp_Subclass IN ("HRN","FRB", "HOC", "HON", "HHH") AND (t1.Acc_No3 ^? "3040820") AND (t1.Acc_No3 ^? "9040172") THEN CATS(t1.Acc_No3,"PCL")
else t1.Acc_No3

SASnewbie2
Fluorite | Level 6

Thanks Learsaas, 

 

does it means the formula only work in one line ? 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 1704 views
  • 0 likes
  • 2 in conversation