 




<?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: How to get the file name in RPG when file error/exception occured</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-the-file-name-in-rpg-when-file-errorexception-occured/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-the-file-name-in-rpg-when-file-errorexception-occured/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 11:56:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-the-file-name-in-rpg-when-file-errorexception-occured/#comment-108511</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Fri, 15 Jun 2012 11:58:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-108511</guid>
		<description><![CDATA[Great idea.  I&#039;m looking forward to your video tutorial on this subject.]]></description>
		<content:encoded><![CDATA[<p>Great idea.  I&#8217;m looking forward to your video tutorial on this subject.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-the-file-name-in-rpg-when-file-errorexception-occured/#comment-93397</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 18 Jun 2011 02:43:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-93397</guid>
		<description><![CDATA[Also, the definition of each INFDS only requires a single line of code:&lt;pre&gt;
D OPNFDBK1        ds           228&lt;/pre&gt;
That defines a DS covering the first 228 bytes of an INFDS. You can have as many of those as needed to cover each file.

You would have the various subfields defined in a BASED() DS. Then when you need info from any one of the different DSes, you set the basing pointer to cover the one that you need. You should only need to check one at a time.

Tom]]></description>
		<content:encoded><![CDATA[<p>Also, the definition of each INFDS only requires a single line of code:
<pre>
D OPNFDBK1        ds           228</pre>
<p>That defines a DS covering the first 228 bytes of an INFDS. You can have as many of those as needed to cover each file.</p>
<p>You would have the various subfields defined in a BASED() DS. Then when you need info from any one of the different DSes, you set the basing pointer to cover the one that you need. You should only need to check one at a time.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-the-file-name-in-rpg-when-file-errorexception-occured/#comment-93393</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 18 Jun 2011 02:19:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-93393</guid>
		<description><![CDATA[The PSDS should have enough exception data in positions 91-170 to tell who has the lock. The message ID is likely to be CPF5027, and the exception data should say something like &quot;Record &amp;6 in use by job &amp;9.&quot; The record and job info should be filled in.

You could create a (service program) procedure that takes the PSDS as a parm and extracts whatever you need. Code like that ought to be maintained in a single location.

Tom]]></description>
		<content:encoded><![CDATA[<p>The PSDS should have enough exception data in positions 91-170 to tell who has the lock. The message ID is likely to be CPF5027, and the exception data should say something like &#8220;Record &amp;6 in use by job &amp;9.&#8221; The record and job info should be filled in.</p>
<p>You could create a (service program) procedure that takes the PSDS as a parm and extracts whatever you need. Code like that ought to be maintained in a single location.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-the-file-name-in-rpg-when-file-errorexception-occured/#comment-93392</link>
		<dc:creator>kar</dc:creator>
		<pubDate>Sat, 18 Jun 2011 01:32:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-93392</guid>
		<description><![CDATA[Phil, that was an excellent delivery...... I&#039;ll try the &quot;last file operation in PSDS&quot; Thanks a lot.!

In addition, could you please let me know how to get the session/job that has locked the file/record, due to which my program crashes...!
From PSDS &amp; INFDS , I think there is no such parameter to identify the locking job... 

My error message to the user includes &quot;File Name + User/Session (if possible)&quot;, please teach me how to obtain locking part...

-karol]]></description>
		<content:encoded><![CDATA[<p>Phil, that was an excellent delivery&#8230;&#8230; I&#8217;ll try the &#8220;last file operation in PSDS&#8221; Thanks a lot.!</p>
<p>In addition, could you please let me know how to get the session/job that has locked the file/record, due to which my program crashes&#8230;!<br />
From PSDS &amp; INFDS , I think there is no such parameter to identify the locking job&#8230; </p>
<p>My error message to the user includes &#8220;File Name + User/Session (if possible)&#8221;, please teach me how to obtain locking part&#8230;</p>
<p>-karol</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/8 queries in 0.011 seconds using memcached
Object Caching 311/312 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 13:52:02 -->