|
If all you intend to do is strip out the 6 digit portion of the character date, you could do something like: C Eval NumDate6 = %Dec(%subst(CharDate8:3:6):6:0) Or, you could do this in a data-structure... D DS D CharDate8 1 8A D NumDate6 3 8S 0 -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Mike Berman Sent: Tuesday, February 06, 2007 3:29 PM To: rpg400-l@xxxxxxxxxxxx Subject: Date conversion technique, alpha to Numeric HI I searched the archives but could not find an ILE routine that will take an 8 pos. character date and return a 6 numeric. At some point, the extra 2 are to be dropped.they are the left most so we are going from a CCYYMMDD to a YYMMDD. I would like to use Procedure for this. thanks, Mike --------------------------------- Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
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.