× 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.



Jon Paris wrote:

Probably Barbara is the best person to answer this ...

In V6R1 you can NOMAIN an RPG program - anyone know if this affects the generation of the pep entry - or indeed if methods that rely on a simple count to get past the pep are affected if compiled in that way? I'd check it but ... no V6 system to play with.


The generation of the pep is the same.

It's not really NOMAIN'ing, it's a different way to code a main procedure. You can name one subprocedure to be the main procedure, so instead of having a "cycle main", you have a "linear main" that just runs through its calculations and then returns.

From the system's point of view, there's no difference between the two types of main procedure. There is still a PEP called _QRNP_PEP_modulename that calls the main procedure.

h main(printDailyReport)

D printDailyReport...
D pr extpgm('PRTDLTRPT')

// here is the main procedure
P printDailyReport...
P b
:
:
P e


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.