|
> From: Jay Simons [mailto:simons@COX-INTERNET.COM]
> I'm trying to set-up a macro statement to be used with the
> ODS, the program looks like this:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> %let Drive_Path=%str(c:\temp1);
less clutter:
%let Drive_Path=c:\temp1;
> %put drive_path = &drive_path;
> options symbolgen;
> run;
> ods html body='Listing.html'
> contents='Table_of_Contents.html'
> frame='Report.html'
> path="'&drive_path'" ;
"Too many notes!"
and in this case too many sQuotes!
path="&drive_path." ;
should be sufficient.
I'll address just the macro issues;
others will chime in on ODS issues.
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
OpSys: Win_Pro Ver: 8.2
By using your intelligence
you can sometimes make your problems twice as complicated.
-- Ashleigh Brilliant
> run;
> ods html close;
> run;
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> After running the log looks like:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> %let Drive_Path=%str(c:\temp1);
> 93 %put drive_path = &drive_path;
> SYMBOLGEN: Macro variable DRIVE_PATH resolves to c:\temp1
> SYMBOLGEN: Some characters in the above value which were subject to
> macro quoting have been unquoted for printing.
> drive_path = c:\temp1
> 94 run;
> 95
> 96 options symbolgen;
> 97 run;
> 98
> 99 ods html body='Listing.html'
> 100 contents='Table_of_Contents.html'
> 101 frame='Report.html'
> 102 path="'&drive_path'" ;
> SYMBOLGEN: Macro variable DRIVE_PATH resolves to c:\temp1
> SYMBOLGEN: Some characters in the above value which were subject to
> macro quoting have been unquoted for printing.
> NOTE: Writing HTML Body file: Listing.html
> NOTE: Writing HTML Contents file: Table_of_Contents.html
> NOTE: Writing HTML Frames file: Report.html
> 103 run;
> 105 ods html close;
> 106 run;
> No indication of any errors, the macro resolves correctly.
> When I go to the frame.html - Explorer gives me an error that the page
> cannot be displayed
> However the contents.html and the body.html will both display.
|