<?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: scheduled jobs do not execute programs with the CATX function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/702521#M215178</link>
    <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Thank you all very much for your answers,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I opened a ticket and they are reviewing the case, it seems that there is some problem with the jobs in the software installation, the problem is not with the code, since in SasStudio it ends successfully.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 15:20:19 GMT</pubDate>
    <dc:creator>Jhonarsalina</dc:creator>
    <dc:date>2020-11-30T15:20:19Z</dc:date>
    <item>
      <title>scheduled jobs do not execute programs with the CATX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701293#M214733</link>
      <description>&lt;P&gt;The code that I am trying to execute in a job scheduled in SasStudio, executes successfully, but when I schedule it in an automatic job it ends when trying a DATA step that includes the CATX function, do I have to add any option for this type of functions run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 17:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701293#M214733</guid>
      <dc:creator>Jhonarsalina</dc:creator>
      <dc:date>2020-11-24T17:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled jobs do not execute programs with the CATX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701298#M214735</link>
      <description>&lt;P&gt;What does the log look like?&lt;/P&gt;
&lt;P&gt;What exactly does "do not execute" mean? The job never starts? Starts but fails? Only that data step does not run (should be something in the log)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show the code using the CATX function.&lt;/P&gt;
&lt;P&gt;If you are using CATX with macro variables then you may have to turn on Options MPRINT SYMBOLGEN; to see what is happening in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 17:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701298#M214735</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-24T17:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled jobs do not execute programs with the CATX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701310#M214740</link>
      <description>&lt;P&gt;What does the registry look like?&lt;BR /&gt;The variables are date type&lt;/P&gt;&lt;P&gt;What exactly does "do not run" mean? Does the work never start? Does it start but fail? Just that data pass not executing (there should be something in the log)?&lt;/P&gt;&lt;P&gt;It starts but fails, only this step fails.&lt;/P&gt;&lt;P&gt;It shows the following error:&lt;BR /&gt;Error:&lt;BR /&gt;71-185: The call to the CATX function does not have enough arguments.&lt;/P&gt;&lt;P&gt;Show the code using the CATX function.&lt;/P&gt;&lt;P&gt;data C_Cod_GrupoInfra (keep = PERSINVOL_TIPOIDENT_IDTIPIDE PERSINVOL_NRODOCUME Cod_GrupoInfra);&lt;BR /&gt;set Cod_GrupoInfra; length Cod_GrupoInfra $ 1000;&lt;BR /&gt;Cod_GrupoInfra = catx ('|', from col :);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 18:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701310#M214740</guid>
      <dc:creator>Jhonarsalina</dc:creator>
      <dc:date>2020-11-24T18:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled jobs do not execute programs with the CATX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701327#M214751</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/358380"&gt;@Jhonarsalina&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What does the registry look like?&lt;BR /&gt;The variables are date type&lt;/P&gt;
&lt;P&gt;What exactly does "do not run" mean? Does the work never start? Does it start but fail? Just that data pass not executing (there should be something in the log)?&lt;/P&gt;
&lt;P&gt;It starts but fails, only this step fails.&lt;/P&gt;
&lt;P&gt;It shows the following error:&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;&lt;FONT size="6"&gt;Error:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;&lt;FONT size="6"&gt;71-185: The call to the CATX function does not have enough arguments.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Show the code using the CATX function.&lt;/P&gt;
&lt;P&gt;data C_Cod_GrupoInfra (keep = PERSINVOL_TIPOIDENT_IDTIPIDE PERSINVOL_NRODOCUME Cod_GrupoInfra);&lt;BR /&gt;set Cod_GrupoInfra; length Cod_GrupoInfra $ 1000;&lt;BR /&gt;Cod_GrupoInfra = catx ('|', from col :);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know if your input data set has any variables whose names start with COL . Also "from" is not going to work, the syntax would use OF.&lt;/P&gt;
&lt;P&gt;See this example:&lt;/P&gt;
&lt;PRE&gt;data example;
  input a1 $ a2 $ a3 $;
  result = catx('|',of a:);

datalines;
A b c
pdq mno rst
;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 18:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701327#M214751</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-24T18:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled jobs do not execute programs with the CATX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701332#M214755</link>
      <description>&lt;P&gt;Sorry the code is as follows:&lt;BR /&gt;&lt;BR /&gt;Data C_COMPAREND_FECHINFRA (keep = PERSINVOL_TIPOIDENT_IDTIPIDE PERSINVOL_NRODOCUME COMPAREND_FECHINFRA);&lt;BR /&gt;set COMPAREND_FECHINFRA_F ; length COMPAREND_FECHINFRA $1000 ;&lt;BR /&gt;COMPAREND_FECHINFRA = catx( '|' , of col: ) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It was the translator's fault.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 19:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701332#M214755</guid>
      <dc:creator>Jhonarsalina</dc:creator>
      <dc:date>2020-11-24T19:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled jobs do not execute programs with the CATX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701339#M214756</link>
      <description>&lt;P&gt;So that error means that there are no variables whose name start with the letters COL.&lt;/P&gt;
&lt;P&gt;See this example:&lt;/P&gt;
&lt;PRE&gt;708   data test;
709      set sashelp.class ;
710      length x $200;
711      x = catx('|',of col:);
             ----
             71
ERROR 71-185: The CATX function call does not have enough arguments.

712   run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.TEST may be incomplete.  When this step was stopped there were 0 observations
         and 6 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.03 seconds&lt;/PRE&gt;
&lt;P&gt;You really should fix (or trap) the error before getting to this step.&lt;/P&gt;
&lt;P&gt;But if you don't care then just add another value to the function call so that it always has at least one value to concatenate. Use a missing value and it will not change the results.&lt;/P&gt;
&lt;PRE&gt;
713   data test;
714      set sashelp.class ;
715      length x $200;
716      x = catx('|',.,of col:);
717   run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST has 19 observations and 6 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Nov 2020 19:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701339#M214756</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-11-24T19:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled jobs do not execute programs with the CATX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701341#M214757</link>
      <description>&lt;P&gt;One possible explanation for the error is the dataset&amp;nbsp;COMPAREND_FECHINFRA_F does not contain any variables named starting with "COL". Try adding this prior to the CATX step and run it as a scheduled job:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data = COMPAREND_FECHINFRA_F;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 19:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/701341#M214757</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-24T19:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled jobs do not execute programs with the CATX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/702521#M215178</link>
      <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Thank you all very much for your answers,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I opened a ticket and they are reviewing the case, it seems that there is some problem with the jobs in the software installation, the problem is not with the code, since in SasStudio it ends successfully.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 15:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scheduled-jobs-do-not-execute-programs-with-the-CATX-function/m-p/702521#M215178</guid>
      <dc:creator>Jhonarsalina</dc:creator>
      <dc:date>2020-11-30T15:20:19Z</dc:date>
    </item>
  </channel>
</rss>

