roosterup
asked on
OPNQRYF MAPFLD *zoned 4 0 from field in MMDDYYYY format
OPNQRYF FILE((FILEA)) OPTION(*ALL) +
QRYSLT('(KEY1 *GT 0) *AND +
(CKYR *EQ ' *CAT &YEAR *CAT ')') +
KEYFLD(KEY1) +
MAPFLD((CKYR ?????????
How do I mapfld a four digit year from a numeric field in a mmddyyyy format?
QRYSLT('(KEY1 *GT 0) *AND +
(CKYR *EQ ' *CAT &YEAR *CAT ')') +
KEYFLD(KEY1) +
MAPFLD((CKYR ?????????
How do I mapfld a four digit year from a numeric field in a mmddyyyy format?
ASKER
trying to limit the records to the current year, 2009. the date in the file is in this format mmddyyyy.
Date is numeric or character?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Date is numeric
Roosterup
I tested the previous OPNQRYF against a file with a numeric date and it appears to work fine.
Do you want my test code?
Barry
I tested the previous OPNQRYF against a file with a numeric date and it appears to work fine.
Do you want my test code?
Barry
- Gary