×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
>From what I rember about system() is that is calls QCMDEXC.  Since QCMDEXC
is OPM the override should be scoped to default activation group.  Try
creating your program with activation group *CALLER and call it from the
command line to test this scenario.


> -----Original Message-----
> From: Scott Klement [SMTP:klemscot@klements.com]
> Sent: Wednesday, June 19, 2002 11:07 AM
> To:   mi400@midrange.com
> Subject:      Re: [MI400] *ACTGRPDFN overrides don't work under system()
>
>
> My best guess is that this is an activation group / scoping issue.
>
> When you use *ACTGRPDFN, the override will apply to your current
> activation group.   DSPJOB runs in the default activation group, so
> the override does not happen.
>
> Here's how I know that:
>
> Doing a DSPCMD CMD(DSPJOB), I see that DSPJOB runs a program called
> QWCCDSJC.
> Doing a DSPPGM PGM(QWCCDSJC) I see that QWCCDSJC is an OPM program.
>
> Your C program probably isn't running in the default activation group.
> and, DSPJOB OPTION(*FILOVR) doesn't show all overrides active in the
> job, but only the ones active at the current level.
>
> You might try DSPOVR ACTGRP(activation-group-name-here) instead of
> DSPJOB, that should show the overrides active for that actgrp...
>
>
> On Wed, 19 Jun 2002 Gene_Gaunt@ReviewWorks.com wrote:
> >
> > #include < stdlib.h >
> > void main( void )
> > {
> >    system( "OVRPRTF FILE(QSYSPRT) CTLCHAR(*FCFC) OVRSCOPE(*ACTGRPDFN)"
> );
> >    system( "DSPJOB OPTION(*FILOVR)" );
> > }
> >
> > Why don't I see this override in DSPJOB?
> >
>
> _______________________________________________
> This is the MI Programming on the AS400 / iSeries (MI400) mailing list
> To post a message email: MI400@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/mi400
> or email: MI400-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/mi400.


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