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



Hi Mandy
You need to create an SCS writer to create the records.
We have created this successfully.
   out = new SpooledFileOutputStream(as400, pList, null, null);
    Create the writer
    scsWtr = new SCS5256Writer(out, 37, mf.getAS400());
      Use the writer
      scsWtr.write(page.getLine(i));

-----Original Message-----
From: MaradyPrak@BigLots.com [mailto:MaradyPrak@BigLots.com]
Sent: Wednesday, November 28, 2001 1:26 PM
To: java400-l@midrange.com
Subject: RE: Creating spooled file with AS/400 Toolbox


I tried "out.write(line.getBytes("Cp037"));", but still get the same
error.


Regards,
             Marady Prak
             Technical Support Specialist

Big Lots, Inc
300 Phillipi Road or P.O. Box 28512
Columbus, OH 43228
Phone: 614-278-7186   Fax: 614-278-4769
Email: mprak@biglots.com





                    "Joe Pluta"
                    <joepluta@PlutaBro       To:
<java400-l@midrange.com>
                    thers.com>               cc:
                    Sent by:                 Subject:     RE: Creating
spooled file with AS/400 Toolbox
                    java400-l-admin@mi
                    drange.com


                    11/28/2001 01:18
                    PM
                    Please respond to
                    java400-l






> -----Original Message-----
> From: Blair Wyman
>
> Ahh, the problem is most likely the line:
>       out.write(line.getBytes());
>
> String.getBytes() uses the file.encoding system property value (which
> defaults ASCII) to encode the resultant byte array.
>
> Try
>      out.write(line.getBytes("Cp037"));

Hmmmmmmmmmmmmm.  Is this ALWAYS a way to convert Strings to EBCDIC?
It's
much less complicated than the AS400Text technique.  The only difference
would seem to be that is that the resulting array from getBytes is only
the
length of the String, while with the AS400Text technique, it's as long
as
the AS400Text definition.

Joe "Learn Something New Every Day" Pluta

_______________________________________________
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.





_______________________________________________
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.





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.