× 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.



 I have a java program that is printing data from a file. The printing
works fine until I use *AFPDS to include an overlay object.
 The parameter list I am using is looks like this.
    pList Šnew PrintParameterList();
    pList.setParameter(PrintObject.ATTR_SPOOLFILE,"MF");
    pList.setParameter(PrintObject.ATTR_PAGELEN,(float) mf.getLns());
    pList.setParameter(PrintObject.ATTR_PAGEWIDTH,(float) mf.getCols());
    pList.setParameter(PrintObject.ATTR_OUTPUT_QUEUE, outq);
    if (!mf.getOvlPrint().equals("")) {
      pList.setParameter(PrintObject.ATTR_PRTDEVTYPE,"*AFPDS");

pList.setParameter(PrintObject.ATTR_FRONT_OVERLAY,mf.getOvlPrint()); //
contains /QSYS.LIB/library.LIB/overlay.OVL
      pList.setParameter(PrintObject.ATTR_PAGRTT,90);
    }
    out Šnew SpooledFileOutputStream(as400, pList, null, null);
    scsWtr Šnew SCS5256Writer(out, 37);

The write statement looks like this.

     scsWtr.write(page.getLine(i)); // variable returned is a string

The write statement throws this exception

java.io.IOException: com.ibm.as400.access.AS400Exception: CPF511B Data
stream not correct for record 1 in file QPNPSPRTF

The overlay object works with a RPG program.
Any idea of what my problem is or where to look.

Thanks






The information transmitted by the following E-Mail is intended only for the 
addressee and may contain confidential and/or privileged material. Any 
interception, review, retransmission, dissemination, or other use, or taking 
any action upon this information by persons or entities other than the intended 
recipient is prohibited by law and may subject them to criminal or civil 
liability. If you received this communication in error, please contact us 
immediately at 954-730-2900 ext. 3600 and delete the communication from any 
computer or network system.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.