On 24 Jul 2013 11:04, rob@xxxxxxxxx wrote:
Well
DOWHILE '1'
simplifies my
dowhile (1=1)
And, if they only want it to execute once there's always
DOUNTIL '1'
  Huh.  I totally overlooked that possibility.  That sure is a simple 
resolution for an _effective non-iterative_ Do-group to support the 
LEAVE; i.e. use an iterative Do-group which implicitly is run-once, as a 
_trick_ to get the desired behavior.  Of course much like avoiding those 
other coding concerns expressed earlier by Mark [i.e. avoid: repeating 
yourself, too much nesting, more than one return-point], using various 
/tricks/ are also considered best-avoided.
  Even so... Back to the original topic from the OP:
  DoUntil '1' /* Make this a peudo-iterative DO\ENDDO */
     ChkObj QSTRUPEX1 *Pgm      /* Check for exit program.     */
     MonMsg CPF9800 EXEC(Leave) /* Not there or Not Authorized */
     Call QSTRUPEX1             /* Run it.                     */
     MonMsg CPF0000
  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.