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



John,

Can you post the relevant code snippets so we can see what you are doing?

This definitely works.

Here is an example of what I'm doing at the moment on 7.3 in one of my
servers which can't afford to be kept waiting


//‚Open any Required Files
If Not %Open( Stock01 );
Override( 'STOCK01' : True );
Open Stock01;
EndIf


=====================
Dcl-Proc Override;

Dcl-PI *N;
FileName VarChar( 10 ) Const;
State Ind Const; //‚Pass True to OVRDBF, False to
DLTOVR
End-PI;

Dcl-S Command VarChar( 128 );

If State;
Command = ' OVRDBF ' + FileName + ' WAITRCD( 2 ) OVRSCOPE( *JOB )';
Else;
Command = ' DLTOVR ' + FileName + ' LVL( *JOB )';
EndIf;

CmdProc ( Command
: %Len( Command )
);

Return;

End-Proc Override;
=====================

regards,
Craig


On 27 June 2018 at 18:10, john erps <jacobus.erps@xxxxxxxxx> wrote:

Yes, i used OVRSCOPE(*JOB)


On Wed, Jun 27, 2018 at 7:08 PM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
wrote:

Have you tried OVRDBF OVRSCOPE(*JOB)? That's what I always do from
QCMDEXC.

HTH


-----Original Message-----
From: john erps [mailto:jacobus.erps@xxxxxxxxx]
Sent: Wednesday, June 27, 2018 10:31 AM
To: RPG programming on the IBM i (AS/400 and iSeries) <
rpg400-l@xxxxxxxxxxxx>
Subject: OVRDBF does not work

Hi,

I'm having a strange problem using OVRDBF.
I want to generate an FTP script.
Pretty standard, did this many times in the past.

To generate the script, i execute an OVRDBF using QCMDEXC from a **free
RPGLE program, to point to the correct file and member.

When debugging i don't see any overrides active (opnscope is *JOB).
However, when i put those overrides in a CLLE program and i call that
from
the RPG program i do see the overrides with DSPOVR.

However, even when the overrides seem to be active they are not respected
when i open the file in my RPG program, as if the overrides don't exist.

All this is pretty standard, so i'm lost why it doesn't work now.
I don't get eny error messages, because the script is written to
QGPL/QRPGLESRC member PROOF (first member). Which is logical because no
overrides seem to be active and the file is compiled against QRPGLESRC).

I tried different things, like submitting the job, using "system" API
instead of QCMDEXC, etc.

The only difference with the past is that i'm using **free RPG now.

Does anybody know about issues regarding executing an OVRDBF with QCMDEXC
(opnscope *JOB) from **free RPG? A Bug?

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

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