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




Is the util_rmvmsg available for download?

Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


|-----------------------------+-------------------------------------------|
|   Scott Klement             |                                           |
|   <rpg400-l@xxxxxxxxxxxxxxxx|                                           |
|   >                         |                                         To|
|   Sent by:                  |               RPG programming on the AS400|
|   rpg400-l-bounces@midrange.|               / iSeries                   |
|   com                       |               <rpg400-l@xxxxxxxxxxxx>     |
|                             |                                         cc|
|   08/11/2004 05:19 PM       |                                           |
|                             |                                     Fax to|
|         Please respond to   |                                           |
|      RPG programming on the |                                    Subject|
|          AS400 / iSeries    |               RE: %Int                    |
|      <rpg400-l@xxxxxxxxxxxx>|                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|-----------------------------+-------------------------------------------|







Hi Aaron,

> That would put make it so zeros would be put into myInt if it was
> _entirely_ blanks.  The way %Int works right now is more purist that the
> RPG cares to have it's bif's, IMO.

FWIW, I agree.  %int() as it stands is too "purist."

Right now, every time I want to use %int() or %dec() I have to do
something like this:

monitor;
peSup.DockNo = %int(peSup.DockNo);
on-error;
peSup.DockNo = 0;
util_rmvmsg('RNX0105');
endmon;

The util_rmvmsg() subprocedure then goes and removes the message from the
job log.  (At first, I didn't think to remove the messages from the job
log... but then I started having problems with jobs ending abnormally
because there was no space in the job log!)

It would be a really useful enhancement if they changed %int(), %dec(),
etc so that you could do something like this:

myVar = %int(SomeString: -1);
or
myVar = %dec(SomeString: 15: 5: -1);

So that if the assignment succeeds, the integer equivalent of "SomeString"
is stored in myVar, and if it fails, the value -1 is stored in myVar.
Preferably without all the hassle of having to remove the messages from
the job log.

That would be a really nice enhancement.

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

Follow-Ups:
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.