 




<?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 AS/400 Printer definition</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/retrieve-printer-definition/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-printer-definition/</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 16:47:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Article: Retrieve AS/400 Printer definition &#124; RPG AS400 Experience</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-printer-definition/#comment-83649</link>
		<dc:creator>Article: Retrieve AS/400 Printer definition &#124; RPG AS400 Experience</dc:creator>
		<pubDate>Thu, 11 Nov 2010 15:09:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-83649</guid>
		<description><![CDATA[[...] Retrieve AS/400 Printer definition http://itknowledgeexchange.techtarget.com/itanswers/retrieve-printer-definition/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Retrieve AS/400 Printer definition <a href="http://itknowledgeexchange.techtarget.com/itanswers/retrieve-printer-definition/" rel="nofollow">http://itknowledgeexchange.techtarget.com/itanswers/retrieve-printer-definition/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieve-printer-definition/#comment-83421</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 09 Nov 2010 01:31:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-83421</guid>
		<description><![CDATA[One possible beginning direction would be:&lt;pre&gt;
DSPOBJD OBJ(*ALL) OBJTYPE(*DEVD) OUTPUT(*OUTFILE) OUTFILE(QTEMP/DEVD)&lt;/pre&gt;
With QTEMP/DEVD populated, you&#039;d perhaps be interested only in the devices that satisfied this condition:&lt;pre&gt;
SELECT * FROM qtemp/devd WHERE ODOBAT like &#039;%PRT%&#039;&lt;/pre&gt;
It&#039;s not required to use SQL to limit the rows only to &quot;printer&quot; devices. A CL program could use RCVF to read each row to see if the device name matched what was requested and if that device attribute indicated that it was a form of printer device. Any HLL could do the processing.

Or you could simply run:&lt;pre&gt;
CHGDEVPRT DEVD( &lt;devicename&gt; )&lt;/pre&gt;
If you execute CHGDEVPRT with no parms other than DEVD(), the only things that happen are verification that such a device exists and that it&#039;s actually a printer. If either condition is false, an *ESCAPE message is returned.

There are more definite solutions if you want to use system configuration APIs. I can&#039;t tell how far you want to go with this. Keep in mind that elements such as a user&#039;s authority to a device or to an *OUTQ might be involved. Also, a &quot;printer&quot; device might not actually exist -- it might only be a &quot;remote output queue&quot;.

Tom]]></description>
		<content:encoded><![CDATA[<p>One possible beginning direction would be:
<pre>
DSPOBJD OBJ(*ALL) OBJTYPE(*DEVD) OUTPUT(*OUTFILE) OUTFILE(QTEMP/DEVD)</pre>
<p>With QTEMP/DEVD populated, you&#8217;d perhaps be interested only in the devices that satisfied this condition:
<pre>
SELECT * FROM qtemp/devd WHERE ODOBAT like '%PRT%'</pre>
<p>It&#8217;s not required to use SQL to limit the rows only to &#8220;printer&#8221; devices. A CL program could use RCVF to read each row to see if the device name matched what was requested and if that device attribute indicated that it was a form of printer device. Any HLL could do the processing.</p>
<p>Or you could simply run:
<pre>
CHGDEVPRT DEVD( &lt;devicename&gt; )</pre>
<p>If you execute CHGDEVPRT with no parms other than DEVD(), the only things that happen are verification that such a device exists and that it&#8217;s actually a printer. If either condition is false, an *ESCAPE message is returned.</p>
<p>There are more definite solutions if you want to use system configuration APIs. I can&#8217;t tell how far you want to go with this. Keep in mind that elements such as a user&#8217;s authority to a device or to an *OUTQ might be involved. Also, a &#8220;printer&#8221; device might not actually exist &#8212; it might only be a &#8220;remote output queue&#8221;.</p>
<p>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/8 queries in 0.036 seconds using memcached
Object Caching 283/284 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 17:12:01 -->