Hi:
I'm confused. What do you expect to see??? You should see a message in the PRINTTO log output file that:
[pre]
NOTE: The data set WORK.SAMPLE1 has xx observations and yy variables.
[/pre]
and then you should also see the LOG messages from RUNNING the PROC CONTENTS, but there won't really be much here.
you will see in the output file WHATEVER you would normally see in the SAS log. So when I run this code,
[pre]
PROC PRINTTO LOG='c:\temp\contents1.log' NEW;
RUN;
proc contents data=work._all_ noprint out=sample1;
run;
PROC PRINTTO PRINT=PRINT LOG=LOG ;
RUN;
[/pre]
I get these results in the file c:\temp\contents1.log:
[pre]
NOTE: PROCEDURE PRINTTO used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
232
233 proc contents data=work._all_ noprint out=sample1;
234 run;
NOTE: The data set WORK.SAMPLE1 has 84 observations and 40 variables.
NOTE: PROCEDURE CONTENTS used (Total process time):
real time 0.04 seconds
cpu time 0.00 seconds
235
236 PROC PRINTTO PRINT=PRINT LOG=LOG ;
237 RUN;
[/pre]
Now, if you did something like this PROC OPTIONS:
[pre]
PROC PRINTTO LOG='c:\temp\options.log' NEW;
RUN;
proc options;
run;
PROC PRINTTO PRINT=PRINT LOG=LOG ;
RUN;
[/pre]
THEN, there'd be something to see in the PROC PRINTTO copy of the log(partial results):
[pre]
NOTE: PROCEDURE PRINTTO used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
240
241 proc options;
242 run;
SAS (r) Proprietary Software Release 9.2 TS2M2
Portable Options:
APPEND= Append at the end of the option value
APPLETLOC=C:\Program Files\SAS\SASGraphJavaApplets\9.2
Location of Java applets
ARMAGENT= ARM Agent to use to collect ARM records
ARMLOC=ARMLOG.LOG Identify location where ARM records are to be written
ARMSUBSYS=(ARM_NONE)
Enable/Disable ARMing of SAS subsystems
NOASYNCHIO Do not enable asynchronous input/output
AUTOSAVELOC= Identifies the location where program editor contents are auto saved
NOAUTOSIGNON SAS/CONNECT remote submit will not automatically attempt to SIGNON
BINDING=DEFAULT Controls the binding edge for duplexed output
BOMFILE Add Byte Order Mark when creating Unicode files
BOTTOMMARGIN=0.000 IN
Bottom margin for printed output
BUFNO=1 Number of buffers for each SAS data set
BUFSIZE=0 Size of buffer for page of SAS data set
[/pre]
If you are saying that you run the code and that the op.log file is NOT created, at all, then you have a question for Tech Support.
cynthia