 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Create Alias</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/create-alias/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/create-alias/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/create-alias/#comment-101917</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 21 Jan 2012 18:42:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-101917</guid>
		<description><![CDATA[If you need to automate the process you could use DSPFD MBRLIST to an outfile
Have an SQL-RPGLE read each member and
1.  Issue an SQL to Create the Alias
2.  Add to a string for the Create View as &#039; the additonal ...
&#039; union
select * from &#039; + aliasName
Once all the members have been processed run the string as a dynamic SQL .. once the view is created you can use it like a file
Phil
Phil]]></description>
		<content:encoded><![CDATA[<p>If you need to automate the process you could use DSPFD MBRLIST to an outfile<br />
Have an SQL-RPGLE read each member and<br />
1.  Issue an SQL to Create the Alias<br />
2.  Add to a string for the Create View as &#8216; the additonal &#8230;<br />
&#8216; union<br />
select * from &#8216; + aliasName<br />
Once all the members have been processed run the string as a dynamic SQL .. once the view is created you can use it like a file<br />
Phil<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigkat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/create-alias/#comment-101840</link>
		<dc:creator>bigkat</dc:creator>
		<pubDate>Thu, 19 Jan 2012 14:38:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-101840</guid>
		<description><![CDATA[not elegant, but you &lt;b&gt;&lt;i&gt;could &lt;/i&gt;&lt;/b&gt;create a UNION statement over multiple ALIASed members
&lt;pre&gt;
create alias s1...
create alias s2...
...
create alias sn...

select * from s1
union
select * from s2
union
...
select * from sn
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>not elegant, but you <b><i>could </i></b>create a UNION statement over multiple ALIASed members</p>
<pre>
create alias s1...
create alias s2...
...
create alias sn...

select * from s1
union
select * from s2
union
...
select * from sn
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/create-alias/#comment-101821</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 19 Jan 2012 04:42:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-101821</guid>
		<description><![CDATA[&lt;i&gt;How can you use &quot;create alias&quot; to return all members of the primary file?&lt;/i&gt;

AFAIK, unless it&#039;s a partitioned table, you can&#039;t.

SQL doesn&#039;t handle members. If you need SQL to process all rows in a table, the data shouldn&#039;t be put into multiple members. But if you are already stuck with members. you can create a logical file that includes all members if it&#039;s a keyed logical.

Since you probably have been stuck with multiple members, that might be your only choice for creating a permanent object. And since it can be done with a simple logical file, there doesn&#039;t seem to be much reason to allow an ALIAS to do it.

If anybody knows an alternative, it&#039;ll probably get posted here.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>How can you use &#8220;create alias&#8221; to return all members of the primary file?</i></p>
<p>AFAIK, unless it&#8217;s a partitioned table, you can&#8217;t.</p>
<p>SQL doesn&#8217;t handle members. If you need SQL to process all rows in a table, the data shouldn&#8217;t be put into multiple members. But if you are already stuck with members. you can create a logical file that includes all members if it&#8217;s a keyed logical.</p>
<p>Since you probably have been stuck with multiple members, that might be your only choice for creating a permanent object. And since it can be done with a simple logical file, there doesn&#8217;t seem to be much reason to allow an ALIAS to do it.</p>
<p>If anybody knows an alternative, it&#8217;ll probably get posted here.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.045 seconds using memcached
Object Caching 295/301 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 03:42:45 -->