I am looking at various possibilities for getting data into SAS from
another software package that, like SAS, recognizes more than one
"flavor" of missing value (Don't Know, Refused, etc.).
XML could be a promising transport mechanism. However, the following
code suggests that the SAS XML engine doesn't handle special missing
values when importing data:
MISSING D R;
LIBNAME MYXML XML 'c:\junk\XMLFile.xml';
INPUT X @@;
1 2 3 . D R
Looking at the XML file created, the special missing values are actually
represented as attributes, e.g.:
<X Missing="D" />
However, the engine seems to ignore these when importing.
Any suggestions? The only thing I can think of is to have the XML file
use "impossible" numeric values, and then re-translate them all after
the data are in SAS (which is much too clunky to be practical).