<?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 not getting load in to target because of length mismatch in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/354914#M10643</link>
    <description>In addition, the SAS Studio forum would not really be the place to post your question. Most of the people who are using SAS Studio are using the free SAS learning software, which is not at all related to DI Studio. &lt;BR /&gt;&lt;BR /&gt;  There is a separate community for Data Management questions for folks using DI and DataFlux. That community is here: &lt;A href="https://communities.sas.com/t5/Data-Management/ct-p/data_management" target="_blank"&gt;https://communities.sas.com/t5/Data-Management/ct-p/data_management&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Mon, 01 May 2017 13:35:57 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-05-01T13:35:57Z</dc:date>
    <item>
      <title>Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353658#M10636</link>
      <description>&lt;P&gt;&amp;nbsp;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have stagging area in which length is 1000 and in taget length is 150&lt;/P&gt;&lt;P&gt;but all values are there which are below 150 character lenght&lt;/P&gt;&lt;P&gt;i am facing problem to load the data from stagging to target.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have &amp;nbsp;used and tried strip, trim, left still no change&lt;/P&gt;&lt;P&gt;using ORACLE to load the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashant.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 12:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353658#M10636</guid>
      <dc:creator>sas_pkc1</dc:creator>
      <dc:date>2017-04-26T12:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353672#M10637</link>
      <description>&lt;P&gt;Care to elaborate? &amp;nbsp;What is this "staging area", where do these lengths come in? &amp;nbsp;How are you getting or sending data to Oracle?&lt;/P&gt;
&lt;P&gt;I cannot see your computer, you need to explain.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 12:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353672#M10637</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-26T12:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353679#M10638</link>
      <description>&lt;P&gt;If your "staging area" is a SAS library, you can use this method to reduce the length of a variable in a SAS dataset:&lt;/P&gt;
