<?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 22-322 and Error 76-322 / Audit in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865052#M1723</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438763"&gt;@alperebb&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;t1.Date_Price_Determination&lt;FONT size="5" color="#FF0000"&gt;,&lt;/FONT&gt;
FROM TEST.PURCHASEORDER t1 WHERE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438763"&gt;@alperebb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think removing the comma after the last SELECT item will resolve the issue.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is why I always place such continuation characters at the start of the overflow line where it is easy to scan for and not at the end of the truncated line where it is very difficult to see.&amp;nbsp; The same goes for the conjunctions in long boolean expressions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;CREATE TABLE WORK.K04_PRolmadanPO AS
SELECT
  t1.PR_Number
, t1.Require_Track_Num
, t1.Gross_order_value
, t1.Company_Code
...
WHERE t1.PR_Number is missing
  and t1.Invoice_Receipt_Indicator is not missing
  and t1.Doc_Category = "F"
  and t1.Material_Group like "ZC%"
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Mar 2023 14:30:08 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-03-18T14:30:08Z</dc:date>
    <item>
      <title>Error 22-322 and Error 76-322 / Audit</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/864753#M1715</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;We are making an inquiry for the audit department. We will review POs that were created and invoiced without PR. I am sharing the code below. Can you tell us how we can solve it? We are very new in the SAS world, we are in our infancy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting errors 22-322, 76-322, 22-322 in sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC SQL;
CREATE TABLE WORK.K04_PRolmadanPO AS
SELECT
t1.PR_Number,
t1.Require_Track_Num,
t1.Gross_order_value,
t1.Company_Code,
t1.Doc_Num,
t1.Funds_Center,
t1.Profit_Center,
t1.Client,
t1.Material_Group,
t1.Material_Number,
t1.Order_Unit_of_Measure,
t1.Order_Quantity,
t1.Net_Price,
t1.Net_Order_Value,
t1.Invoice_Receipt_Indicator,
t1.Goods_Receipt_Indicator,
t1.Short_Text,
t1.Plant,
t1.Rebate_basis_1,
t1.Order_Price_Unit,
t1.Net_Weight,
t1.Price_Unit,
t1.Update_group_for_statistics,
t1.Numerator_Conversion,
t1.VOLUME,
t1.Target_Value,
t1.Material_Number1,
t1.Material_Type,
t1.MRP_Area,
t1.Ind_Update_Info_Record,
t1.Material_ledger_activated,
t1.Num_Purch_Info_Record,
t1.Name_of_Requester,
t1.Storage_Location,
t1.Unit_of_Weight,
t1.Delivery_Completed_Ind,
t1.Num_Manufacturer,
t1.Volume_unit,
t1.Price_Printout,
t1.Valuation_Category,
t1.Valuation_Type,
t1.Account_Assign_Cat,
t1.Consumption_Posting,
t1.ZZ_EQUNR_,
t1.Deletion_Indicator,
t1.Material_Number2,
t1.Item_statistical,
t1.Invoicing_plan_number,
t1.Adress_number,
t1.Tax_code,
t1.Returns_Item,
t1.Date_Price_Determination,
FROM TEST.PURCHASEORDER t1 WHERE
t1.PR_Number is missing and t1.Invoice_Receipt_Indicator is not missing and t1.Doc_Category = "F" and t1.Material_Group like "ZC%"

;
*Those with document category "K" are not included because they are rare and the observations in them are mostly invalid.;
*Since there is a high rate of non-PR in POs, only those in certain categories were run.
Category selection was decided based on the data distribution.;

QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 07:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/864753#M1715</guid>
      <dc:creator>alperebb</dc:creator>
      <dc:date>2023-03-17T07:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 and Error 76-322 / Audit</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/864757#M1716</link>
      <description>&lt;P&gt;"is missing" is not valid SAS SQL syntax. Compare with a missing value ("" for character, . for numeric) or use the MISSING function.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 08:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/864757#M1716</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-17T08:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 and Error 76-322 / Audit</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/864766#M1717</link>
      <description>&lt;P&gt;Best practice when receiving an error message is to copy the code and all the messages for the step from the&lt;STRONG&gt; log&lt;/STRONG&gt; and paste that into a text box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 09:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/864766#M1717</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-17T09:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 and Error 76-322 / Audit</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/864992#M1721</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438763"&gt;@alperebb&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;t1.Date_Price_Determination&lt;FONT size="5" color="#FF0000"&gt;,&lt;/FONT&gt;
FROM TEST.PURCHASEORDER t1 WHERE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438763"&gt;@alperebb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think removing the comma after the last SELECT item will resolve the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 21:21:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/864992#M1721</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-03-17T21:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 and Error 76-322 / Audit</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865042#M1722</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A current SAS version accepts &lt;EM&gt;is missing&lt;/EM&gt; without any note or warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1679131922855.png" style="width: 535px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81746iB64CEF8FC57C407B/image-dimensions/535x210?v=v2" width="535" height="210" role="button" title="Patrick_0-1679131922855.png" alt="Patrick_0-1679131922855.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 09:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865042#M1722</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-03-18T09:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 and Error 76-322 / Audit</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865052#M1723</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438763"&gt;@alperebb&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;t1.Date_Price_Determination&lt;FONT size="5" color="#FF0000"&gt;,&lt;/FONT&gt;
FROM TEST.PURCHASEORDER t1 WHERE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438763"&gt;@alperebb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think removing the comma after the last SELECT item will resolve the issue.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is why I always place such continuation characters at the start of the overflow line where it is easy to scan for and not at the end of the truncated line where it is very difficult to see.&amp;nbsp; The same goes for the conjunctions in long boolean expressions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;CREATE TABLE WORK.K04_PRolmadanPO AS
SELECT
  t1.PR_Number
, t1.Require_Track_Num
, t1.Gross_order_value
, t1.Company_Code
...
WHERE t1.PR_Number is missing
  and t1.Invoice_Receipt_Indicator is not missing
  and t1.Doc_Category = "F"
  and t1.Material_Group like "ZC%"
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 14:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865052#M1723</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-18T14:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 and Error 76-322 / Audit</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865072#M1724</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A current SAS version accepts &lt;EM&gt;is missing&lt;/EM&gt; without any note or warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1679131922855.png" style="width: 535px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81746iB64CEF8FC57C407B/image-dimensions/535x210?v=v2" width="535" height="210" role="button" title="Patrick_0-1679131922855.png" alt="Patrick_0-1679131922855.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But does it like "is not missing" which OP also uses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 05:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865072#M1724</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-19T05:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 and Error 76-322 / Audit</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865077#M1725</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A current SAS version accepts &lt;EM&gt;is missing&lt;/EM&gt; without any note or warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1679131922855.png" style="width: 535px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81746iB64CEF8FC57C407B/image-dimensions/535x210?v=v2" width="535" height="210" role="button" title="Patrick_0-1679131922855.png" alt="Patrick_0-1679131922855.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But does it like "is not missing" which OP also uses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;is missing/is not missing&lt;/EM&gt; is documented SAS syntax for Proc SQL:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/sqlproc/n12r23rldq4799n1j9mdyfyf7i6t.htm" target="_self"&gt;IS Operator&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It's also the syntax the EG Query Builder wizard generates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'm curious about it - and can't test right now - is to what syntax that gets translated if running against a database table (like Postgres or Oracle) where missing and NULL have different meanings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 06:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-22-322-and-Error-76-322-Audit/m-p/865077#M1725</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-03-19T06:44:26Z</dc:date>
    </item>
  </channel>
</rss>

