BookmarkSubscribeRSS Feed
ShiJan1
Calcite | Level 5

I am pretty new to SAS and trying street geocoding.

Downloaded external USM, USS and USP datasets. Trying to Stack 5 USS and 4 USP datasets together. USP datasets stacked together well but I am getting the following error when trying to stack 5USS datasets in SAS.

 

The files are huge, please help how can I remove the following errors.

 

ERROR: Variable F4 has been defined as both character and numeric.
ERROR: Variable F5 has been defined as both character and numeric.
ERROR: Variable F7 has been defined as both character and numeric.

 

Code worked fine: data stack_usp;
set work.usp1 work.usp2 work.usp3 work.usp4 ;
run;

 

Code not working:

 

data stack_uss;
set work.uss1 work.uss2;
run;

 

1 REPLY 1
Reeza
Super User

What format were your original data sets and how did you import them?

 


@ShiJan1 wrote:

I am pretty new to SAS and trying street geocoding.

Downloaded external USM, USS and USP datasets. Trying to Stack 5 USS and 4 USP datasets together. USP datasets stacked together well but I am getting the following error when trying to stack 5USS datasets in SAS.

 

The files are huge, please help how can I remove the following errors.

 

ERROR: Variable F4 has been defined as both character and numeric.
ERROR: Variable F5 has been defined as both character and numeric.
ERROR: Variable F7 has been defined as both character and numeric.

 

Code worked fine: data stack_usp;
set work.usp1 work.usp2 work.usp3 work.usp4 ;
run;

 

Code not working:

 

data stack_uss;
set work.uss1 work.uss2;
run;

 


 

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 348 views
  • 0 likes
  • 2 in conversation