&lt;P&gt;(supposing your variable/column is named "stringvar")&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new_dataset;
set original_dataset (rename=(stringvar=_stringvar));
length stringvar $150;
stringvar = _stringvar;
drop _stringvar;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the new dataset, the length of stringvar is now set to 150.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 13:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353679#M10638</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-26T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353686#M10639</link>
      <description>&lt;P&gt;SORRY FOR SHORT QUESTION&lt;/P&gt;&lt;P&gt;As we are working with SAS DI in that Source system is ORACLE AND Target is Data ware house which is in ORACLE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHAT IS HAPPENING IN ORACLE SOURCE SYSTEM THERE ARE VARIABLE WHOSE SIZE IS FOR EX: 1000 &amp;nbsp;THEN WE ARE PERFORMING TRANSFORMATIONS AND LOADING DATA IN TO THE TARGET ORACLE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THERE IS DIFFERENCE OF LENGHT BETWEEN SOURCE ORACLE TABLES AND TARGET ORACLE TABLES&lt;/P&gt;&lt;P&gt;SUPPOSE&amp;nbsp;&lt;/P&gt;&lt;P&gt;SOURCE:&lt;/P&gt;&lt;P&gt;NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LENGTH&lt;/P&gt;&lt;P&gt;PRASHANT &amp;nbsp; &amp;nbsp;1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TARGET:&lt;/P&gt;&lt;P&gt;NAME&amp;nbsp;&lt;/P&gt;&lt;P&gt;PRASHANT &amp;nbsp; 150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WE HAVE VALUES WHICH ARE LESS LENGHT IF WE COMPARE WITH TARGET.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I WANTED TO KNOW WHY DATA IS NOT GETTING LOAD IN TO THE TARGET TABLES.&lt;/P&gt;&lt;P&gt;I USED TRIM, STRIP, LEFT AND COMPRESS THEN ALSO DATA IS NOT MOVING FROM SOURCE TO TARGET.&lt;/P&gt;&lt;P&gt;PLEASE SUGGEST.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 13:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353686#M10639</guid>
      <dc:creator>sas_pkc1</dc:creator>
      <dc:date>2017-04-26T13:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353696#M10640</link>
      <description>&lt;P&gt;Since all this is happening in Oracle, bring this to the attention of the database administrators.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need to shout at us, BTW. Writing in normal (not all-capitals) mode is perfectly acceptable.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353696#M10640</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-26T14:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353697#M10641</link>
      <description>&lt;P&gt;Ah, DI, I don't use that so maybe others can help. &amp;nbsp;It could be any number of things, no data read from source system, transformations fail or result in no obs, no write to target for a number of issues. &amp;nbsp;You must have some sort of steps to this, logs etc. may be nothing to do with a variable length &amp;nbsp;Are there warnings/errors, does it state x number of obs returned from source, do the transformations work as intended, does the target return an error. &amp;nbsp;Not much can really say as the question seems to be I have system X being transformed to system y and its not working - not really a Q&amp;amp;A topic, but more a system analysis.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/353697#M10641</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-26T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/354875#M10642</link>
      <description>Question why the data isn't loaded. Is the column even mapped? If the target column is shorter than the source DIS issues a warning, unless you specify an expression. &lt;BR /&gt;So how did you do this? Also, sharing the log would be helpful.</description>
      <pubDate>Mon, 01 May 2017 06:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/354875#M10642</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-01T06:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/354914#M10643</link>
      <description>In addition, the SAS Studio forum would not really be the place to post your question. Most of the people who are using SAS Studio are using the free SAS learning software, which is not at all related to DI Studio. &lt;BR /&gt;&lt;BR /&gt;  There is a separate community for Data Management questions for folks using DI and DataFlux. That community is here: &lt;A href="https://communities.sas.com/t5/Data-Management/ct-p/data_management" target="_blank"&gt;https://communities.sas.com/t5/Data-Management/ct-p/data_management&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 01 May 2017 13:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/354914#M10643</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-05-01T13:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/354925#M10644</link>
      <description>&lt;P&gt;I moved the thread to the SAS Data Managemment forum.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 14:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/354925#M10644</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-01T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data not getting load in to target because of length mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/355201#M10650</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/119705"&gt;@sas_pkc1&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;There is not a simple anwser to your question so just let me throw in a few thoughts and pointers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The root issue here is the filed length difference betwen your staging table and your target table column. It appears that this column should map 1:1 from source to target. You say that the actual strings in this columns are shorter than the length in the target column - but that's not the solution to the issue.&lt;/P&gt;
&lt;P&gt;Your source and target columns must match OR you have a clear business rule defined of how to transform the column (=read only the first n characters from source). I believe you have neither.&lt;/P&gt;
&lt;P&gt;If you don't have a business rule for such a transformation then you need either to discuss with your data provider (the one providing the staging table) and the Interface Contract needs change so that the source column matches the target column OR you need to talk to the owner of the target model so that the column in the target model gets changed to match the source.&lt;/P&gt;
&lt;P&gt;If you don't do this then you risk that one day a string comes which is actually 1000 characters long and you then truncate it when loading into target. You would be the one to be blamed if you've implemented something like this without a clear business rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is it not loading?&lt;/P&gt;
&lt;P&gt;Highly likely because you're doing something wrong. What does the SAS log tell you?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you test? If you're using SQL Developer or the like then don't forget to issue a &lt;EM&gt;commit&lt;/EM&gt; after insert/update/delete or you won't see the changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If source and target are in Oracle then I normally try and keep all processing in Oracle. How easily that's possible using DIS will depend on the transformation steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to give you advice you need as a first step to share the load log with us, a screenshot of the DIS flow section where this load happens and the generated code for this sections. We can't know what you've got wrong that this is not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the SAS log: Please add &lt;STRONG&gt;&lt;EM&gt;options&amp;nbsp;sastrace=',,,d' sastraceloc=saslog nostsuffix&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;before the load step (ie. as pre-code) so we get more information in the SAS log.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please provide SAS log and DIS generated code as text file attachments and don't just copy/paste it directly into this thread.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 11:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-not-getting-load-in-to-target-because-of-length-mismatch/m-p/355201#M10650</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-02T11:30:33Z</dc:date>
    </item>
  </channel>
</rss>

