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 ; 

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
  • 676 views
  • 0 likes
  • 3 in conversation