The OP's problem was with people compiling via PDM so a new member type
won't help with that. What he needs is a method to compile similar to
Change Management tooling. That's what we've done--written a compile
command (a CL command) which allows us to specify our own defaults and
then uses comments to customize object compilation for an individual
source member. There have been posts about various tools to do that. I
recall at least one had the source to do it released as well. A search of
the archives should turn one up, but I'm not finding it off-hand.

Michael

wdsci-l-bounces@xxxxxxxxxxxx wrote on 07/25/2013 01:00:06 PM:
----- Message from Buck Calabro <kc2hiz@xxxxxxxxx> on Wed, 24 Jul
2013 15:56:14 -0400 -----

To:

wdsci-l@xxxxxxxxxxxx

Subject:

Re: [WDSCI-L] Colored comment code

On 7/24/2013 8:43 AM, darren wrote:
This just in from the InfoCenter. NOTE: This DCLPRCOPT comes after
the
'PGM' opcode

Example: Declaring compiler options to override CRTBNDCL
DCLPRCOPT DFTACTGRP(*NO) ACTGRP(MYAPP) +
BNDDIR(MYAPPLIB/MYBNDDIR)



My example:
PGM

DCLPRCOPT DFTACTGRP(*NO) ACTGRP(*NEW)

If OP is on an old release and can't yet do that, there's a left-handed
way to do that in RDi. Create a new source member type and have the
associated compile command have the defaults you need. All CLLE's that
need this compiler behaviour will then get the same treatment just by
changing their member type. A side benefit is that people compiling
with PDM will have to do something special because they can't take a
simple 14 to compile. Create a user command in PDM that has the exact
same text as your custom RDi compile command and they can then use the
same defaults in PDM that you use in RDi.

1) Change source member type from CLLE to CLLENEW
2) Document parser, map CLLENEW to parser: CL
3) Compile > Prompt
3a) Add new source type: CLLENEW
3b) New command
3bi) Label: crtbndcl_new
3bii) Command: CRTBNDCL PGM(&O/&N) SRCFILE(&L/&F) SRCMBR(&N)
DFTACTGRP(*NO) ACTGRP(*NEW) OPTION(*EVENTF) REPLACE(&R) DBGVIEW(*SOURCE)
4) Compile

Just an idea.
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.