The following test worked for me: proc format ; value gender 0='Male' 1='Female'; run; data havenum; sex=1; date=today();output; format sex gender. date date9.; run; filename table 'c:\temp\table.out' lrecl=120; ods listing; proc printto print=table new; proc print data=havenum; run; proc printto; run; Notice that, like DATA _NULL_ suggested, the LISTING destination MUST be turned on before the PRINTTO can write to the PRINT location. The LISTING destination is by default turned off for SAS9.3. The fix for Astounding's comment for detecting versions is to use a %SYSEVALF to surround the expression. %if %sysevalf(&sysver > 6.10) %then %do;
... View more