<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lightly Seared On The Reality Grill &#187; RGZLIB</title>
	<atom:link href="http://www.expatpaul.eu/tag/rgzlib/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.expatpaul.eu</link>
	<description>Random expat geekery from The Low Countries</description>
	<lastBuildDate>Mon, 21 May 2012 12:25:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>RGZLIB: Reorganise Library</title>
		<link>http://www.expatpaul.eu/2011/12/rgzlib-reorganise-library/</link>
		<comments>http://www.expatpaul.eu/2011/12/rgzlib-reorganise-library/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 20:21:35 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[IBM i]]></category>
		<category><![CDATA[CL]]></category>
		<category><![CDATA[RGZLIB]]></category>

		<guid isPermaLink="false">http://www.expatpaul.eu/?p=6180</guid>
		<description><![CDATA[The IBM i CL command Reorganize Physical File Mbr (RGZPFM) removes deleted records from a specified member of a physical file and, optionally, reorganizes that member. It&#8217;s a handy command to know about but reorganising physical files member by member can become a very painful process if you have a lot of files to reorganise [...]]]></description>
			<content:encoded><![CDATA[<p>The IBM i CL command Reorganize Physical File Mbr (RGZPFM) removes deleted records from a specified member of a physical file and, optionally, reorganizes that member. It&#8217;s a handy command to know about but reorganising physical files member by member can become a very painful process if you have a lot of files to reorganise (after manually purging a large volume of test data, for example).</p>
<p>I did, at a previous employer, have access to a RGZLIB command. This reorganised all of the physical files in a library and made for a much more convenient purge. Unfortunately, this is ont a system supplied CL command and my current emplyer doesn&#8217;t have it.</p>
<p>So I wrote my own version.</p>
<p><a href="http://www.expatpaul.eu/ibm-i-projects/rgzlib/">RGZLIB</a> is a simple command that will reorganise all of the physical file members in a selected library. Depending on the size of the library to be reorganised (and the size of the files in that library) this process can take a while to run, so I strongly suggest that you submit the command to batch.</p>
<p>My original plan was to write this in RPG and include some additional file clean-up options. However, it turns out that there is no API to retrieve a list of files in a library so the program, as it stands, is a very simple CL affair. If I do code up the additional functionality, I will put it into a seperate command to avoid over-complicating things.</p>
<p>As ever, the source is available on <a href="https://github.com/ExpatPaul/RGZLIB">GitHub</a> and you are free to browse or download it from there.   </p>
 <p><a href="http://www.expatpaul.eu/?flattrss_redirect&amp;id=6180&amp;md5=a8edc3f2ba2ffc0a4fea8c0bc79cc100" title="Flattr" target="_blank"><img src="http://www.expatpaul.eu/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.expatpaul.eu/2011/12/rgzlib-reorganise-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=ExpatPaul&amp;popout=1&amp;url=http%3A%2F%2Fwww.expatpaul.eu%2F2011%2F12%2Frgzlib-reorganise-library%2F&amp;language=en_GB&amp;category=text&amp;title=RGZLIB%3A+Reorganise+Library&amp;description=The+IBM+i+CL+command+Reorganize+Physical+File+Mbr+%28RGZPFM%29+removes+deleted+records+from+a+specified+member+of+a+physical+file+and%2C+optionally%2C+reorganizes+that+member.+It%26%238217%3Bs+a+handy+command...&amp;tags=CL%2CRGZLIB%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>

