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



> From: fkany@xxxxxxxxxxxxxxxxxx
>
> Help, I'm still getting the Variable length error.  It's getting the error
> on the line where the field AS400CMD is being built.  Too me it looks like
> it should be long enough to hold the data but it still triggers an error.
> Any ideas?

First, the work you're doing is really way too much.  Try this:

D CMDPART1        C                   'SNDDST TYPE(*LMSG) TOINTNET(('
D CMDPART2        C                   ')) DSTD('
D CMDPART3        C                   ') LONGMSG('
D CMDPART4        C                   ')'

Now you don't need to initialize, nor do you have to worry about defining
the length of those particular fields.

Second, I have seen at least one problem:

>                 CMDPART3 = ') LONGMSG(';

This is TEN characters long, not 9.  I suggest you make the change above and
retry the program.  If you get the error again, Frank, show us the EXACT
error message, as well as the portion of the compiler listing with the line
in error.  I can't fathom you getting a VARYING error with ths code.

Joe


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.