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