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;

 


 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 284 views
  • 0 likes
  • 2 in conversation