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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 735 views
  • 0 likes
  • 2 in conversation