 




<?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: Need to Identify whether a program is using by any user</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 04:11:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Cursorposition</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113798</link>
		<dc:creator>Cursorposition</dc:creator>
		<pubDate>Thu, 29 Nov 2012 01:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113798</guid>
		<description><![CDATA[Thanks Tom.&#160; Got some idea.&#160; ]]></description>
		<content:encoded><![CDATA[<p>Thanks Tom.&nbsp; Got some idea.&nbsp; </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113760</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 28 Nov 2012 09:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113760</guid>
		<description><![CDATA[&lt;EM&gt;...we don’t want 2 users from same department to use this program same time ...&lt;/EM&gt;
&#160;
That part needs to be clarified first. How will you determine if two users are in the same department?
&#160;
It&#039;s easy to lock a program so that only one user can run it at a time. But trying to create a method that only locks some users some of the time takes a little structuring. Identifying users and departments is necessary before deciding on an appropriate method.
&#160;
For example, I might use a user index. When a user tries to run the program, I would retrieve the user&#039;s department and insert the department name into the user index. When the program ended, I&#039;d remove the index entry for that department name.
&#160;
If a second user from the same department tried to run the program, the attempt to insert the index entry would fail because the department name had already been added. A user from a different department would succeed because the department name would be different for that user.
&#160;
A potential flaw would arise if the job failed and the index entry wasn&#039;t removed. Simplest solution would be a function that removed index entries based on a user name. Other solutions might be setting a condition handler or possibly a scope message that removed the entry for a job even if the function failed.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>&#8230;we don’t want 2 users from same department to use this program same time &#8230;</em><br />
&nbsp;<br />
That part needs to be clarified first. How will you determine if two users are in the same department?<br />
&nbsp;<br />
It&#8217;s easy to lock a program so that only one user can run it at a time. But trying to create a method that only locks some users some of the time takes a little structuring. Identifying users and departments is necessary before deciding on an appropriate method.<br />
&nbsp;<br />
For example, I might use a user index. When a user tries to run the program, I would retrieve the user&#8217;s department and insert the department name into the user index. When the program ended, I&#8217;d remove the index entry for that department name.<br />
&nbsp;<br />
If a second user from the same department tried to run the program, the attempt to insert the index entry would fail because the department name had already been added. A user from a different department would succeed because the department name would be different for that user.<br />
&nbsp;<br />
A potential flaw would arise if the job failed and the index entry wasn&#8217;t removed. Simplest solution would be a function that removed index entries based on a user name. Other solutions might be setting a condition handler or possibly a scope message that removed the entry for a job even if the function failed.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cursorposition</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113757</link>
		<dc:creator>Cursorposition</dc:creator>
		<pubDate>Wed, 28 Nov 2012 09:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113757</guid>
		<description><![CDATA[We have the source for Program.]]></description>
		<content:encoded><![CDATA[<p>We have the source for Program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cursorposition</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113756</link>
		<dc:creator>Cursorposition</dc:creator>
		<pubDate>Wed, 28 Nov 2012 09:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113756</guid>
		<description><![CDATA[Hi Tom,&#160; Thanks for the information.&#160; The program is accessed througha Menu Option.&#160; Can you share with me the most feasible option to achieve this?]]></description>
		<content:encoded><![CDATA[<p>Hi Tom,&nbsp; Thanks for the information.&nbsp; The program is accessed througha Menu Option.&nbsp; Can you share with me the most feasible option to achieve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113745</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 28 Nov 2012 02:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113745</guid>
		<description><![CDATA[BTW, yes, it&#039;s &lt;i&gt;possible&lt;/i&gt; to determine if a program is in use. But first, how exactly were you thinking that knowledge would be used? And second, it&#039;s a pretty complex and potentially time consuming operation. It couldn&#039;t be considered to be guaranteed accurate at all times. There are better ways to go. -- Tom]]></description>
		<content:encoded><![CDATA[<p>BTW, yes, it&#8217;s <i>possible</i> to determine if a program is in use. But first, how exactly were you thinking that knowledge would be used? And second, it&#8217;s a pretty complex and potentially time consuming operation. It couldn&#8217;t be considered to be guaranteed accurate at all times. There are better ways to go. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113744</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 28 Nov 2012 02:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113744</guid>
		<description><![CDATA[How is the program accessed? Usually there will be a menu or some accessible item that users get to in order to run a program. Do you have the source for the program or source for the menu (or what the access object is)? -- Tom]]></description>
		<content:encoded><![CDATA[<p>How is the program accessed? Usually there will be a menu or some accessible item that users get to in order to run a program. Do you have the source for the program or source for the menu (or what the access object is)? &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113714</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Tue, 27 Nov 2012 08:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113714</guid>
		<description><![CDATA[&lt;EM&gt;you can list out user using the specific pgm object by using WRKOBJLCK command&lt;/EM&gt;
&#160;
No, you can&#039;t. Not unless you also create some way of placing a lock on the *PGM that WRKOBJLCK will report. Running a program doesn&#039;t place a lock by itself on the program.
&#160;
That&#039;s why more information is needed for the question. It&#039;s relatively easy to create a locking function for particular programs. It&#039;s much more involved to do it for generic &quot;programs&quot;.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>you can list out user using the specific pgm object by using WRKOBJLCK command</em><br />
&nbsp;<br />
No, you can&#8217;t. Not unless you also create some way of placing a lock on the *PGM that WRKOBJLCK will report. Running a program doesn&#8217;t place a lock by itself on the program.<br />
&nbsp;<br />
That&#8217;s why more information is needed for the question. It&#8217;s relatively easy to create a locking function for particular programs. It&#8217;s much more involved to do it for generic &#8220;programs&#8221;.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113708</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Tue, 27 Nov 2012 06:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-to-identify-whether-a-program-is-using-by-any-user/#comment-113708</guid>
		<description><![CDATA[What does &quot;using by any other user&quot; mean? Can you explain? Do you want to know if some user is running a &lt;b&gt;particular&lt;/b&gt; program? Or will you want to know about different programs at different times? -- Tom]]></description>
		<content:encoded><![CDATA[<p>What does &#8220;using by any other user&#8221; mean? Can you explain? Do you want to know if some user is running a <b>particular</b> program? Or will you want to know about different programs at different times? &#8212; 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/10 queries in 0.052 seconds using memcached
Object Caching 365/371 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 04:14:01 -->