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



meovino=/SPx079MrvAgMxX8nMqP6gC/G2K4zDHf@public.gmane.org wrote:
>
> If I define file_in as
>
> D file_in         S            255A   Varying
>
> I get a "Length of varying length variable is out of range" error.  If I
> look at the dump, it tells me that file_in  is 257 characters long.
>

Oops, I only addressed the numeric problem in my previous message.

You can't pass a 255-VARYING field parameter using command line CALL.
(Well, you can, but you'd have to code 257 hex characters and you don't
want to do that.)

If you really want to call this from the command line, write a CMD.

CMD prompt('whatever this program does')
PARM kwd(file) type(*char) len(255) vary(*YES *INT2) prompt('The file')
PARM kwd(format) type(*int4) prompt('The format')

===> CRTCMD yourlib/filething pgm(*libl/ICR001) prdlib(yourlib)
then
===> filething file('/JavaUtil/ImageConversion/in') format(13)
or
===> filething '/JavaUtil/ImageConversion/in' 13
or if you get fancy with SPCVAL for the second parm
===> filething '/JavaUtil/ImageConversion/in' *something




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.