Re: [*EXTERNAL*] File keyed on a date field: the read doesn't actually get anything! What am I doing wrong?
"James H. H. Lampert via RPG400-L" <[email protected]>
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <[email protected]> |
On 1/7/26 12:29 PM, Rick Rauterkus wrote: > Are you putting a value into JAN31? If not, you are just positioning to > the beginning of the file and reading the previous record which won't find > anything. Yes. It's got a value (my apologies for not saying so earlier). The INZ(D'2017-01-31') clause on the declaration would have wrapped in the email. And it has three friends, all of them INZ'd to different dates. This excerpt is from a test program, after the real program exhibited the symptom; it uses a date value constructed from month, day, and year values read from a file. -- JHHL -- This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l. Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.