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

Him

 

I am receiving a log message "Character values have been converted to numeric values at the places given by" in my " do over _value; " statement. This caused bc the dataset is empty.  How do I fix this log message? thanks
 

data pfinal1;
	merge  tmerge_xl  tmerge_xl3 ; 
  	by ord1 aebodsys  ;

	 if ord1 in (1 2) then do;
	     array _value  ctrtg1 ctrtg2 ctrtg3 ctrtg4 call ; 
		 	 do over _value;
		     	         if _value = "" then _value="0 (0.0%)";
		 	 end; 	 
	  end;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
So those variables don't exist in this case? Have you tried explicitly listing the types on the array statement and see what happens?

array _value (*) $20. ctrtg1-ctrtg4 call;

View solution in original post

2 REPLIES 2
Reeza
Super User
So those variables don't exist in this case? Have you tried explicitly listing the types on the array statement and see what happens?

array _value (*) $20. ctrtg1-ctrtg4 call;

Tom
Super User Tom
Super User

Set the variable LENGTH (and type) in the ARRAY statement.

array _value $20 ctrtg1-ctrtg4 call ; 

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