Re: What is wrong?
- From: Jonathan Ball <notgenx32@xxxxxxxxx>
- Date: Thu, 24 Jan 2008 12:36:00 -0800 (PST)
On Jan 24, 12:23 pm, "Hau...@xxxxxxxxxxxxxxx" <Hau...@xxxxxxxxxxxxxxx>
wrote:
You try to generate the module with CRTRPGMOD?
No; CRTSQLRPGI with OBJTYPE(*PGM), using opt 14 from PDM. The compile
succeeded using the code I posted, and the program ran successfully.
Note that the program main procedure has no prototype or interface,
and the call to the program passes no parameter. The main procedure
calls the original poster's internal procedure using the prototype.
This won't work. If you want to create a module with embedded SQL, you
have to use CRTSQLRPGI (the same command as for a program).
If you use PDM with option 14 a program is generated and option 15
will generate a module, with the same command. Only the object type in
the compile command is either set to *MODULE or *PGM.
The precompiler comments out the SQL statements and replaces them with
API calls. After either CRTRPGMOD or CRTBNDRPG is called to generate a
module or program from the newly generated source.
Birgitta
.
- References:
- What is wrong?
- From: qgenesist
- Re: What is wrong?
- From: Saml
- Re: What is wrong?
- From: Hauser@xxxxxxxxxxxxxxx
- Re: What is wrong?
- From: qgenesist
- Re: What is wrong?
- From: CRPence
- Re: What is wrong?
- From: qgenesist
- Re: What is wrong?
- From: Hauser@xxxxxxxxxxxxxxx
- What is wrong?
- Prev by Date: Re: Do not try to add four drives to your ASP
- Next by Date: Re: What is wrong?
- Previous by thread: Re: What is wrong?
- Next by thread: Re: What is wrong?
- Index(es):
Relevant Pages
|