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




host variable for the file name is defined with a length of 63 (very short
since it contains also the path). I don't know if I can safely extend the
length of the RPG variable.

Java strings can be extremely long (megabytes!) so you don't have to worry about making your RPG string too long for Java to handle.

But, you'll want to look at your prototype for the java String constructor. Make sure that it allows strings as long as the one you want to pass. For example, here's the one that I use (if you're using my HSSF tools, this is in HSSF_H):

     D new_String      PR                  like(jString)
     D                                     EXTPROC(*JAVA
     D                                     :'java.lang.String'
     D                                     :*CONSTRUCTOR)
     D create_from                 1024A   VARYING const

This lets you specify a string that's up to 1024 characters long. If you need a longer one than that, you could change teh "create_from" parameter definition to a higher number, such as 65535...

But, AFIAK, that's the only limit on how big a string can be... For sure, 63 bytes is awfully small, it should be no problem to make it bigger than that!

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.