× 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 4/22/2014 12:12 PM, Kurt Anderson wrote:
Since I'm new to compiling in RDi, I wanted to check here first before I created an RFE.

When in an SQLRPGLE source, the compile commands available are:
CRTSQLRPGI (PDM option 14 for SQLRPGLE)
CRTBNDRPG (PDM option 14 for RPGLE)
CRTRPGMOD (PDM option 15 for RPGLE)

What's missing here is PDM option 15 for SQLRPGLE.

The list of compile commands available does seem to be based on the source type, so why not, for SQL, have the following (this is my RFE idea):
CRTSQLRPGI - *PGM (PDM option 14 for SQLRPGLE)
CRTSQLRPGI - *MODULE (PDM option 15 for SQLRPGLE)

I know I can Compile with prompt and change the OBJTYPE to *Module, but I'd have to do that every time, and I'm spoiled by PDM doing it for me.

It could be even smarter (for both RPGLE & SQLRPGLE) and based on the presence of NOMAIN in the source, it can default to the appropriate compile - that way I can simply use the Compile button for my module coding vs the menu.

I have my own compile commands set up for some of this stuff.

Compile > Work with compile commands

crtrpgsqlmod:
CRTSQLRPGI OBJ(&L/&N) SRCFILE(&L/&F) SRCMBR(&N) OBJTYPE(*MODULE)
OPTION(*EVENTF *XREF) RPGPPOPT(*NONE) REPLACE(*YES)
TOSRCFILE(*CURLIB/QSQLTEMP1) COMPILEOPT('DBGVIEW(*LIST)')

rucrttst (for RPGUnit):
RUCRTTST &N COPTION(*EVENTF) /* SRCMBR(&N) */

compile (Alan Campin's pre-processor):
COMPILE/COMPILE OBJ(&L/&N) SRCFILE(&L/&F) SRCMBR(&N) ENV(*GUI)
BATCH(*NO) /* *EVENTF SRCMBR(&N) */

There might be an RFE in this to associate a particular compile command
to a specific library/source_file(source_member). It's cool that RDi
associates by member type, but I use different compile commands
(CRTRPGMOD & CRTBNDRPG) for type RPGLE depending on whether I'm building
a main program or a service program.

--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.