02-03-2016 04:05 PM - edited 02-03-2016 04:32 PM
I tried to combine several data together by using set statement.
Thought I ues length statement to set up the "var_level " as $ 100 . However , the var_level was still trucated.
Any solution ? Thank you very much ! (The length is enough to cover the var_level at each file. , no error message. )
length var_level $ 100. ;
3218 data rpt_cat;
3219 length var_level $ 100. ;
3220 set rpt_gender rpt_uidxinsplan ;
NOTE: There were 3 observations read from the data set WORK.RPT_GENDER.
NOTE: There were 14 observations read from the data set WORK.RPT_UIDXINSPLAN.
NOTE: The data set WORK.RPT_CAT has 17 observations and 7 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.00 seconds
02-03-2016 05:02 PM
Most likely, the variable also has a format attached to it that is truncating the displayed value. Add the FORMAT statement AFTER the SET statement, to remove the format:
02-03-2016 05:12 PM - edited 02-03-2016 05:14 PM
Edit: I see, @Astounding was faster and had the same idea.
The reason for the truncation may be a format (such as $17.) which is permanently associated with variable VAR_LEVEL. This would be shown in column "Format" of the PROC CONTENTS output for dataset RPT_CAT. You could get rid of this format by adding the following statement before the run; in your data step: