<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Export with Text Qualifiers in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45845#M12096</link>
    <description>The example u have put forward makes the first variable with in " .&lt;BR /&gt;
But what i need exactly is&lt;BR /&gt;
&lt;BR /&gt;
"name"|"age"|"sex"|"class".&lt;BR /&gt;
as something i mentioned above</description>
    <pubDate>Fri, 22 Jan 2010 14:37:13 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-01-22T14:37:13Z</dc:date>
    <item>
      <title>Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45837#M12088</link>
      <description>I need to export a SAS dataset to a text file with pipe delimieter (|) and with " as text qualifier.Please help me to solve the problem</description>
      <pubDate>Fri, 22 Jan 2010 13:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45837#M12088</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-22T13:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45838#M12089</link>
      <description>data _null_;&lt;BR /&gt;
file out dlm='|';&lt;BR /&gt;
&lt;BR /&gt;
set xxxx;&lt;BR /&gt;
&lt;BR /&gt;
put varname ;&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 22 Jan 2010 13:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45838#M12089</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-01-22T13:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45839#M12090</link>
      <description>But i think we will not be able to get " qualifier .</description>
      <pubDate>Fri, 22 Jan 2010 13:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45839#M12090</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-22T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45840#M12091</link>
      <description>Oh I see you want text quoted.&lt;BR /&gt;
&lt;BR /&gt;
Use the new CSV tagset  set the delimiter to '|'&lt;BR /&gt;
&lt;BR /&gt;
Then just do a proc print;&lt;BR /&gt;
&lt;BR /&gt;
ods csv   filename  (deliimiter = '|');&lt;BR /&gt;
&lt;BR /&gt;
proc print;&lt;BR /&gt;
&lt;BR /&gt;
ods csv close;</description>
      <pubDate>Fri, 22 Jan 2010 13:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45840#M12091</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-01-22T13:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45841#M12092</link>
      <description>I tried and got the following error&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods csv close;&lt;BR /&gt;
&lt;BR /&gt;
ods csv FILE='C:\Documents and Settings\premkumar\Desktop\class_p.txt' (delimiter = '|');&lt;BR /&gt;
&lt;BR /&gt;
                                                                              ---------&lt;BR /&gt;
                                                                              22&lt;BR /&gt;
                                                                              76&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: DYNAMIC, INCLUDE, NO_BOTTOM_MATTER,&lt;BR /&gt;
              NO_TOP_MATTER, TITLE, URL.&lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
proc print data=tmp1.lot;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
: There were 7574 observations read from the data set TMP1.LOT.&lt;BR /&gt;
: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;
      real time           0.10 seconds&lt;BR /&gt;
      cpu time            0.07 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 ods csv close;</description>
      <pubDate>Fri, 22 Jan 2010 13:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45841#M12092</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-22T13:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45842#M12093</link>
      <description>You need to close the listing before opening cvs.&lt;BR /&gt;
&lt;BR /&gt;
So use ODS LISTING CLOSE;  as your first statement.</description>
      <pubDate>Fri, 22 Jan 2010 14:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45842#M12093</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-01-22T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45843#M12094</link>
      <description>The only time you "need" the qualifier is when the data contain the delimiter.  SAS will quote the value when needed as this example when run will denomstrate.  &lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data class;&lt;BR /&gt;
   set sashelp.class;&lt;BR /&gt;
   if _n_ in(1,4,5,19) then substr(name,3,1)='|';&lt;BR /&gt;
   run;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   set class;&lt;BR /&gt;
   file log dsd dlm='|';&lt;BR /&gt;
   put (_all_)(:);&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
filename test temp;&lt;BR /&gt;
proc export data=class outfile=test replace dbms=csv;&lt;BR /&gt;
   delimiter='|';&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   infile test;&lt;BR /&gt;
   input;&lt;BR /&gt;
   list;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 22 Jan 2010 14:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45843#M12094</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-01-22T14:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45844#M12095</link>
      <description>The example u have put forward makes the first variable with in " .&lt;BR /&gt;
But what i need exactly is&lt;BR /&gt;
&lt;BR /&gt;
"name"|"age"|"sex"|"class".&lt;BR /&gt;
as something i mentioned above</description>
      <pubDate>Fri, 22 Jan 2010 14:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45844#M12095</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-22T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45845#M12096</link>
      <description>The example u have put forward makes the first variable with in " .&lt;BR /&gt;
