 




<?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: Retreving source file names of a library</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/retreving-source-file-names-of-a-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/retreving-source-file-names-of-a-library/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 12:31:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retreving-source-file-names-of-a-library/#comment-111996</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Mon, 08 Oct 2012 09:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/retreving-source-file-names-of-a-library/#comment-111996</guid>
		<description><![CDATA[&lt;EM&gt;But the outfile consists of only DB files.&lt;/EM&gt;
&#160;
Then there are no source files in that library. (Or you don&#039;t have sufficient authority.)
&#160;
That&#039;s not unusual. The source files usually should be in a different library.
&#160;
&lt;EM&gt;But i need rpgle/clle program names also.&lt;/EM&gt;
&#160;
Since programs aren&#039;t files, you won&#039;t get a list of program names by requesting a list of files descriptions. You&#039;ll only get a list of file descriptions. If you want a list of program names, use the DSPOBJD command with OBJTYPE(*PGM) specified. Specify OBJTYPE(*PGM *FILE) to get a list of programs plus files.
&#160;
One snag with DSPOBJD is that it doesn&#039;t show a difference between data files and source files. You could use your DSPFD command to have a list of files that identifies any that are source files. A SQL DELETE statement can then&#160;delete all records from your list of objects that match records in your list of files that are source files.
&#160;
Actually, I would probably go in&#160;a different&#160;direction. I would simply use CPYLIB to copy the whole library, and then I&#039;d delete&#160;any source files that made it into the new library.
&#160;
&lt;EM&gt;Is there any command or steps to copy objects of a library excluding their source file ?&lt;/EM&gt;
&#160;
No command&#160;that I&#039;m aware of. One could be created reasonably easily, but there&#039;s not enough widespread demand to have one generally available. (I&#039;ve never heard of anyone wanting such a function before.) The steps would be based on the commands I mentioned above.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>But the outfile consists of only DB files.</em><br />
&nbsp;<br />
Then there are no source files in that library. (Or you don&#8217;t have sufficient authority.)<br />
&nbsp;<br />
That&#8217;s not unusual. The source files usually should be in a different library.<br />
&nbsp;<br />
<em>But i need rpgle/clle program names also.</em><br />
&nbsp;<br />
Since programs aren&#8217;t files, you won&#8217;t get a list of program names by requesting a list of files descriptions. You&#8217;ll only get a list of file descriptions. If you want a list of program names, use the DSPOBJD command with OBJTYPE(*PGM) specified. Specify OBJTYPE(*PGM *FILE) to get a list of programs plus files.<br />
&nbsp;<br />
One snag with DSPOBJD is that it doesn&#8217;t show a difference between data files and source files. You could use your DSPFD command to have a list of files that identifies any that are source files. A SQL DELETE statement can then&nbsp;delete all records from your list of objects that match records in your list of files that are source files.<br />
&nbsp;<br />
Actually, I would probably go in&nbsp;a different&nbsp;direction. I would simply use CPYLIB to copy the whole library, and then I&#8217;d delete&nbsp;any source files that made it into the new library.<br />
&nbsp;<br />
<em>Is there any command or steps to copy objects of a library excluding their source file ?</em><br />
&nbsp;<br />
No command&nbsp;that I&#8217;m aware of. One could be created reasonably easily, but there&#8217;s not enough widespread demand to have one generally available. (I&#8217;ve never heard of anyone wanting such a function before.) The steps would be based on the commands I mentioned above.<br />
&nbsp;<br />
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/8 queries in 0.064 seconds using memcached
Object Caching 269/270 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 13:09:37 -->