× 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 30-Dec-2011 10:44 , Alan Shore wrote:
<<SNIP>> I never thought of DSPFD command, however, unless I am
missing something (highly likely) running through all the parameters,
I am unable to capture the device type of the print file


Display the field descriptions for the model output file [System outfile for DSPFD TYPE(*ATR) FILEATR(*PRT)]:

DSPFFD QSYS/QAFDPRT /* Look for column name PRTDEVT to see: */

PRDEVT CHAR(1) byte-330 "Printer Device Type"
"In Hex 0=SCS,1=IPDS,2=AFPDS,3=LINE,4=2&3,5=U-ASCII"


<code>

DSPFD FILE(lib/thefile) TYPE(*ATR) OUTPUT(*OUTFILE) FILEATR(*PRTF) OUTFILE(QTEMP/FDPRTF)

select hex(prdevt) from qtemp/fdprtf

DEVTYPE
00
*** End of data **

</code>

FWiW I seem to recall that a recent release had added a "retrieve device file" API.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.