05-11-2012 01:34 PM
What would cause the warning
WARNING: Multiple lengths were specified for the variable EYEL by input data set(s). This may
cause truncation of data
and how would I fix it....is this just a warning or a true error?
05-11-2012 02:45 PM
You should try to fix :
300434 %mrx(DA); *DA for Disabled adults;
ERROR 180-322: Statement is not valid or it is used out of proper order.
first. I can't see the cause of that error. Fixing that ERROR might very well fix the other WARNINGS. I hope somebody else can help you further.
05-11-2012 02:18 PM
You'll get this message when three conditions are met:
1. Your DATA step contains a BY statement
2. One of your BY variables (in this case EYEL) has different lengths in the incoming data sets
3. The data set containing the shorter length is mentioned first, establishing the length of EYEL.
In that case, the values of EYEL from the other data set(s) will be truncated down to the length established by the first data set.
That will be no problem if all you are truncating are blanks. In every other case, you will encounter problems, the very least of which is that some values will be truncated. Some of the outcomes can be quite more bizarre than that. It is a relatively easy error to fix. You can insert a LENGTH statement right after the DATA statement, defining EYEL as having the proper length (the longest one from any of the incoming data sets).