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 (October 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 4 Oct 2004 09:29:07 -0400
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: %SCAN with quotes and blank used as delimiters
Content-Type: text/plain; charset="us-ascii"

> From: Dubravko Dolic > I try to split a list of footnotes into single footnotes using %SCAN. > > %let list = "footnote1: content" "Some other footnote" "my > 3rd footnote"; > > Now something like > %SCAN(&list, &counter, %str(")); > or > %SCAN(&list, &counter, %str(%" )); > > should do it to read each single footnote. > > Any hints?

actually the delimiter here is the single space in <" "> of which there are two occurences. you are stuck here with the ambiguity of the single space occuring both between tokens in the quoted material -- the strings -- and between the strings.

using <" "> as the delimiter gets you unbalanced dQuotes in the first and last items.

why are you (attempting to be) doing this? consider: %Let String1 = footnote1: content; %Let String2 = Some other footnote; %Let String3 = my 3rd footnote;

either footnote "&String1 &String2 &String3"; or footnote "&String1" "&String2" "&String3"; produce your desired result

SQL provides a table with the text of titles and footnotes:

PROC SQL;describe table Dictionary.Titles;quit;

type char(1) label='Title Location', number num label='Title Number', text char(256) label='Title Text'

PROC SQL;describe table Dictionary.Titles;quit; footnote1 'text'; PROC SQL;select distinct * from Dictionary.Titles ;quit;

Title Title Location Number Title Text F 1 text T 1 The SAS System

Ron Fehd the SQL into:macro maven CDC Atlanta GA USA RJF2 at cdc dot gov


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