× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 06-Apr-2012 11:41 , Stone, Joel wrote:
Does WRKDEVD show if a printer is *AFPDS capable?

From WRKDEVD *PRT, Option 5=Display against any device name that is presented in the list will invoke DSPDEVD, and for the displayed printer device a line of output will indicate the value specified on the AFP() parameter of CRTDEVPRT or CHGDEVPRT; e.g.:

Advanced function printing . . . . : AFP *NO

<<SNIP>>

Is there a pgm method (in CL) to check if a printer is *AFPDS
capable?


The following API can retrieve that information:

_i Retrieve Device Description (QDCRDEVD) API i_
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/apis/QDCRDEVD.htm
...
_i DEVD1100 Format i_
This format returns detailed information about a device of category *PRT.
...
Offset Type Field
Dec Hex
0 0 Returns everything from format DEVD0100
...
162 A2 CHAR(10) Device type
172 AC CHAR(10) Device model
182 B6 CHAR(10) Advanced Function Printing™
192 C0 CHAR(10) AFP™ attachment
...
_i Advanced Function Printing (AFP). i_ Whether this printer is used for Advanced Function Printing™ support. (See the AFP parameter in the CRTDEVPRT command.)
_i AFP attachment (AFPATTACH). i_ The type of attachment that is used for printers that are configured for Advanced Function Printing support. (See the AFPATTACH parameter in the CRTDEVPRT command.)
...
"

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.