<?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 with DQ functions on sas code in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/598814#M18262</link>
    <description>&lt;P&gt;Older QKBs should still work in newer versions of SAS.&amp;nbsp; I don't see any obvious error nor do I see and error message which helps understand what the issue is.&amp;nbsp; You could try not using dqsetup.txt as that is an older way to specify a QKB, you just specify the path to the root of the QKB.&amp;nbsp; So for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;%&lt;STRONG&gt;&lt;I&gt;dqload&lt;/I&gt;&lt;/STRONG&gt;(dqlocale=(ESMEX), dqsetuploc=&lt;/FONT&gt;&lt;FONT face="Courier New" color="#800080"&gt;"&amp;lt;qkb path&amp;gt;"&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work, then I recommended contacting Technical Support&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 19:52:26 GMT</pubDate>
    <dc:creator>ShayneGrant</dc:creator>
    <dc:date>2019-10-23T19:52:26Z</dc:date>
    <item>
      <title>Error with DQ functions on sas code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/598793#M18260</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am migrating a couple of jobs and codes from sas 9.3 to sas 9.4. One of the codes is using&amp;nbsp;data quality functions&amp;nbsp;like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;%&lt;STRONG&gt;&lt;I&gt;dqload&lt;/I&gt;&lt;/STRONG&gt;(dqlocale=(ESMEX), dqsetuploc=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;"/&amp;lt;qkb path&amp;gt;/dqsetup.txt"&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; names &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;'/&amp;lt;customized qkb path&amp;gt;/scheme/ESMEX_namess.sch.bfd'&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;After that there is a data step where functions like this are called:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;name_1=dqstandardize(upcase(nombre),'ESMEX_CHAR_NAMES');

name_2=dqschemeapply(upcase(nombre_1),'nompal','BFD');

Name_STD1=dqschemeapply(upcase(nombre_2),'esacen','BFD');
&lt;/PRE&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;P&gt;Also there are calls to:&lt;/P&gt;
&lt;P&gt;- dqparse&lt;/P&gt;
&lt;P&gt;- dqmatch&lt;/P&gt;
&lt;P&gt;- dqidentify&lt;/P&gt;
&lt;P&gt;- dqparsetokenget.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All codes and jobs works fine in sas 9.3, now I am starting to test in 9.4 I am unable to start with this first code. I must say it is running from command line in a Unix environment and all the services are running (started). The errors in the log file are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%dqload(dqlocale=(ESMEX), dqsetuploc="/&amp;lt;qkb path&amp;gt;/dqsetup.txt");

NOTE: DQLOAD macro beginning.

WARNING: No QKB metadata could be found.

NOTE: DQLOAD macro ending.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And linew below, on the same log file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;INFO: Character variables have defaulted to a length of 200 at the places given by: (Line):(Column). Truncation can result.
      150:1    name_1
      151:1    name_2
ERROR: Internal error detected in function DQSTANDARDIZE.  The DATA step is terminating during the EXECUTION phase.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.
NOTE: There were 1 observations read from the data set LIBRARY.DATASETNAME&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I did was to copy all the folder for the qkb from sas 9.3 and put on a path in sas 9.4, and also add the path to the app.cfg for this Data Management Server installation like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;qkb/path = /opt/sas/qkb/ci/26/&amp;lt;subfolders for customized qkb&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In dqsetup also did some modifications to the original file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DISK &amp;lt;dataquality&amp;gt;\&amp;lt;subfolders for customized qkb&amp;gt;\chopinfo;
DISK &amp;lt;dataquality&amp;gt;\&amp;lt;subfolders for customized qkb&amp;gt;\grammar;
DISK &amp;lt;dataquality&amp;gt;\&amp;lt;subfolders for customized qkb&amp;gt;\locale;
DISK &amp;lt;dataquality&amp;gt;\&amp;lt;subfolders for customized qkb&amp;gt;\phonetx;
DISK &amp;lt;dataquality&amp;gt;\&amp;lt;subfolders for customized qkb&amp;gt;\regexlib;
DISK &amp;lt;dataquality&amp;gt;\&amp;lt;subfolders for customized qkb&amp;gt;\scheme;
DISK &amp;lt;dataquality&amp;gt;\&amp;lt;subfolders for customized qkb&amp;gt;\vocab; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something? Please if anyone have experience on this, help can be awesome. Do i need to register something on metadata?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&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>Wed, 23 Oct 2019 18:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/598793#M18260</guid>
      <dc:creator>Kal_ETL</dc:creator>
      <dc:date>2019-10-23T18:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error with DQ functions on sas code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/598805#M18261</link>
      <description>&lt;P&gt;I suspect QKB's are not the same between SAS versions and simply copying from one version to another won't work. Are these QKB customizations you want to import into 9.4? If so I'm sure there would be a process for migrating these although I don't have time right now to research this.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 19:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/598805#M18261</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-10-23T19:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error with DQ functions on sas code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/598814#M18262</link>
      <description>&lt;P&gt;Older QKBs should still work in newer versions of SAS.&amp;nbsp; I don't see any obvious error nor do I see and error message which helps understand what the issue is.&amp;nbsp; You could try not using dqsetup.txt as that is an older way to specify a QKB, you just specify the path to the root of the QKB.&amp;nbsp; So for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;%&lt;STRONG&gt;&lt;I&gt;dqload&lt;/I&gt;&lt;/STRONG&gt;(dqlocale=(ESMEX), dqsetuploc=&lt;/FONT&gt;&lt;FONT face="Courier New" color="#800080"&gt;"&amp;lt;qkb path&amp;gt;"&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work, then I recommended contacting Technical Support&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 19:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/598814#M18262</guid>
      <dc:creator>ShayneGrant</dc:creator>
      <dc:date>2019-10-23T19:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error with DQ functions on sas code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/600159#M18307</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235828"&gt;@ShayneGrant&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;for your help, both were a great help. At the end:&lt;/P&gt;
&lt;P&gt;- I remved the txt file you mentioned.&lt;/P&gt;
&lt;P&gt;- In sas.cfg file, on the opt installation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Add qkb path&amp;nbsp;(For some reason if I don't add, it works but I think it is a good practice to do it).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Modify qkb/compatver&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Change to yes qkb/allow_incompat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;
&lt;P&gt;- The most important change was to add rwxr-xr-x to all the imported QKB, since for some reasson sub folders and files in it doesn't inherit changes to up level folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I have another question but I will create a new post for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grettings&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 19:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-with-DQ-functions-on-sas-code/m-p/600159#M18307</guid>
      <dc:creator>Kal_ETL</dc:creator>
      <dc:date>2019-10-29T19:45:56Z</dc:date>
    </item>
  </channel>
</rss>

