|
You can call it from the command line. The difference between this and a C source is that RPG wants a declaration and definition for main() as well as any other "functions." Note that the RPG main can take any list of parameters you care to define while the C main can accept only the argument count and the argument list. Const allows you to pass a parameter by reference without being able to change its value. C++ has a similar feature. > -----Original Message----- > From: Jim Langston [mailto:jlangston@conexfreight.com] > Sent: Friday, September 24, 1999 1:10 PM > To: RPG400-L@midrange.com > Subject: Re: RPG IV program - comments requested > > > Okay, if I declare a Prototype and Procedure interface, can I > still call my > RPG program from the command line? Or would it always have > to be called > from another program? > > Prototyping I somewhat understand from C and Pascal, when I > would prototype > a subroutine or a function so the compiler wouldn't have to > make 2 passes. But > what is the Procedure Interface for? Is that just an > indicator of my Parm List? > And > if so, is the Prototype required? > > And I see you can declare an input variable as a Constant > (CONST) which seems > somewhat foreign to my concept of a constant, but if that's > the way RPG does it, > I can deal with it. > > Thanks so much, Barbara and others that responded, this is > exactly the type of > feedback I was looking for. > > Regards, > > Jim Langston > > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.