> From: DeLong, Eric
>
> When you are building AS400CMD, you are exceeding the max length
> of AS400CMD
> because none of the component strings are VARYING.  Either add VARYING to
> some of the sub-fields (namely EMAILBODY, which is 450 of your total 500
> bytes) or make you AS400CMD field bigger.

Actually, do both.  It looks like your command should be at least 600
characters long; make it 1000, it won't hurt anything.  Second, add the
VARYING keyword to the EMAILBODY and EMAILSUBJ fields.  This will
automatically truncate any unused space.  Also, from what I can tell, your
EMAILBODY is well over 245 characters.  I'd make that one 500 (but VARYING).

I also agree with Bob that you can't pass a VARYING field to QCMDEXC.  I'd
take the VARYING off of AS400CMD (but make the field 1000 long).  That will
probably do what you need.

Joe


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.