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



If it's an integer the %INT() BIF should work.
myNumField = %int(%trim(myCharField));

The %TRIM() might not be needed, I can't remember for sure there.
--
James R. Perkins
http://twitter.com/the_jamezp


On Thu, Oct 1, 2009 at 14:28, <EKovarik@xxxxxxxx> wrote:

I have a bill of lading number left justified in a 20 byte alphanumeric
field.

Need to extract just the bill of lading number and put into a 20 byte
numeric field for chaining purpose.

Does anyone have an example of how to do this?

Thanks,
Ed
<><><><><><><><><><><><><><>
Ed Kovarik
ETHEX, Ther-Rx, and PDI Companies
EDI Coordinator
314-645-6600 ext. 3352
314-646-3707 fax
ekovarik@xxxxxxxx<mailto:ekovarik@xxxxxxxx>
<><><><><><><><><><><><><><>

From: Kovarik, Ed
Sent: Thursday, October 01, 2009 10:36 AM
To: 'rpg400-l@xxxxxxxxxxxx'
Subject: Attach two reports as one for one email attachment

RPGLE Support Request,

I have opened a print file and written content of new report 1 my RPGLE
program.

User request I generate a copy of shipment pack list report 2 and also
attach to same email.

Problem is my email command on iSeries allows for one attachment,
thus can I merge open spool file report 1 and attach report 2 spool file?
Thanks,
Ed
<><><><><><><><><><><><><><>
Ed Kovarik
ETHEX, Ther-Rx, and PDI Companies
EDI Coordinator
314-645-6600 ext. 3352
314-646-3707 fax
ekovarik@xxxxxxxx<mailto:ekovarik@xxxxxxxx>
<><><><><><><><><><><><><><>

--
This is the RPG programming on the IBM i / System i (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.