|
Lim Hock-Chai wrote: > > I just RPG doesn't have something similar to exit(0) in C. > > thanks. > To get the function of exit(0) in RPG, call CEETREC. Be sure to pass the two parameters - you can pass *OMIT if you want to omit them. http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/apis/CEETREC.htm But you can also call exit() if you want. If you run this program, the second DSPLY will not show up. h bnddir('QC2LE') D exit pr EXTPROC('exit') D rc 10i 0 value C 'before' dsply C callp exit(0) C 'after' dsply C return
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.