LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 11 Feb 2002 08:31:16 -0500
Reply-To:   "Fehd, Ronald J." <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J." <rjf2@CDC.GOV>
Subject:   Re: Macro with ODS Statement
Comments:   To: Jay Simons <simons@COX-INTERNET.COM>
Content-Type:   text/plain

> 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.


Back to: Top of message | Previous page | Main SAS-L page