BookmarkSubscribeRSS Feed
Sakthivel_Saran
Calcite | Level 5
Code:
Proc append base = amt3.separate1 DATA = amt3.Hyundai_Unique force;
run;
Warning Message I received:
WARNING: Variable Latest_Launch has format DDMMYY10. on the BASE data set and format DATE7. on the DATA data set. DDMMYY10. used.
WARNING: Variable Manufacturer has different lengths on BASE and DATA files (BASE 13 DATA 8).
WARNING: Variable Model has different lengths on BASE and DATA files (BASE 17 DATA 8).
WARNING: Variable Manufacturer_Model has different lengths on BASE and DATA files (BASE 33 DATA 19).
Any Solutions?.
5 REPLIES 5
kiranv_
Rhodochrosite | Level 12

It is clear that lengths  and formats of both tables do not match. This will not cause any issue in your scenario.You can adjust the length and format of your data columns so that you do not warning. Or add nowarn to proc append statements, if you do not want to see warnings.

Shmuel
Garnet | Level 18

You have two types of warning.

- different formats - anyway you can change format according to your needs.
  the format is used just to define how to display the date content.

 

- as long as the BASE variable is longer then the DATA variable, you can be quiet.

  If BASE is shorter there is a risk of truncating the content and as much as I remeber

  you'll get an error.

Kurt_Bremser
Super User

In the interest of writing clean code, follow the code path (backwards) that created amt3.Hyundai_Unique and make sure that the variables in question have consistent attributes.

totoleheros
SAS Employee

@Sakthivel_Saran

to suppress those warning, use NOWARN option on proc append  statement 

Proc append base = amt3.separate1 DATA = amt3.Hyundai_Unique force NOWARN ; 
run;

 

(option exists since at least sas9.2 - https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000070936.htm

ballardw
Super User

@totoleheros 

The OP has not been back to the forum since 2017. So likely no need to resurrect this 5-year-old thread.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 5 replies
  • 2683 views
  • 1 like
  • 6 in conversation