× 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.



Folks, all this seems insanely complicated instead of using a make tool. If
you have a make tool, you just put the instructions in the header and
everytime you compile you have the instructions and your change management
system can use the same instructions. No trying to guess what goes where.
You still have a problem using binding directories if you have binder
language.

So I have a service program XVSETL which as a single module XVSETL_M01 and
a binder of XVSETL_B, I cannot specify that except by entering the command.
.

If I have a make tool, I can simply specify.

//*_>_O DLTSRVPGM SRVPGM(@OJBLIB/@OBJNAM)
//*_>_R CRTSRVPGM SRVPGM(@OBJLIB/@OBJNAM)
//*_>_C MODULE(XVSETL_M01)
//*_>_C SRCFILE(@SRCLIB/@SRCFIL) SRCMBR(XVSETL_B)
//*_>_C TEXT('Set Library List for Environment')
//*_>_C BNDSRVPGM((XVERRH *DEFER)) +
//*_>_C OPTION(*DUPPROC) ACTGRP(*CALLER)

The same with the compile of the module.

//*_>_O DTLMOD MODULE(@OBJLIB/@OBJNAM)
//*_>_R CRTSQLRPGI OBJ(@OBJLIB/@OBJNAM)

//*_>_C SRCFILE(@SRCLIB/@SRCFIL) SRCMBR(@SRCMBR)

//*_>_C OBJTYPE(*MODULE) COMMIT(*NONE) OPTION(*EVENTF)

//*_>_C DBGVIEW(@MODDBG) CLOSQLCSR(*ENDACTGRP) RPGPPOPT(*LVL1)


I cannot specify what commit level or the debug level or the RPGPPOPT
level. Otherwise I have to remember all that.

All just seems very complex.





On Tue, Feb 6, 2018 at 1:52 PM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:

On 2/6/2018 4:24 PM, Brian Parkins wrote:

Suppose I wish to create a *SRVPGM using the Binder Language to define
the procedure exports. Suppose also I wish to use a *BNDDIR to specify
the list of *MODULES to search for these exports.

QUESTION: Why then must the CRTSRVPGM command still have the MODULE
parameter explicitly defined? In other words, why does (at least) one
*MODULE have to be specified explicitly on the command. (The default is
MODULE(*SRVPGM).) The Binder Language will specify the export symbol
table and thus determine other *MODULES that are required from the
*BNDDIR (and hence any other *SRVPGMs/*MODULEs) to complete the bind.

All I can think of is that it allows an exceptional situation where you
want to add one *MODULE to /this/ service program, but no others. The
'stock' *BNDDIR works for almost every situation but this one.

Perhaps an RFE is in order to change the default MODULE()?

--
--buck

http://wiki.midrange.com
Your updates make it better!

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.