<?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 job execution: access to caslib via reffile and access to oracle DB not working when scheduled in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/job-execution-access-to-caslib-via-reffile-and-access-to-oracle/m-p/715593#M21367</link>
    <description>&lt;P&gt;the following code runs successfully when I'm inside the job&lt;/P&gt;
&lt;P&gt;&lt;A href="https://server-name/SASJobExecution" target="_blank"&gt;https://server-name/SASJobExecution&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;but fails to create those tables that pull from reffile and from the db connector when I schedule the job..&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options cashost="xxxxxxxxx.xxxx.es" casport=5570;
cas;

caslib _all_ assign;

OPTIONS VALIDVARNAME=ANY;


proc casutil;
droptable casdata="testus" incaslib="mkt" quiet;
droptable casdata="_FC5PTOS" incaslib="mkt" quiet;
droptable casdata="_DIM_CONCESIONARIOS" incaslib="mkt" quiet;
run;


data mkt.testus(promote=yes);
set risknoba.the_sales;
run;

LIBNAME myora ORACLE PATH=VWFSES1P USER=SAS PASSWORD='xxxxxxxxx';

data mkt._DIM_CONCESIONARIOS(promote=yes);
set myora.DIM_CONCESIONARIOS;
run;


FILENAME REFFILE '/caslibs/marketing/FC5PTOS.TXT' encoding=latin1;
        data mkt._FC5PTOS(promote=yes)    ;
        %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
        infile REFFILE delimiter = ';' MISSOVER DSD lrecl=32767 firstobs=2 ;
           informat OPERACION $12. ;
           informat NUMCUOTA best32. ;
           informat NOMINAL commax9.2 ;
           informat "CAP. PENDIENTE"N commax9.2 ;
           informat "IMP. RECOMPRA CONCE"N commax9.2 ;
           informat "PTOS. MES"N commax9.2 ;
          informat "TOT. PUNTOS"N commax9.2 ;
          informat "PTOS. EXTRA"N commax9.2 ;
          informat "TOT. PTOS EXTRA"N commax9.2 ;
          informat VAR10 $1. ;
          format OPERACION $12. ;
          format NUMCUOTA best12. ;
          format NOMINAL commax9.2 ;
          format "CAP. PENDIENTE"N commax9.2 ;
          format "IMP. RECOMPRA CONCE"N commax9.2 ;
          format "PTOS. MES"N commax9.2 ;
          format "TOT. PUNTOS"N commax9.2 ;
          format "PTOS. EXTRA"N commax9.2 ;
          format "TOT. PTOS EXTRA"N commax9.2 ;
          format VAR10 $1. ;
       input
                   OPERACION  $
                   NUMCUOTA
                   NOMINAL
                   "CAP. PENDIENTE"N
                   "IMP. RECOMPRA CONCE"N
                   "PTOS. MES"N
                   "TOT. PUNTOS"N
                   "PTOS. EXTRA"N
                   "TOT. PTOS EXTRA"N
                   VAR10  $
       ;
       if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
       run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2021 23:01:00 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2021-01-30T23:01:00Z</dc:date>
    <item>
      <title>job execution: access to caslib via reffile and access to oracle DB not working when scheduled</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/job-execution-access-to-caslib-via-reffile-and-access-to-oracle/m-p/715593#M21367</link>
      <description>&lt;P&gt;the following code runs successfully when I'm inside the job&lt;/P&gt;
&lt;P&gt;&lt;A href="https://server-name/SASJobExecution" target="_blank"&gt;https://server-name/SASJobExecution&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;but fails to create those tables that pull from reffile and from the db connector when I schedule the job..&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options cashost="xxxxxxxxx.xxxx.es" casport=5570;
cas;

caslib _all_ assign;

OPTIONS VALIDVARNAME=ANY;


proc casutil;
droptable casdata="testus" incaslib="mkt" quiet;
droptable casdata="_FC5PTOS" incaslib="mkt" quiet;
droptable casdata="_DIM_CONCESIONARIOS" incaslib="mkt" quiet;
run;


data mkt.testus(promote=yes);
set risknoba.the_sales;
run;

LIBNAME myora ORACLE PATH=VWFSES1P USER=SAS PASSWORD='xxxxxxxxx';

data mkt._DIM_CONCESIONARIOS(promote=yes);
set myora.DIM_CONCESIONARIOS;
run;


FILENAME REFFILE '/caslibs/marketing/FC5PTOS.TXT' encoding=latin1;
        data mkt._FC5PTOS(promote=yes)    ;
        %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
        infile REFFILE delimiter = ';' MISSOVER DSD lrecl=32767 firstobs=2 ;
           informat OPERACION $12. ;
           informat NUMCUOTA best32. ;
           informat NOMINAL commax9.2 ;
           informat "CAP. PENDIENTE"N commax9.2 ;
           informat "IMP. RECOMPRA CONCE"N commax9.2 ;
           informat "PTOS. MES"N commax9.2 ;
          informat "TOT. PUNTOS"N commax9.2 ;
          informat "PTOS. EXTRA"N commax9.2 ;
          informat "TOT. PTOS EXTRA"N commax9.2 ;
          informat VAR10 $1. ;
          format OPERACION $12. ;
          format NUMCUOTA best12. ;
          format NOMINAL commax9.2 ;
          format "CAP. PENDIENTE"N commax9.2 ;
          format "IMP. RECOMPRA CONCE"N commax9.2 ;
          format "PTOS. MES"N commax9.2 ;
          format "TOT. PUNTOS"N commax9.2 ;
          format "PTOS. EXTRA"N commax9.2 ;
          format "TOT. PTOS EXTRA"N commax9.2 ;
          format VAR10 $1. ;
       input
                   OPERACION  $
                   NUMCUOTA
                   NOMINAL
                   "CAP. PENDIENTE"N
                   "IMP. RECOMPRA CONCE"N
                   "PTOS. MES"N
                   "TOT. PUNTOS"N
                   "PTOS. EXTRA"N
                   "TOT. PTOS EXTRA"N
                   VAR10  $
       ;
       if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
       run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 23:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/job-execution-access-to-caslib-via-reffile-and-access-to-oracle/m-p/715593#M21367</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-01-30T23:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: job execution: access to caslib via reffile and access to oracle DB not working when scheduled</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/job-execution-access-to-caslib-via-reffile-and-access-to-oracle/m-p/715597#M21368</link>
      <description>&lt;P&gt;Please post your SAS log.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 23:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/job-execution-access-to-caslib-via-reffile-and-access-to-oracle/m-p/715597#M21368</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-01-30T23:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: job execution: access to caslib via reffile and access to oracle DB not working when scheduled</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/job-execution-access-to-caslib-via-reffile-and-access-to-oracle/m-p/715616#M21370</link>
      <description>Thanks, I hadn't refreshed properly.</description>
      <pubDate>Sun, 31 Jan 2021 09:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/job-execution-access-to-caslib-via-reffile-and-access-to-oracle/m-p/715616#M21370</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-01-31T09:32:55Z</dc:date>
    </item>
  </channel>
</rss>

