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



will take an 8 pos. character 
date and return a 6 numeric.

Maybe I am too simplicity or still stuck in the ?golden ? oldies? era
of RPG, but if you wish to put CCYYMMDD to an YYMMDD, use MOVE or
define it in a data structure with YYMMDD as a subset of CCYYMMDD.. 
It is quick, simple and easy.

Eurrat Saylor, Jr.

---- Original Message ----
From: bob@xxxxxxxxxxxx
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Date conversion technique, alpha to Numeric
Date: Tue, 6 Feb 2007 15:38:37 -0600


There are many ways to do this.
On is to call the QWCCVTDT API. This gives you the most flexibility.
Another you can use a bunch of nested built-in functions, similar to
the
following:

   YYMMDD = %Dec(%date(CCYYMMDD: *ISO0):*YMD);

-Bob Cozzi
www.i5PodCast.com
Ask your manager to start watching i5 TV



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



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.