The following code creates a .xpt file but the file is not populated - it has no content other than a date and time stamp. There are no errors or warnings in the log - it states that there were 1147 observations as expected. Please can anyone explain why the data in _source are not carried across into the .xpt file? proc cport data=_source file='Y:\F_Science\\Outputs\pc.xpt'; run;
... View more
Thanks for replying. Using the below, the DATE9. element changes to $9 - it is not possible to keep DATE9. when changing to character? informat PCDAC1 date9.; format PCDAC1 date9.; PCDAC=put(PCDAC1, $date9.); run;
... View more
I have tried various ways of converting Date9. and Time5. variables to character format but cant achieve it including PUT, INPUT, INFORMAT and FORMAT descriptions. Are Date9. and Time5. fields always numeric?
... View more