I needed to extract just the 4-digit year from an invoice file. I created both an "A" and "D" dictionary item using "DY4" (called ORDER.YEAR)
It lists the file perfectly, but when I try to select using ORDER.YEAR it finds nothing:
ex: SELECT BILLING WITH ORDER.YEAR EQ "2019"
0 record(s) selected to SELECT list #0.
Also strange - if I add a "[" OR a "]" OR both, it works?
ex: SELECT BILLING WITH ORDER.YEAR EQ "[2019" or
SELECT BILLING WITH ORDER.YEAR EQ "2019]" or
SELECT BILLING WITH ORDER.YEAR EQ "[2019]"
My solution was to create an I-discriptor to avoid issues in the future:
0001: I
0002: OCONV(@RECORD<29>,"DY4")
0003:
0004: NYR
0005: 4R
0006: S
0007:
My fellow developers and I could not explain this, as it must be a flaw in the back-end.
Just curious if this could be explained?
Nelson
------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------
