|
Hello RPG developers,
I have a question hoping that you will be able to help me
I came accross a piece of code that references this built-in function
%TRIMR
The software sends an email using the SNDDST command
Here it buids the string and tells the program how long the string is.
The question is ... Why the %TrimR portion is written as:
%TrimR(cmd: ' ')
It is my understanding that the %TrimR built-in function will
format the result string "with the right-blanks-trimmed"
Is the %TrimR(cmd) same as %TrimR(cmd:' ')
I am just no clear with this piece of code
Thanks for your answers
Here is the sample code - - - - - - -
CMD = 'SNDDST TYPE(*LMSG) TOINTNET(' +
%TRIM(PSAddr) +
') DSTD(''' +
%TRIM(PSDSTD) +
''') MSG(''' +
%TRIM(WKShortMsg) +
''') LONGMSG(''' +
%TRIM(WKLongMsg) +
''')' ;
CmdLen = %Len(%TrimR(cmd:' '));
QCMDEXEC(CMD:CMDLEN);
Jorge Moreno
Overseas Military Car Sales
Woodbury, New York
Confidentiality Notice:This email, including its attachments, may contain
information that is confidential and may be protected by federal and/or
state
laws and regulations, or other confidentiality privileges. This email,
including its attachments, may contain non-public information, therefore it
is
intended to be conveyed only to the designated recipient(s). If you are
not an
intended recipient, please delete this email, including its attachments,
and
notify the sender. The unauthorized use, dissemination, distribution or
reproduction of this email, including its attachments, is prohibited and
may be
unlawful.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.