LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 1999, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 6 Aug 1999 10:56:56 -0600
Reply-To:     Mark S Dehaan <MSD@INEL.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Mark S Dehaan <MSD@INEL.GOV>
Subject:      title oddities in V7
Comments: To: SAS-L <SAS-L@inel.gov>
Content-type: text/plain; charset=us-ascii

I just I ran across an oddity in a title stmt on SAS V7 (on NT box). I don't know how any of this can help you, but it is interesting. Trying,

title ''; <--no space between single quotes or title ""; <--no space between double quotes

yields a single ' (quote mark) as the title. I understand this SOMEWHAT because two simultaneous single qoutes INSIDE a title resolve to a printed single quote, but where then is the starting and ending quote marks for the title string? I would expect the title to "run over" the next lines, as if I forgot a closing quote. (For example try 3 quotes). The two double quotes resolving to a single quote also surprises me.

Put a space between the quotes and you get a space for a title (w/ no quote mark) as expected, or put 4 simultaneous single quotes and you get a single quote mark title (which is the only way I would expect to get a single quote title.)

You can play with the following code if you would like. And I can guess -- this is fixed in V8. -----------------------------

data a; do x=1 to 10; output; end; run;

title ''; proc print; run;

title ' '; proc print; run; data a; do x=1 to 10; output; end; run;

title ""; proc print; run; data a; do x=1 to 10; output; end; run;

title ''''; proc print; run;

title '''; this title runs on'; proc print; run;

-------------------------------------------------------------------------------------------------------------------------------------------------- Mark DeHaan Statistics Dept. at Idaho National Engineering and Environmental Laboratory email: msd@inel.gov phone: 208-526-2983 fax: 208-526-5647


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