|
Mark wrote:
>Now that I can prototype "Main" procedures, do I
>have to use the procedure name. My naming
>convention is to name programs that print a
>report the same name as a printer file
>therefore my specs look like this:
>
> FSls639wf O E Disk
>
> DSLS639WF PR
>
>The compiler doesn't like this because the symbol,
>SLS639WF is defined in the F spec and the Dspec.
This was addressed in this thread, but I understand how it got lost! The
quick answer is no, you do NOT have to name the PR the same as the
module/program. You can name it anything you want, like so:
dmain pr extpgm('AG07')
d numberIn 15p 5
d*ENTRY emulation
dmain pi
d numberIn 15p 5
c if %parms > 0
c numberIn dsply
c else
c 'Need number!'dsply
c endif
The downside of this is that if you intend to CALLP this main procedure,
you'll have to work out a naming convention that calls every "main"
procedure by a different name. Poke through this thread in the archives and
I think you'll see some responses on this very topic.
--buck
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.