Hi:
I'm not sure what you expect to get. You have turned OFF the listing window. The example that was already posted by Reeza:
ods listing file='C:\_localdata\sample.txt' ;
proc report data=sashelp.class nowd;
column name sex height weight;
define sex / width=10;
run;
ods listing close;
Is the answer to your question. It's either the above code technique or using PROC PRINTTO.
Either way, you have things in your code that don't make sense for LISTING output:
-- style=monospace seems to be ignored. Not sure why you even have it
-- your font specifications in the PROC REPORT statement will be ignored by ODS LISTING, which you have turned off and you don't show any other ODS statements, so I'm not sure why you even have this
-- style(column) respected by style-based ODS destinations, ignored by ODS LISTING (again, which you seem to have turned off)
-- COMPUTE ... /style= in your COMPUTE blocks again, respected by style-based ODS destination, ignored by ODS LISTING
-- LINE statements with @ placement will work in LISTING, but probably not in style-based destinations as you want.
-- ODS ESCAPECHAR ... see the doc http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p11xia2ltavr8ln17srq8vn4rnqc.htm specifically the Restrictions note that it is not used for ODS LISTING
You said that your code was producing PDF output, and I can understand all your STYLE overrides working for PDF. However, you did NOT show what code was actually creating the LISTING-like output you produced. Do you have a PROC PRINTTO somewhere in your code?
cynthia
As an example of how different options are respected by different destinations:
... View more