<?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: DI studio, issue with &amp;quot;Subquery&amp;quot; in SQL join transformation. in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/DI-studio-issue-with-quot-Subquery-quot-in-SQL-join/m-p/134351#M1472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It there's any type of issues that should being sent to SAS tech support, this it.&lt;/P&gt;&lt;P&gt;Have you exported manually? In the wizard you could check for dependant objects.&lt;/P&gt;&lt;P&gt;And you are sure that all tables are in the target environment , or part of the package?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 10:34:44 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2014-10-21T10:34:44Z</dc:date>
    <item>
      <title>DI studio, issue with "Subquery" in SQL join transformation.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/DI-studio-issue-with-quot-Subquery-quot-in-SQL-join/m-p/134350#M1471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Helv;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;Hi all,&lt;/P&gt;&lt;P dir="ltr"&gt;I've found probably general issue in ETLs that have SQL join transformation with sub-query ,such ETLs can't be promoted correctly to another servers or even same server due SPK packages from such jobs are damaged.&lt;/P&gt;&lt;P dir="ltr"&gt;I reproduced the issue on small test job.&lt;/P&gt;&lt;P dir="ltr"&gt;OS - AIX, SAS 9.3.&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; font-family: Helv;"&gt;So correct etls looks like in attached image correctETL.bmp (I erase table names due high security on company:) &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; font-family: Helv;"&gt;Correct SQL code from SQL join transformation&amp;nbsp; with subquery&amp;nbsp; looks like that:correctSQL.bmp&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; font-family: Helv;"&gt;After import export, or even after simple Copy such ETL to same folder in DI studio, etls demages and looks like that:incorrectETL.bmp&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; font-family: Helv;"&gt;And SQL code loses subquery after IN clause:incorrectSQL.bmp&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 10pt; font-family: Helv;"&gt;Export command itself looks like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Helv;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;ExportPackage -profile "..." -package "C:\...\package.spk"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;-objects "/.../.../test(job)&lt;/P&gt;&lt;P dir="ltr"&gt;-subprop&lt;/P&gt;&lt;P&gt;-types&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Condition,BusinessRuleFlow,ExternalFile,Cube,SearchFolder,Table,GeneratedTransform,OLAPSchema,InformationMap.OLAP,Measure,Column,Job.CubeBuild,Action,Library,MiningResults,Hierarchy,DeployedJob,CalculatedMeasure,InformationMap.Relational,RootFolder,Document,ConditionActionSet,Prompt,Dimension,Note,StoredProcess,PromptGroup,Job,MessageQueue,Service.SoapGenerated,Level,SharedDimension,DeployedFlow" &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe some type of meta-object that needs to be exported omitted(lost), not sure.&lt;/P&gt;&lt;P&gt;It looks like Java/DI studio issue, maybe some hotfix can fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Offcource almost each subquery can be replaced by inner join etc., but anyway - if somebody experienced same error - please share how it can be fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11654i9D6D34C1FB79CD31/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="incorrectSQL.bmp" title="incorrectSQL.bmp" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11655iDC4C62F5A1852CFF/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="correctETL.bmp" title="correctETL.bmp" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11656i33918AB28757B7CB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="incorrectETL.bmp" title="incorrectETL.bmp" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11657i77F661A3ECFB4C7C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="correctSQL.bmp" title="correctSQL.bmp" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 09:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/DI-studio-issue-with-quot-Subquery-quot-in-SQL-join/m-p/134350#M1471</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-10-21T09:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: DI studio, issue with "Subquery" in SQL join transformation.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/DI-studio-issue-with-quot-Subquery-quot-in-SQL-join/m-p/134351#M1472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It there's any type of issues that should being sent to SAS tech support, this it.&lt;/P&gt;&lt;P&gt;Have you exported manually? In the wizard you could check for dependant objects.&lt;/P&gt;&lt;P&gt;And you are sure that all tables are in the target environment , or part of the package?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 10:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/DI-studio-issue-with-quot-Subquery-quot-in-SQL-join/m-p/134351#M1472</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-10-21T10:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: DI studio, issue with "Subquery" in SQL join transformation.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/DI-studio-issue-with-quot-Subquery-quot-in-SQL-join/m-p/134352#M1473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linus,&lt;/P&gt;&lt;P&gt;Thanks for good question.&lt;/P&gt;&lt;P&gt;Yep, I tried to export manually, and all source target table are in target env.&lt;/P&gt;&lt;P&gt;Furthermore,I even tried export to same environment from which I made spk - same result.&lt;/P&gt;&lt;P&gt;Additionaly even if just copy needed ETL and paste it into same folder -creates copy with "Copy of " prefix, and that copy will also has same issue(absolutely same).&lt;/P&gt;&lt;P&gt;So it looks like very similar to some java/DI issue. I tried to make all those steps from a few separate machines, not only mine,-same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you are right and this is question rather for SAS support, but co-workers informed me that they experienced very similar issues on SAS 9.1.3, so I just hope that someone here found out before some nice fix, more clever then just substitude subquery to inner join or smth. like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 10:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/DI-studio-issue-with-quot-Subquery-quot-in-SQL-join/m-p/134352#M1473</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-10-21T10:42:24Z</dc:date>
    </item>
  </channel>
</rss>

