 




<?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: delete records in a RPG flat file</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/delete-records-in-a-flat-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/delete-records-in-a-flat-file/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 23:11:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/delete-records-in-a-flat-file/#comment-59128</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Mon, 12 Jan 2009 18:49:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-59128</guid>
		<description><![CDATA[Delete if you like.
You need an RPG program to read the records and delete those you don&#039;t want.
Open it with the U/update code use DELETE command
Or use the SQL delete ...

But I&#039;m too thick for your discussion
Why use DSPLNK and not use it to get a current picuture of all the .txt files in you&#039;re directory?

Phil]]></description>
		<content:encoded><![CDATA[<p>Delete if you like.<br />
You need an RPG program to read the records and delete those you don&#8217;t want.<br />
Open it with the U/update code use DELETE command<br />
Or use the SQL delete &#8230;</p>
<p>But I&#8217;m too thick for your discussion<br />
Why use DSPLNK and not use it to get a current picuture of all the .txt files in you&#8217;re directory?</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anderson123</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/delete-records-in-a-flat-file/#comment-59117</link>
		<dc:creator>Anderson123</dc:creator>
		<pubDate>Mon, 12 Jan 2009 15:12:48 +0000</pubDate>
		<guid isPermaLink="false">#comment-59117</guid>
		<description><![CDATA[I will explain it clearly.Assume the prog starts running today.So the purge file will not have details initially.Now as the program runs each day dsplnk and cpysplf will load details of text file to this purge file.These details should remain in the purge file until it is deleted after 2 months.So if a clear of th purge file is done befroe that wont that be a problem?Please let me know if am clear]]></description>
		<content:encoded><![CDATA[<p>I will explain it clearly.Assume the prog starts running today.So the purge file will not have details initially.Now as the program runs each day dsplnk and cpysplf will load details of text file to this purge file.These details should remain in the purge file until it is deleted after 2 months.So if a clear of th purge file is done befroe that wont that be a problem?Please let me know if am clear</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/delete-records-in-a-flat-file/#comment-59114</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Mon, 12 Jan 2009 14:24:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-59114</guid>
		<description><![CDATA[I&#039;m not sure I understand
You&#039;re running DSPLNK each day?
You&#039;re running DSPLNK with default object = &#039;*&#039;
You&#039;re running DSPLNK with Output = *PRINT
You&#039;re using CPYSPLF with defaults
    TOMBR          *FIRST  
    MBROPT         *REPLACE
to copy this result into a flat file

Then you&#039;re scanning the flat file to find txt files to delete.

The next time you run DSPLNK it will clean up the flat file.
If you want it cleaned up at the end of the job - repeat the steps 
  DSPLNK
 CPYSPLF
At that time you will only get a list the existing txt files.
Phil]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure I understand<br />
You&#8217;re running DSPLNK each day?<br />
You&#8217;re running DSPLNK with default object = &#8216;*&#8217;<br />
You&#8217;re running DSPLNK with Output = *PRINT<br />
You&#8217;re using CPYSPLF with defaults<br />
    TOMBR          *FIRST<br />
    MBROPT         *REPLACE<br />
to copy this result into a flat file</p>
<p>Then you&#8217;re scanning the flat file to find txt files to delete.</p>
<p>The next time you run DSPLNK it will clean up the flat file.<br />
If you want it cleaned up at the end of the job &#8211; repeat the steps<br />
  DSPLNK<br />
 CPYSPLF<br />
At that time you will only get a list the existing txt files.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anderson123</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/delete-records-in-a-flat-file/#comment-59097</link>
		<dc:creator>Anderson123</dc:creator>
		<pubDate>Sat, 10 Jan 2009 05:04:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-59097</guid>
		<description><![CDATA[I dont think this would help...As of now my prog does the following create a txt file on a daily basis and also check for files older than 2 months for purging.If i do a CLRPFM or replace dont you think it will be a problem because it will not have details of older files.
that is if i run today a file abc20090110 will be created.the details of this should exist in the purge file for it to get deleted after a period of 2 months.]]></description>
		<content:encoded><![CDATA[<p>I dont think this would help&#8230;As of now my prog does the following create a txt file on a daily basis and also check for files older than 2 months for purging.If i do a CLRPFM or replace dont you think it will be a problem because it will not have details of older files.<br />
that is if i run today a file abc20090110 will be created.the details of this should exist in the purge file for it to get deleted after a period of 2 months.</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 6/9 queries in 0.013 seconds using memcached
Object Caching 310/313 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 23:19:24 -->