 




<?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: Retrieve the file names in IFS folder to a physical file</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/retrieve-the-file-names-in-ifs-folder-to-a-pf/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-the-file-names-in-ifs-folder-to-a-pf/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 00:45:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: dsaran2007</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-the-file-names-in-ifs-folder-to-a-pf/#comment-85638</link>
		<dc:creator>dsaran2007</dc:creator>
		<pubDate>Tue, 21 Dec 2010 10:47:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-85638</guid>
		<description><![CDATA[In the same, is there is a way to delete specific files from IFS folder based on date?]]></description>
		<content:encoded><![CDATA[<p>In the same, is there is a way to delete specific files from IFS folder based on date?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stone17</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-the-file-names-in-ifs-folder-to-a-pf/#comment-84745</link>
		<dc:creator>stone17</dc:creator>
		<pubDate>Thu, 02 Dec 2010 14:47:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-84745</guid>
		<description><![CDATA[We have a scheduled job to age our IFS files reading a text file with entries like the following. 
find /ifsdirname/backup -mtime +14 -type f -exec rm {} ;     

Enter as many entries for you specfic needs

Run the following command in job scheduler. 
 
 Command  :   
QSH CMD&#039;qsys.lib/qgpl.lib/qtxtsrc.file/ifsgedir.mbr&#039;)]]></description>
		<content:encoded><![CDATA[<p>We have a scheduled job to age our IFS files reading a text file with entries like the following.<br />
find /ifsdirname/backup -mtime +14 -type f -exec rm {} ;     </p>
<p>Enter as many entries for you specfic needs</p>
<p>Run the following command in job scheduler. </p>
<p> Command  :<br />
QSH CMD&#8217;qsys.lib/qgpl.lib/qtxtsrc.file/ifsgedir.mbr&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andymm</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-the-file-names-in-ifs-folder-to-a-pf/#comment-84732</link>
		<dc:creator>andymm</dc:creator>
		<pubDate>Thu, 02 Dec 2010 10:31:48 +0000</pubDate>
		<guid isPermaLink="false">#comment-84732</guid>
		<description><![CDATA[In CL, use the DSPFLR FLR(FolderName) TYPE(*DOC) OUTPUT(*OUTFILE) OUTFILE(FileName) command to list the files in the IFS folder,

The date field LASTRV in that file is 8A in dd/mm/yy format so, when reading through the file (RCVF) in a read loop, you&#039;ll need  to re-format that field for comparison to a previously-declared date field (15 days ago).

If the document in the record is older than your 15 days, use the DLTDLO DLO(FileId_DOCNAM) FLR(FolderName) to delete the document.

To declare the outfile in the first place, it might have been better to run the DSPFLR command from a command line beforehand, so that it exists already, making sure that you have *REPLACE in the OUTMBR parameter of the DSPFLR command in the CL program.]]></description>
		<content:encoded><![CDATA[<p>In CL, use the DSPFLR FLR(FolderName) TYPE(*DOC) OUTPUT(*OUTFILE) OUTFILE(FileName) command to list the files in the IFS folder,</p>
<p>The date field LASTRV in that file is 8A in dd/mm/yy format so, when reading through the file (RCVF) in a read loop, you&#8217;ll need  to re-format that field for comparison to a previously-declared date field (15 days ago).</p>
<p>If the document in the record is older than your 15 days, use the DLTDLO DLO(FileId_DOCNAM) FLR(FolderName) to delete the document.</p>
<p>To declare the outfile in the first place, it might have been better to run the DSPFLR command from a command line beforehand, so that it exists already, making sure that you have *REPLACE in the OUTMBR parameter of the DSPFLR command in the CL program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Featured Member: WilsonAlano - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-the-file-names-in-ifs-folder-to-a-pf/#comment-84714</link>
		<dc:creator>Featured Member: WilsonAlano - ITKE Community Blog</dc:creator>
		<pubDate>Thu, 02 Dec 2010 06:51:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-84714</guid>
		<description><![CDATA[[...] Retrieve the file names in IFS folder to a physical file  [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Retrieve the file names in IFS folder to a physical file  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wilsonalano</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-the-file-names-in-ifs-folder-to-a-pf/#comment-84626</link>
		<dc:creator>wilsonalano</dc:creator>
		<pubDate>Wed, 01 Dec 2010 15:15:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-84626</guid>
		<description><![CDATA[If you NEED the IFS list in a file you can use the RTVDIRINF command. Read help about it to know how it works.

Wilson]]></description>
		<content:encoded><![CDATA[<p>If you NEED the IFS list in a file you can use the RTVDIRINF command. Read help about it to know how it works.</p>
<p>Wilson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wilsonalano</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-the-file-names-in-ifs-folder-to-a-pf/#comment-84623</link>
		<dc:creator>wilsonalano</dc:creator>
		<pubDate>Wed, 01 Dec 2010 15:03:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-84623</guid>
		<description><![CDATA[Hi,

You can use QSHELL to do that.

Try this in a QSHELL session (STRQSH)

find /yourpath -ctime +15 -exec rm {} ;

In this example, 15 is the number of days to stay in disk. So any file on /youpath created more than 15 days ago will be removed.

Regards,
Wilson]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You can use QSHELL to do that.</p>
<p>Try this in a QSHELL session (STRQSH)</p>
<p>find /yourpath -ctime +15 -exec rm {} ;</p>
<p>In this example, 15 is the number of days to stay in disk. So any file on /youpath created more than 15 days ago will be removed.</p>
<p>Regards,<br />
Wilson</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.032 seconds using memcached
Object Caching 337/343 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 00:46:38 -->