<?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: Leading zeroes in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Leading-zeroes/m-p/1072#M512</link>
    <description>It's because cls_lab_id is a character field, but Z6. is a numeric format. SAS tried substituting $Z. instead (i.e. a character format), but there's no such format as $Z.&lt;BR /&gt;
&lt;BR /&gt;
You could either make appropriate use of string manipulation functions (the best idea unless you are sure there are only digits in cls_lab_id), or if it contains only digits you could say something like &lt;BR /&gt;
cls_lab_id=(put(input(cls_lab_id,6.),Z6.);</description>
    <pubDate>Wed, 19 Jul 2006 19:04:14 GMT</pubDate>
    <dc:creator>DouglasMartin</dc:creator>
    <dc:date>2006-07-19T19:04:14Z</dc:date>
    <item>
      <title>Leading zeroes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Leading-zeroes/m-p/1071#M511</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to put leading zeroes into one of the fields &amp;amp; get this error.&lt;BR /&gt;
--------------------------------&lt;BR /&gt;
&lt;BR /&gt;
832      input dataid $ cls_lab_id $ aliquot $ type $ date $ audit $;&lt;BR /&gt;
NOTE: SCL source line.&lt;BR /&gt;
833      cls_lab_id = put (cls_lab_id, Z6.);&lt;BR /&gt;
                                       ---&lt;BR /&gt;
                                       48&lt;BR /&gt;
ERROR 48-59: The format $Z was not found or could not be loaded.&lt;BR /&gt;
---------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Any idea?  Thank you.&lt;BR /&gt;
James</description>
      <pubDate>Wed, 19 Jul 2006 13:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Leading-zeroes/m-p/1071#M511</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-19T13:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeroes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Leading-zeroes/m-p/1072#M512</link>
      <description>It's because cls_lab_id is a character field, but Z6. is a numeric format. SAS tried substituting $Z. instead (i.e. a character format), but there's no such format as $Z.&lt;BR /&gt;
&lt;BR /&gt;
You could either make appropriate use of string manipulation functions (the best idea unless you are sure there are only digits in cls_lab_id), or if it contains only digits you could say something like &lt;BR /&gt;
cls_lab_id=(put(input(cls_lab_id,6.),Z6.);</description>
      <pubDate>Wed, 19 Jul 2006 19:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Leading-zeroes/m-p/1072#M512</guid>
      <dc:creator>DouglasMartin</dc:creator>
      <dc:date>2006-07-19T19:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeroes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Leading-zeroes/m-p/1073#M513</link>
      <description>Thank you!</description>
      <pubDate>Wed, 19 Jul 2006 19:37:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Leading-zeroes/m-p/1073#M513</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-19T19:37:35Z</dc:date>
    </item>
  </channel>
</rss>

