×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On 18-May-2016 14:35 -0500, Alan Shore wrote:
This is code from an existing program in production
RCVF RCDFMT(DVS100) OPNID(*NONE)
Dowhile COND(&EOF *NE '1')
The subject does mention critique ;-)
FWiW: if (&EOF) is *LGL data-type, then also available:
DoWhile COND(*NOT &EOF)
CHGVAR VAR(&CLIB) VALUE(&DVSLB)
IF COND(&CLIB *NE 'NHPROD') THEN(CALLSUBR +
SUBR(EXSUBR))
RCVF RCDFMT(DVS100) OPNID(*NONE)
MONMSG MSGID(CPF0864) EXEC(CHGVAR VAR(&EOF) +
VALUE('1'))
Enddo
FWiW; if only to prevent an error on empty-file by eliminating the
/priming/ read, but also perhaps to make the code more succinct having
eliminated both that and use of (&EOF), per coding a Do-Forever with LEAVE:
Dowhile COND('1') /* do forever */
RCVF RCDFMT(DVS100) OPNID(*NONE)
MONMSG MSGID(CPF0864) EXEC( LEAVE ) /* leave on EOF */
CHGVAR VAR(&CLIB) VALUE(&DVSLB)
IF COND(&CLIB *NE 'NHPROD') +
THEN(CALLSUBR SUBR(EXSUBR))
Enddo
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.