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 (December 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 13 Dec 2006 22:24:17 -0500
Reply-To:   "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject:   Re: Insert literal single-quote in PUT statement

On Wed, 13 Dec 2006 15:16:07 -0800, fathom39 <enash@SANDIEGO.GOV> wrote:

>Thanks all. I got it to work by using Toby's >PUT "'" >... > >Before I was trying to assign a value to a var and then referencing the >var like this: >bstr = ''';

You need one more:

bstr = '''';

One mark opens, one closes, and the two in between represent one mark literally.

>PUT bstr >... > >Nevertheless, I can't get Excel to do what I want automatically so I >will have to train users on how to import text files the long way, >using the Wizard. > >... UNLESS someone has some ideas :) > >Ed


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