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



James Rich wrote:

On Fri, 28 Feb 2003, TitanRebel wrote:



I found this list via Google while searching for an answer to a problem.
I'm looking forward to reading the posts since I have been a Linux
convert for the last 1.5 years.



Welcome!


Thanks!



You guys seem to be the only ones that have figured out the same problem
we are having. Our solution can not have a Linux or Windows solution,
but rather we need either a Java or RPG solution. So I just hope you
guys can get me started.



Can you share why you can't use linux (or other *nix)?


It's a web based solution using Tomcat (Servlets, JSPs) running on the iSeries. We are using stored procedures to call RPG programs that produce the file that is viewed by the user. So, I guess I should have said it has to run on the iSeries. I'm a Java guy with some RPG, and my co-worker is an RPG guy with some Java.

I've noticed that the tn5250 has something called scs2ascii, scs2pdf,
etc. So someone has figured out how to translate raw SCS data into
other formats. How could we get started doing this? IBM support has
not been helpful at all. In Java, I've tried reading it in and then
writing it to an OUTQ using the SpooledFileOutputStream class, but all I
get is garbage. My buddy has tried several API's via RPG with no success.



Well you could always look at the source code. But remember that scs2* and everything else in the tn5250 project is licensed under the LGPL, so if you use any of the code in your project then your project must conform to the terms of the LGPL.

The files to look at are scs.c and scs2ascii.c.  scs2pdf.c and scs2ps.c
include a bunch of stuff specific to PDFs and postscript that would
probably just get in the way of really grokking what is going on.  Also be
aware that we have to convert from ebcdic to ascii encoding (and this may
be where your current efforts are failing).


I would not have a problem with this.





Is there a Java or RPG port of scs2*? If not, how would someone get
started writing this conversion from scratch in Java or RPG? How big of
a project would this be? Is there a better way to do this?



No, there isn't a java or rpg port. but try compiling scs2* on the
as/400. The C code should be fairly generic and portable.



This sounds like a good option. I'll have to "bone up" on my C, and give it a whirl!
Thanks for your input, I'll let you know how it goes!


James Rich
_______________________________________________
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.







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.