<?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: error 79-322 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822826#M41048</link>
    <description>&lt;P&gt;If variable&amp;nbsp;pcpNPI is numeric, then you would not use INPUT here. You may want to use PUT, or just eliminate the function entirely and use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;a.pcpNPI format=20. as pcpNPI2&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Jul 2022 13:03:49 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-07-12T13:03:49Z</dc:date>
    <item>
      <title>error 79-322</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822813#M41043</link>
      <description>&lt;P&gt;pcpNPI is a numeric 20 variable but i'm getting an error for some reason:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    
454        proc sql;
455        create table ppp
456        as select
457        a.pid,
458        a.input(pcpNPI, 20.) format=20. as pcpNPI2,
                  _        __
                  79       22
                           76
ERROR 79-322: Expecting a FROM.

ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, CONNECTION, DICTIONARY.  

ERROR 76-322: Syntax error, statement will be ignored.

459        a.pname,
460        a.group,
461        b.nflg,
462        b.dflg,
463        b.cond,
464        b.days
465        from ftable as A
466        inner join numerator1 as B
467        on a.pid=b.pid
468        where pcpNPI2 in ('444', '444','444','444','444','444',
469        '44','44','44','444','444');
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
470        run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822813#M41043</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-07-12T12:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: error 79-322</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822818#M41045</link>
      <description>&lt;P&gt;How about this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input(a.pcpNPI, 20.) format=20. as pcpNPI2,&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822818#M41045</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-12T12:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: error 79-322</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822821#M41046</link>
      <description>&lt;P&gt;I did what you requested but still getting an error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
24 create table pp
25 as select
26 a.pid,
27 input(a.pcpNPI, 20.) format=20. as pcpNPI2,

ERROR: INPUT function requires a character argument.
ERROR: Character expression requires a character format.
ERROR: INPUT function requires a character argument.
ERROR: Character expression requires a character format.
ERROR: The following columns were not found in the contributing tables: pcpNPI2.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
44 run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822821#M41046</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-07-12T12:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: error 79-322</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822824#M41047</link>
      <description>Its actually Numeric with len 8 and format 20.</description>
      <pubDate>Tue, 12 Jul 2022 13:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822824#M41047</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-07-12T13:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: error 79-322</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822826#M41048</link>
      <description>&lt;P&gt;If variable&amp;nbsp;pcpNPI is numeric, then you would not use INPUT here. You may want to use PUT, or just eliminate the function entirely and use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;a.pcpNPI format=20. as pcpNPI2&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822826#M41048</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-12T13:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: error 79-322</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822829#M41049</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290946"&gt;@bhca60&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Its actually Numeric with len 8 and format 20.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What types of values does it hold? SAS cannot store 20 digit numbers exactly.&lt;/P&gt;
&lt;P&gt;If this is some type of identifier then you should switch it to character, but you would need to do that BEFORE if becomes&amp;nbsp; a number in SAS.&amp;nbsp; So if you are reading it from a text file, like a CSV file, then read it as character to start with.&amp;nbsp; If it is coming from an external database (like ORACLE) then convert it to a character string in that database before puling it into a SAS dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is actually a number then just realize that it will not be accurate to all 20 decimal places.&amp;nbsp; That should not matter for most things.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/error-79-322/m-p/822829#M41049</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-12T13:19:33Z</dc:date>
    </item>
  </channel>
</rss>

