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



We ran into an issue where a variable, defined as *CHAR with a length of 5000, but either initialized or data moved to this field exceeded 5000 characters, caused a subsequent command to fail because of length limitation issue, CPD0183. How can this happen? Is this a bug? How can a field have more data than it was defined for.
We saw the same results if the data was defined in an RPGLE program, passed it the CL.

DCL VAR(&M) TYPE(*CHAR) LEN(5000)

SWPUSRPRF USRPRF(CPATEXT) CMD(SNDDST TYPE(*LMSG) +
TOINTNET((psteinmetz@xxxxxxxxxx)) +
DSTD(TEST) LONGMSG(&M))

Message ID . . . . . . : CPD0183 Severity . . . . . . . : 30
Message type . . . . . : Diagnostic
Date sent . . . . . . : 05/02/13 Time sent . . . . . . : 09:22:03

Message . . . . : Embedded command SNDDST too long.
Cause . . . . . : The length specified for the embedded command exceeds the
defined length. Command length is 5001, but the maximum length for the
embedded command string is 5000.

Thank You
_____
Paul Steinmetz
IBM i Systems Administrator

Pencor Services, Inc.
471 Delaware Ave
Palmerton Pa 18071

610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home

psteinmetz@xxxxxxxxxx<mailto:psteinmetz@xxxxxxxxxx>
http://www.pencor.com/


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.