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



Vengoal,

Thanks a million...  I able to view the data, create files, etc.  The
links were very helpful.

Thanks,
Chad Cornelius, IIS

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Vengoal Chang
Sent: Thursday, January 12, 2006 8:51 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: Retrieve SpoolFile data using SpoolFile Object

Chad,
        You have two method to get spooled file content by 
*Spool*edFile.getInputStream ==> get EBCDIC contents and you need
convert with new String(ebcdicbytes[], your-local-codepage)
*Spool*edFile.getTransformedInputStream ==> need specified workstation
customizing object

sample reference:
http://www-912.ibm.com/j_dir/JTOpen.nsf/8178b1c14b1e9b6b8525624f0062fe9f
/a9a640077e7d2dbb06256cfb0031fd83?OpenDocument&Highlight=2,Spool

http://www-912.ibm.com/j_dir/JTOpen.nsf/85255e6f0052055e85255d7f005ed8bc
/A9145FA660F52E9186256DBA0051C3BC?OpenDocument
http://www-912.ibm.com/j_dir/JTOpen.nsf/85255e6f0052055e85255d7f005ed8bc
/8fe411f79c4f834486256aa8004c5c70?OpenDocument

Best regards,

Vengoal

cornelius, chad wrote:

>Vengoal,
>
>Do you have an example of how this is done?
>
>Thanks,
>Chad
>
>-----Original Message-----
>From: java400-l-bounces@xxxxxxxxxxxx
>[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Vengoal Chang
>Sent: Wednesday, January 11, 2006 7:06 PM
>To: Java Programming on and around the iSeries / AS400
>Subject: Re: Retrieve SpoolFile data using SpoolFile Object
>
>Hello,
>    You need parseing the spooled string and convert it to PC codepage 
>by yourself, the SpoolFile Object never convert it. It just get EBCDIC 
>content.
>
>Best regards,
>
>Vengoal
>
>cornelius, chad wrote:
>
>  
>
>>Has anyone successfully written a program that will retrieve spool
file
>>data that is readable?  I found an example in the archives, but the
>>    
>>
>text
>>from the String object is unreadable.  I do not want to copy the spool
>  
>
>>file to a physical file because the program will be heavily used and I
>>foresee data stepping on each other.  Also, I am not sure the spooled
>>file data can be keyed.  I could be wrong though.  Any thoughts?
>>
>>
>>
>>Thanks,
>>
>>Chad Cornelius, IIS
>>
>>>>
>>
>>
>> 
>>
>>    
>>
>
>  
>

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.