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


  • Subject: Re: ##EMailNumber 01-WNY-5014817 TEST (D) Question
  • From: "List Server Mail" <cozzi2@xxxxxxx>
  • Date: Thu, 1 Jul 1999 09:16:45 -0500

*CYMD is the CL data format. It includes only a 1-digit year code in the
following format:

  CYYMMDD

The "C" is either 0 or 1 for 19 or 20. On later releases, the "C" can be 0
through 9.
All of your dates are invalid for this date format.

I think what you want is *ISO (if you're testing a numeric field).

Bob Cozzi
www.rpgiv.com


----- Original Message -----
From: <jmoreno@militarycars.com>
To: <RPG400-L@midrange.com>
Sent: Thursday, July 01, 1999 7:35 AM
Subject: ##EMailNumber 01-WNY-5014817 TEST (D) Question


> Hello all
>
>   I have a very simple question.
>
>  Currently running in V4R2M0. and I had these lines of code in my RPG pgm
...
>
> Definition of Workfield:
> **********************************************************************
>  D                 DS
>  D RDDT0MDY                1      8S 0
>
> A data base field is moved to the workfield and
>     the workfield is tested for a valid Date
> **********************************************************************
>
>
> CL0N01Factor1+++++++Opcode&ExtFactor2+++++++Result++++++++Len++D+HiLoEq
> C                                             MOVE           CMRRDT
RDDT0MDY
>  * Test for Y2K Format YYYYMMDD <Order Date>
> C             *CYMD                TEST (D)
RDDT0MDY               99
> C
>  *
> Results:
> **********************************************************************
> IF CMRRDT = 19991231 Indicator 99  is  *OFF (correctly)
> IF CMRRDT = 20000101 Indicator 99  is  *OFF (correctly)
> IF CMRRDT = 00001231 Indicator 99  is  *OFF (incorrectly)
> IF CMRRDT = 00000101 Indicator 99  is  *OFF (incorrectly)
>
> Question: Has anyone seen these behaviour for *CYMD TEST (D) over a
numeric field (8,0)  and the extended
> year = 0000 ?
>
> Thanks for your contributions and comments
>
>
>                                   Jorge
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * This is the RPG/400 Discussion Mailing List!  To submit a new         *
> * message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
> * from this list send email to MAJORDOMO@midrange.com and specify       *
> * 'unsubscribe RPG400-L' in the body of your message.  Questions should *
> * be directed to the list owner / operator: david@midrange.com          *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.