|
Peter, Since there is no K on your F spec, the CHAIN can only be by relative record number. Since TODAY is not a numeric field, it is not valid for the CHAIN operation. You need to add the K to the record address type field on the F spec so the compiler will look at the key field(s) of file TCWORK. ----------------------------- Greg Thielen Magellan Software gthielen@magsoft.com http://www.magsoft.com > Anyone have any idea why this thing is failing to compile with a > "*RNF7055 > Factor 1 TODAY is not valid for the specified operation; the > specification is > ignored."? It looks like the Chain *should* work. Everything is *ISO, > it > doesn't matter whether I call the parameter variable is "TODAY" or > something > else like "TODATE". (Yes, it's ILE...) > > 1 FTCWORK IF E Disk > 2 * > > *--------------------------------------------------------------------- > -- > * RPG name External name > * File name. . . . . . . . . : TCWORK MSMTOD/TCWORK > * Record format(s) . . . . . : RTCWORK RTCWORK > > *--------------------------------------------------------------------- > -- > 3 DTODAY S D DATFMT(*ISO) > 4 * > 5=IRTCWORK > > *--------------------------------------------------------------------- > -- > * RPG record format . . . . : RTCWORK > * External format . . . . . : RTCWORK : MSMTOD/TCWORK > > *--------------------------------------------------------------------- > -- > 6=I *ISO-D 1 10 TODAY > 7=I P 11 12 0WORKDAY > 8 C *ENTRY PList > 9 C Parm TODAY > 10 C Parm RUNDAY 2 0 > 11 * > 12 C Move 0 RUNDAY > 13 C TODAY Chain RTCWORK > 01---- > 14 C N01 Move WORKDAY RUNDAY > 15 C SETON > LR---- > > Peter H. Coffin > phcoffin@us.ibm.com > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@midrange.com". | To unsubscribe from this list send email to MAJORDOMO@midrange.com | and specify 'unsubscribe MIDRANGE-L' in the body of your message. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.