<?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: Data is not loading  in SAS DI job in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530952#M16412</link>
    <description>&lt;P&gt;can you show some sample data from the two columns you are mentioning&amp;nbsp; oracle and&amp;nbsp; SAS&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 13:34:35 GMT</pubDate>
    <dc:creator>kiranv_</dc:creator>
    <dc:date>2019-01-29T13:34:35Z</dc:date>
    <item>
      <title>Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530654#M16401</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the SAS DI job which will the data from flat file to SAS data set () and then I am applying SCD type 2 on this data set to load it to oracle table PFB is screenshot of the Job :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26618i5ACCF71B4E2BD5C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data is coming till&amp;nbsp;fsk_risk_assessment_work data set but same is not loading to Oracle table and Giving below warning :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:97652:97738" target="_blank" rel="noopener"&gt;Line 2:&lt;/A&gt; WARNING: Variable PROPOSED_RISK_CLASSIFICATION not appended because of type mismatch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i checked type of&amp;nbsp;PROPOSED_RISK_CLASSIFICATION&amp;nbsp; in SAS data set&amp;nbsp;fsk_risk_assessment_work is character&amp;nbsp; and in&amp;nbsp;fsk_risk_assessment (oracle table ) it is numeric and i have used&amp;nbsp;INPUT(PROPOSED_RISK_CLASSIFICATION,$8.) in mapping also.&lt;/P&gt;&lt;P&gt;Please help me in the same.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 15:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530654#M16401</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2019-01-28T15:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530702#M16402</link>
      <description>&lt;P&gt;try&amp;nbsp;&lt;SPAN&gt;INPUT(PROPOSED_RISK_CLASSIFICATION,8.) . You need to use numeric informat.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; For more read this small knowledge base below to understand better.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/kb/24/590.html" target="_blank"&gt;http://support.sas.com/kb/24/590.html&lt;/A&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>Mon, 28 Jan 2019 18:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530702#M16402</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2019-01-28T18:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530887#M16409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;INPUT(PROPOSED_RISK_CLASSIFICATION,8.) and&amp;nbsp;&amp;nbsp;INPUT(PROPOSED_RISK_CLASSIFICATION,2.) still i am facing the same issue again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 10:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530887#M16409</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2019-01-29T10:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530892#M16410</link>
      <description>&lt;P&gt;please try best32.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 10:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530892#M16410</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2019-01-29T10:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530925#M16411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried input(columnname,best32.) also but no luck.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 12:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530925#M16411</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2019-01-29T12:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530952#M16412</link>
      <description>&lt;P&gt;can you show some sample data from the two columns you are mentioning&amp;nbsp; oracle and&amp;nbsp; SAS&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/530952#M16412</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2019-01-29T13:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/531038#M16413</link>
      <description>&lt;P&gt;I have used input(&lt;SPAN&gt;PROPOSED_RISK_CLASSIFICATION,1.) then it worked .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks every one for helping me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/531038#M16413</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2019-01-29T15:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/532340#M16451</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/121190"&gt;@MG18&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have used input(&lt;SPAN&gt;PROPOSED_RISK_CLASSIFICATION,1.) then it worked .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks every one for helping me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That doesn't make sense. All of the numeric formats should have worked (see below). If that's not the case then you'd probably should try and consult the generated code and log to understand why 1. works but best32. doesn't. For example if your column in source would have a length of char2 and contain a string like &lt;EM&gt;1a&lt;/EM&gt; then yes, 1. would work and best32. would throw an error - but only because you're not really reading the full string from source with 1.&lt;/P&gt;
&lt;P&gt;Just not getting an error in the log doesn't ensure that you're getting the correct results.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
  length risk_classification $2;
  risk_classification='1';
  var_8=input(risk_classification,8.);
  var_best32=input(risk_classification,best32.);
  var_1=input(risk_classification,1.);
  output;
  stop;
run;
proc print data=sample;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 331px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26802iEFDC5DD910F72DE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&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;And on a side note:&lt;/P&gt;
&lt;P&gt;I've made the experience that SCD2 Transformation generated code can be very inefficient when loading into Oracle - especially for full loads. You won't see this performance issues when loading the first time into an empty target table but it's eventually going to hit you in consecutive loads. So make sure you test for performance at an early stage with at least to cuts of source data and full volumes.&lt;/P&gt;
&lt;P&gt;There are some options in the SCD2 loader which allow for better performing code but even if using these it's not always sufficient. We've ended up in more than one project I've been in to implement using a custom transformation for SCD2 loads into Oracle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And two other tips which I've learned the hard way:&lt;/P&gt;
&lt;P&gt;1: Make sure to always use DATE9. and DATETIME20. formats on your SAS date and datetime columns. If you use different SAS date(time) formats then you risk that the SAS/Access engine doesn't convert your SAS dates correctly to Oracle DATE or TIMESTAMP.&lt;/P&gt;
&lt;P&gt;2: If changing metadata tables definitions (i.e. a format) on tables which don't get always physically recreated by the DIS process then make sure that you also change these definitions on the underlying physical table. Once the physical table has been created a change in SAS metadata won't automatically change the physical table (unless recreated) but when you execute the DIS generated code then the code will during execution time often use what's in the physical table and not what's defined in table metadata.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 03:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/532340#M16451</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-03T03:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not loading  in SAS DI job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/532435#M16463</link>
      <description>&lt;P&gt;excellen points by&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 17:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-is-not-loading-in-SAS-DI-job/m-p/532435#M16463</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2019-02-03T17:38:39Z</dc:date>
    </item>
  </channel>
</rss>