But what i need exactly is&lt;BR /&gt;
&lt;BR /&gt;
"name"|"age"|"sex"|"class".&lt;BR /&gt;
as something i mentioned above</description>
      <pubDate>Fri, 22 Jan 2010 14:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45845#M12096</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-22T14:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45846#M12097</link>
      <description>Starting with SAS 9.2, the DELIMITER= parameter within OPTIONS(...) is honored by SAS and is not ignored.&lt;BR /&gt;
&lt;BR /&gt;
Oddly enough, the SAS-generated quoted strings for CHARACTER variables are only quoted "sometimes."  Using SASHELP.CLASS, with DELIMITER="\", the column/variable NAME is not quoted yet the column SEX is quoted, both the header row and the data rows.  Even when I used PROC PRINT with LABEL and created a blank-spaced label for NAME, still no quote-marks around the header.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search argument for this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
ods csv options delimiter 9.2 site:sas.com

Message was edited by: sbb</description>
      <pubDate>Fri, 22 Jan 2010 14:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45846#M12097</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-22T14:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45847#M12098</link>
      <description>But what i was using is only SAS 9.1.0</description>
      <pubDate>Fri, 22 Jan 2010 14:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45847#M12098</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-22T14:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45848#M12099</link>
      <description>The ODS CSV override is not supported until SAS 9.2 -- as mentioned, the parameter is ignored.&lt;BR /&gt;
&lt;BR /&gt;
You will want to explore the DATA step approach.&lt;BR /&gt;
&lt;BR /&gt;
And, you will want to get current on SAS software.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.

Message was edited by: sbb</description>
      <pubDate>Fri, 22 Jan 2010 14:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45848#M12099</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-22T14:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45849#M12100</link>
      <description>Thanks for the suggestions.Is anybody  else can  come with the solution with my existing software framework.</description>
      <pubDate>Fri, 22 Jan 2010 14:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45849#M12100</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-22T14:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45850#M12101</link>
      <description>Does this meet your unconventional requirement?&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
562  data class;&lt;BR /&gt;
563     set sashelp.class;&lt;BR /&gt;
564     if _n_ in(1,4,5,19) then substr(name,3,1)='|';&lt;BR /&gt;
565     else if _n_ in(3,6,7) then call missing(of _all_);&lt;BR /&gt;
566     run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;BR /&gt;
NOTE: The data set WORK.CLASS has 19 observations and 5 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
567  data _null_;&lt;BR /&gt;
568     set class;&lt;BR /&gt;
569     file log dlm='|';&lt;BR /&gt;
570     put (_all_)(~);&lt;BR /&gt;
571     format _char_ $quote100.;&lt;BR /&gt;
572     run;&lt;BR /&gt;
&lt;BR /&gt;
"Al|red"|"M"|14|69|112.5&lt;BR /&gt;
"Alice"|"F"|13|56.5|84&lt;BR /&gt;
""|""|.|.|.&lt;BR /&gt;
"Ca|ol"|"F"|14|62.8|102.5&lt;BR /&gt;
"He|ry"|"M"|14|63.5|102.5&lt;BR /&gt;
""|""|.|.|.&lt;BR /&gt;
""|""|.|.|.&lt;BR /&gt;
"Janet"|"F"|15|62.5|112.5&lt;BR /&gt;
"Jeffrey"|"M"|13|62.5|84&lt;BR /&gt;
"John"|"M"|12|59|99.5&lt;BR /&gt;
"Joyce"|"F"|11|51.3|50.5&lt;BR /&gt;
"Judy"|"F"|14|64.3|90&lt;BR /&gt;
"Louise"|"F"|12|56.3|77&lt;BR /&gt;
"Mary"|"F"|15|66.5|112&lt;BR /&gt;
"Philip"|"M"|16|72|150&lt;BR /&gt;
"Robert"|"M"|12|64.8|128&lt;BR /&gt;
"Ronald"|"M"|15|67|133&lt;BR /&gt;
"Thomas"|"M"|11|57.5|85&lt;BR /&gt;
"Wi|liam"|"M"|15|66.5|112&lt;BR /&gt;
NOTE: There were 19 observations read from the data set WORK.CLASS.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 22 Jan 2010 14:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45850#M12101</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-01-22T14:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45851#M12102</link>
      <description>Multiple solutions have been suggested.  Also consider using the SAS-supplied DS2CSV utility macro with the SEPCHAR= parameter.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search argument for this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
