× 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 2014-04-07 11:09, Kurt Anderson wrote:
For those who use the Control Statement (H-Spec) MAIN, do you usually give the main procedure a name unique to the program, or do you have a standard name such as mainProcedure? I find that sometimes I struggle to name the main procedure. In the program I'm working in now I settled on mainProcedure, which made me wonder how other people were naming their main procedures.

Kurt Anderson
Sr. Programmer/Analyst - Application Development, Service Delivery Platform
[cid:image002.jpg@01CD16F9.25D27630]
web: www.customcall.com<http://www.customcall.com/> | email: kurt.anderson@xxxxxxxxxxxx<mailto:kurt.anderson@xxxxxxxxxxxx>

A Division of Enghouse Systems Ltd.<http://www.enghouse.com/> (TSX:ESL)


If you will be calling the program from some other RPG code, you will need to use the same prototype for the callers as for the program itself. In those cases, it should be given a unique name.

Setting up a standard where you use MAIN(mainProcedure) might make it awkward to break the standard for a case where you need to call the program from RPG. So I think it's probably better to always give it a unique name.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.