<?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: About tagsets.sql in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3260#M1443</link>
    <description>David,&lt;BR /&gt;
&lt;BR /&gt;
this is the tagset that I'm talking about.</description>
    <pubDate>Tue, 29 May 2007 18:46:12 GMT</pubDate>
    <dc:creator>Stephane</dc:creator>
    <dc:date>2007-05-29T18:46:12Z</dc:date>
    <item>
      <title>About tagsets.sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3257#M1440</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
a little question about the tagset SQL.&lt;BR /&gt;
&lt;BR /&gt;
I used it but all my numeric fields with a format = 20.3 are understood like varchar(20). Is there any reason ?&lt;BR /&gt;
&lt;BR /&gt;
The problem is the missing values. &lt;BR /&gt;
&lt;BR /&gt;
I modified the tagset to have &lt;BR /&gt;
do /if cmp(_value_, '.');&lt;BR /&gt;
put 'NULL';&lt;BR /&gt;
&lt;BR /&gt;
But with these varchar fields, it doesn't understand the dot alone because the value is a dot quoted : '.' &lt;BR /&gt;
I tried to put&lt;BR /&gt;
do /if cmp(_value_, "'.'");&lt;BR /&gt;
put 'NULL';&lt;BR /&gt;
&lt;BR /&gt;
or this :&lt;BR /&gt;
do /if cmp(_value_, ''.'');&lt;BR /&gt;
put 'NULL';&lt;BR /&gt;
&lt;BR /&gt;
It doesn't work.&lt;BR /&gt;
&lt;BR /&gt;
Any idea ?&lt;BR /&gt;
&lt;BR /&gt;
Stephane.&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Stephane

Message was edited by: Stephane</description>
      <pubDate>Tue, 29 May 2007 15:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3257#M1440</guid>
      <dc:creator>Stephane</dc:creator>
      <dc:date>2007-05-29T15:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: About tagsets.sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3258#M1441</link>
      <description>Stephane,&lt;BR /&gt;
&lt;BR /&gt;
  I'm not aware of an SQL tagset template. There is an SQL table template, which is something completely different.  Tagset and table templates have different languages and behave differently in ODS.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
      <pubDate>Tue, 29 May 2007 16:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3258#M1441</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2007-05-29T16:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: About tagsets.sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3259#M1442</link>
      <description>A coworker helpfully pointed out to me that there is an SQL tagset:&lt;BR /&gt;
&lt;BR /&gt;
  &lt;A href="http://support.sas.com/rnd/base/topics/odsmarkup/sql.html" target="_blank"&gt;http://support.sas.com/rnd/base/topics/odsmarkup/sql.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
      <pubDate>Tue, 29 May 2007 17:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3259#M1442</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2007-05-29T17:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: About tagsets.sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3260#M1443</link>
      <description>David,&lt;BR /&gt;
&lt;BR /&gt;
this is the tagset that I'm talking about.</description>
      <pubDate>Tue, 29 May 2007 18:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3260#M1443</guid>
      <dc:creator>Stephane</dc:creator>
      <dc:date>2007-05-29T18:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: About tagsets.sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3261#M1444</link>
      <description>Hello Stephane,&lt;BR /&gt;
&lt;BR /&gt;
The colspec entry event catches the type and width of each variable.  I'm afraid it's not&lt;BR /&gt;
very smart.  Or worse, the procedure is not so good about telling the true type of the&lt;BR /&gt;
column.&lt;BR /&gt;
&lt;BR /&gt;
In some of the other tagsets,  CSV, and Excelxp we use a regular expression to determine&lt;BR /&gt;
if the variable is a number.  We could lift that code and use it here.  To see what is going on&lt;BR /&gt;
you could add this to the colspec event just so you would know what the tagset was getting&lt;BR /&gt;
for information about each column.&lt;BR /&gt;
&lt;BR /&gt;
putlog "Name: " name "  Type: " type  " Width: "  width;&lt;BR /&gt;
&lt;BR /&gt;
That can help us figure out if there is anything else we can do.  In SAS 9.2 this information is much richer and consistent across all procs.</description>
      <pubDate>Tue, 29 May 2007 22:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3261#M1444</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2007-05-29T22:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: About tagsets.sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3262#M1445</link>
      <description>Hi Eric,&lt;BR /&gt;
&lt;BR /&gt;
thank you, I'll investigate.&lt;BR /&gt;
&lt;BR /&gt;
&lt;LATER...&gt;&lt;BR /&gt;
&lt;BR /&gt;
Ok, here is the partial putlog :&lt;BR /&gt;
&lt;BR /&gt;
Name: id_customer Type: string Width: 11&lt;BR /&gt;
...&lt;BR /&gt;
Name: smt_patr_pc_m_1 Type: string Width: 20&lt;BR /&gt;
Name: smt_rvnu_pc_m_1 Type: string Width: 20&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
smt_patr_pc_m_1 has attributes from proc contents : &lt;BR /&gt;
Length=8, format=20.3 informat=20.3&lt;BR /&gt;
&lt;BR /&gt;
The first values of smt_patr_pc_m_1 is 153.000, 253.000 ... no commas.&lt;BR /&gt;
&lt;BR /&gt;
I didn't see that id_customer was saved as string. It's a numeric field also.

Message was edited by: Stephane&lt;/LATER...&gt;</description>
      <pubDate>Wed, 30 May 2007 09:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/About-tagsets-sql/m-p/3262#M1445</guid>
      <dc:creator>Stephane</dc:creator>
      <dc:date>2007-05-30T09:21:16Z</dc:date>
    </item>
  </channel>
</rss>