ds2csv site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 22 Jan 2010 15:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45851#M12102</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-22T15:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45852#M12103</link>
      <description>My task is to prepare a file with pipe delimited and " as text qualifier to load in to SQL server.Our Code is written so to accept the file in that format alone (as conveyed by our DB)&lt;BR /&gt;
ex:&lt;BR /&gt;
&lt;BR /&gt;
"name"|"sex"|"age"|"salary"&lt;BR /&gt;
"deena"|"M"|"24"|"23400".</description>
      <pubDate>Fri, 22 Jan 2010 15:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45852#M12103</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-22T15:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45853#M12104</link>
      <description>run &lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/csvtags.tpl" target="_blank"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/csvtags.tpl&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
then use tehh Proc print  as I told you.  This will allow the use of the delimiter in SAS 9.1</description>
      <pubDate>Fri, 22 Jan 2010 15:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45853#M12104</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-01-22T15:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45854#M12105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;183&amp;nbsp; data class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;184&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;185&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_ in(1,4,5,19) then substr(name,3,1)='|';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;186&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if _n_ in(3,6,7) then call missing(of _all_);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;187&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;NOTE: The data set WORK.CLASS has 19 observations and 5 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;188&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;189&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;190&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;191&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file log dlm='|' dsd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;192&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_ eq 1 then link names;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;193&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put (_all_)(~);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;194&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;195&amp;nbsp; names:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;196&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length _name_ $32;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;197&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do while(1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;198&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call vnext(_name_);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;199&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if upcase(_name_) eq '_NAME_' then leave;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _name_ ~ @;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;201&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;202&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;203&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;204&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Name"|"Sex"|"Age"|"Height"|"Weight"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Al|red"|"M"|"14"|"69"|"112.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Alice"|"F"|"13"|"56.5"|"84"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;" "|" "|"."|"."|"."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Ca|ol"|"F"|"14"|"62.8"|"102.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"He|ry"|"M"|"14"|"63.5"|"102.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;" "|" "|"."|"."|"."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;" "|" "|"."|"."|"."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Janet"|"F"|"15"|"62.5"|"112.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Jeffrey"|"M"|"13"|"62.5"|"84"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"John"|"M"|"12"|"59"|"99.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Joyce"|"F"|"11"|"51.3"|"50.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Judy"|"F"|"14"|"64.3"|"90"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Louise"|"F"|"12"|"56.3"|"77"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Mary"|"F"|"15"|"66.5"|"112"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Philip"|"M"|"16"|"72"|"150"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Robert"|"M"|"12"|"64.8"|"128"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Ronald"|"M"|"15"|"67"|"133"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Thomas"|"M"|"11"|"57.5"|"85"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;"Wi|liam"|"M"|"15"|"66.5"|"112"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;NOTE: There were 19 observations read from the data set WORK.CLASS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 15:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45854#M12105</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-01-22T15:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45855#M12106</link>
      <description>couldn't be simpler&lt;BR /&gt;
Suppose you have a list of the required columns in a macro variable: &amp;amp;columns, like for eample, from sample table sashelp.class[pre] %let columns = name age height ;[/pre] then there is a format modifier that will quote the variables[pre]data _null_ ;&lt;BR /&gt;
   file 'your.pipe.file.txt' lrecl=10000 dsd dlm='|' ;&lt;BR /&gt;
   set sashelp.class ;   &lt;BR /&gt;
   put (&amp;amp;columns)(~) ;&lt;BR /&gt;
run ;[/pre]&lt;BR /&gt;
It is that tilde(~) modifier which quotes the columns.&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 22 Jan 2010 15:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45855#M12106</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-01-22T15:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export with Text Qualifiers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45856#M12107</link>
      <description>Question back to the OP prem85:&lt;BR /&gt;
&lt;BR /&gt;
With all the feedback you have received, what, if any, attempt have you made to exercise some of these various approaches and technical options?  You keep regurgitating your "quest" but it doesn't appear you are embracing what's been provided and tell us what progress and/or success you have been able to achieve with the forum feedback.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 22 Jan 2010 17:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-with-Text-Qualifiers/m-p/45856#M12107</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-22T17:58:05Z</dc:date>
    </item>
  </channel>
</rss>

