<?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: How to include # symbol in the name line? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73279#M21248</link>
    <description>Hi Sbb,&lt;BR /&gt;
&lt;BR /&gt;
I will check it out.&lt;BR /&gt;
Thank you so much :-).&lt;BR /&gt;
&lt;BR /&gt;
pharmapk</description>
    <pubDate>Fri, 02 Apr 2010 21:04:40 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-04-02T21:04:40Z</dc:date>
    <item>
      <title>How to include # symbol in the name line?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73273#M21242</link>
      <description>Dear SAS users:&lt;BR /&gt;
&lt;BR /&gt;
I have a data file with first name line like this&lt;BR /&gt;
#ID Time Concentration Age Sex Weight etc.&lt;BR /&gt;
&lt;BR /&gt;
Other lines below are numerical numbers. When I use INFILE statment to input the data file, I found that the "#" is not recognized (so, I used INPUT ID Time Concentration Age Sex Weight etc.), but this did not stop me from further processing the data. The problem is that I would like to keep #ID when I output the post-processed data file. I am hoping get some help about how to either keep # at the first place or add this symbol later.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks &lt;BR /&gt;
&lt;BR /&gt;
pharmpk</description>
      <pubDate>Fri, 02 Apr 2010 19:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73273#M21242</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-02T19:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to include # symbol in the name line?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73274#M21243</link>
      <description>Share what SAS code you are using, preferably in a SAS-generated log with all code revealed.  Also, your SAS version, OS platform, whether running SAS local or remote (connection) is always helpful with getting an accurate and effective reply from forum subscribers.&lt;BR /&gt;
&lt;BR /&gt;
So, if your point: "I would like to keep #ID when I output the post-processed data file" means that you want to have the first observation contain the data-string found in the header record of your input data, consider that the remaining observations (for the #ID variable) must also be CHARACTER, instead of NUMERIC.  This will present challenges with sorting data.&lt;BR /&gt;
&lt;BR /&gt;
You may want to clarify what your INPUT data looks like and also what you would like to see any OUTPUT (report, SAS dataset) look like.  And also clarify why you want the #ID, given that the remaining rows are "numerical numbers".&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 02 Apr 2010 19:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73274#M21243</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-04-02T19:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to include # symbol in the name line?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73275#M21244</link>
      <description>Hi Sbb:&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your reply. I am using SAS 9.0 on windows XP system, local.&lt;BR /&gt;
&lt;BR /&gt;
The input data file is .csv file like this &lt;BR /&gt;
&lt;BR /&gt;
#ID Time Concentration Age Weight&lt;BR /&gt;
  1     0.1        100            25     70 &lt;BR /&gt;
  1     1.0           70             25     70 &lt;BR /&gt;
  1     2.0           40             25     70 &lt;BR /&gt;
  1     4.0           0             25     70 &lt;BR /&gt;
..........&lt;BR /&gt;
.........&lt;BR /&gt;
........&lt;BR /&gt;
The SAS code I am using is like following:&lt;BR /&gt;
&lt;BR /&gt;
filename datain&lt;BR /&gt;
'E:\....csv';&lt;BR /&gt;
data fulldata;&lt;BR /&gt;
infile datain DELIMITER=',';&lt;BR /&gt;
input  ID TIME Concentration Age Weight&lt;BR /&gt;
if ID EQ _blank_ THEN delete;&lt;BR /&gt;
drop _blank_;&lt;BR /&gt;
run;&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
&lt;BR /&gt;
proc export data=..&lt;BR /&gt;
               outfile= "E:\....csv"&lt;BR /&gt;
               dbms=csv replace;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
In the output file, I would like to have "#ID" instead of "ID" in the first line.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
pharmpk</description>
      <pubDate>Fri, 02 Apr 2010 20:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73275#M21244</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-02T20:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to include # symbol in the name line?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73276#M21245</link>
      <description>SAS names cant start with # but try using a label statement.  The variable name wount contain # but it will show up in output.</description>
      <pubDate>Fri, 02 Apr 2010 20:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73276#M21245</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-04-02T20:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to include # symbol in the name line?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73277#M21246</link>
      <description>Hi RickM:&lt;BR /&gt;
&lt;BR /&gt;
Thank you.  I tried it. #ID is in the data file in SAS window. But, it is still not in the csv file when I try to export it.</description>
      <pubDate>Fri, 02 Apr 2010 20:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73277#M21246</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-02T20:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to include # symbol in the name line?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73278#M21247</link>
      <description>The PROC EXPORT support for SAS label in the header is not until SAS 9.2.  You may want to consider the DS2CSV macro for your export needs to a simple CSV, if you must have SAS variable label information in the output's column header.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic/post:&lt;BR /&gt;
ds2csv site:sas.com</description>
      <pubDate>Fri, 02 Apr 2010 20:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73278#M21247</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-04-02T20:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to include # symbol in the name line?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73279#M21248</link>
      <description>Hi Sbb,&lt;BR /&gt;
&lt;BR /&gt;
I will check it out.&lt;BR /&gt;
Thank you so much :-).&lt;BR /&gt;
&lt;BR /&gt;
pharmapk</description>
      <pubDate>Fri, 02 Apr 2010 21:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-include-symbol-in-the-name-line/m-p/73279#M21248</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-02T21:04:40Z</dc:date>
    </item>
  </channel>
</rss>

