Link to home
Start Free TrialLog in
Avatar of roosterup
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?
Avatar of Gary Patterson, CISSP
Gary Patterson, CISSP
Flag of United States of America image

What are you trying to do ?

- Gary
Avatar of roosterup
roosterup

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
Avatar of Barry Harper
Barry Harper
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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