BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
franriv
Obsidian | Level 7

This code works correctly:

 

data master_retail2;
	retain dbs IFRS9Classification;
	length IFRS9Classification2 $18;

	set master_retail;
	if IFRS9Classification='Other Out of' then
		IFRS9Classification2='Other Out of Scope';
	else if IFRS9Classification='Operating lea' then
		IFRS9Classification2='Operating lease';
	else if IFRS9Classification='Loan wholesal' then
		IFRS9Classification2='Loan wholesale';
run; 

 

 

But I don't want to create a IFRS9Classification2 variable so I tried this instead:

data master_retail2;
	retain dbs IFRS9Classification;
	length IFRS9Classification $18;

	set master_retail;
	if IFRS9Classification='Other Out of' then
		IFRS9Classification='Other Out of Scope';
	else if IFRS9Classification='Operating lea' then
		IFRS9Classification='Operating lease';
	else if IFRS9Classification='Loan wholesal' then
		IFRS9Classification='Loan wholesale';
run;

2022-08-08 16_09_38-MASTER_RETAIL2 - _ Cierre_JULIO_2022-08-08xC - SAS Enterprise Guide.png

 

This happens. Values in field don't appear to have changed but can now be filtered using the updated values directly in the "where" dynamic filter in SAS EG 8.1 (8.1.0.4552) (64-bit). Why is EG not showing this correctly? Should I be worried?

1 ACCEPTED SOLUTION
2 REPLIES 2

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!

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