Hi All:
Here's my code:
dob (date of birth) is an input field which i want to convert to pmdob. All works well with this code until this guy with a dob of 7/22/1936. I then get this error:
Does anyone have a work around?
Thanks
GLS
Here's my code:
Code:
test(de) *usa dob;
if not%error;
pmdob = %uns(%char(%Date(dob:*usa):*mdy0));
endif;
HTML Code:
Message ID . . . . . . : RNQ0114
Date sent . . . . . . : 01/10/07 Time sent . . . . . . : 13:03:02
Message . . . . : The year portion of a Date or Timestamp value is not in
the correct range (C G D F).
Cause . . . . . : RPG procedure GMCGENCEN in program FARMLIB/GMCGENCEN at
statement 006500 requested a conversion to a Date value, from a Timestamp or
a Date value, and the year of the source is not in the allowable range of
the target.
-- The range for a 2-digit year is 1940-2039.
-- The range for a 3-digit year is 1900-2899.
-- The range for a 4-digit year is 0001-9999.
Recovery . . . : Check the job log for more information on the cause of the
error and contact the person responsible for program maintenance.
Possible choices for replying to message . . . . . . . . . . . . . . . :
More...
Thanks
GLS




Comment