× 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 All,
How to E-mail or E-fax spool file or any document in RPG

Thanks in advance
Mahesh pawar

----- Original Message -----
From: Barbara Morris <bmorris@xxxxxxxxxx>
To: <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, September 03, 2003 5:29 AM
Subject: Re: Rpg calls Java with errors


> Adele Cavalli wrote:
> >
> > >From RPG I'm trying to call a java method. Probabibly
> > something gooes wrong because I see some messages sent
> > by VM but they disappear immediately and I get the
> > error RNX0301 java.lang.InstantiationException . . .
> >
> > Is there a way to read these messages before they
> > disappear ?
> >
>
> Adele, the only way I know to see them is to get them sent to a file.
>
> 1. In your home directory, create a file called
> SystemDefaults.properties.
>    You can also put this file in /QIBM/UserData/Java400 - that way it
>    will affect every job that doesn't have this file in its home
> directory.
> 2. In the file, add the following lines (putting whatever files you
>    want - they don't have to be in your home directory).  I don't
>    know if the lines have to start in column 1, but they do in my file.
>       os400.stdout=file:/home/mydir/stdout.txt
>       os400.stderr=file:/home/mydir/stderr.txt
> 3. You may also have to do
>      ===> ADDENVVAR ENVVAR(QIBM_USE_DESCRIPTOR_STDIO) VALUE(Y)
>    before doing any RPG->Java calls.
> 4. Run your RPG program, and when it's finished, do
>      ===> wrklnk '/home/mydir/std*' or whatever files you used
>    and then display the files.
>
> You'll probably have to sign off and back on before it takes affect.
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
>
>


--------------------------------------------------------------
Systems & Software, Mumbai, India
 Sent using PostMaster by QuantumLink Communications Pvt Ltd
 One Internet account, unlimited personal e-mail addresses
 Get your free copy of PostMaster at http://www.postmaster.co.in/
 
 



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.