× 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'm not aware of a print API that can convert SCS (SNA Character Stream)
print data to a readable format. There are APIs that can retrieve this raw
format from a spool file in an output queue, but I'm not aware of an API
that can go the other direction. You might try the Print API documentation
to see if such an API exists. That said, the SCS data stream is not all that
complicated. It originates from the earliest print data streams on
mainframes. I think if you get a description of the data stream you can
interpret the print control codes and extract just the text if that is what
you want to do.

Patrick
----- Original Message -----
From: "TitanRebel" <TitanRebel@xxxxxxxxxxx>
To: <java400-l@xxxxxxxxxxxx>
Sent: Thursday, February 27, 2003 3:49 PM
Subject: SCS conversion???


> I found this list via Google while searching for an answer to a problem.
>   I'm looking forward to reading the trafic.
>
> I hope someone can help me, or point me in a good direction.  Two of us
> have been working on an archive retrieval solution, and we have managed
> to retrieve Raw SCS data from an archive.  The data is read to a buffer
> in an RPG program.  Typically, this data is written to a file on the
> IFS, and a Java program is then reading it and streaming it to a browser
> for viewing.
>
> Can anyone tell me how to convert this data to a readable/viewable
> format?  I've tried reading it in, and then writing it to an OUTQ using
> the SpooledFileOutputStream class, but all I get is garbage.
>
> Thanks for any help!
>
> P.S.  Actually, it would be even better to convert the file before
> writing it to the IFS, so any insite into converting the raw data via
> RPG would be great also!
>
> _______________________________________________
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
>
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.