BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
new_sas_user_4
Quartz | Level 8

@andreas_lds thank you 🙂

There is something I have come across and I thought you might help !!

The dataset 'have' sometimes has missing values.

eg there no row that comes up for Day 30(which in my sample dataset is 30 0.01 30May2020 )

and because of the missing percent value, I get a random number in the results for 30June2020 Orders1

I believe it is because of the informat value for Day2Percent30 is missing. 

Is there a way to rectify this?

 

I tried using coalesce function 

_p = coalesce(input(cats(_z),Day2Percent.),0);            but it didnt help.

 

 

_p = input(cats(_z), Day2Percent.);
			_o = input(cats(_i), Day2Orders.);
			allOrders[_i] = int(_o * _p);

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 15 replies
  • 5242 views
  • 0 likes
  • 4 in conversation