PDA

View Full Version : heute ist Montag: OVRDBF will nicht



Seiten : [1] 2

flieger_siggi
30-07-12, 09:13
Hallo Foriker,

heute ist Montag und ich bin mit Blindheit oder sowas ähnlichem geschlagen:eek::eek:

Ich mache
OVRDBF FILE(XXX) TOFILE(SMPAUKF/XAR00) MBR(*FIRST)

und dann

dspfd xxx

Und bekomme als Antwort
Datei xxx nicht gefunden

??????? wir sind hier zu dritt und verstehen das nicht. Die Datei SMPAUKF/XAR00 gibt es. ??????

Was läuft falsch? Da mag man ja gar nicht sagen, dass man bereits seit längerem auf der i5 arbeitet...peinlich

Siggi

S.Neinawaie
30-07-12, 09:18
Hallo!

Eventuell falschen Wert im Parameter OVRSCOPE ?


Override scope (OVRSCOPE)

Specifies the extent of influence (scope) of the override.
<dl><dt>*ACTGRPDFN</dt><dd>The scope of the override is determined by the activation group of the program that calls this command. When the activation group is the default activation group, the scope equals the call level of the calling program. When the activation group is not the default activation group, the scope equals the activation group of the calling program. </dd><dt>*CALLLVL</dt><dd>The scope of the override is determined by the current call level. All open operations done at a call level that is the same as or higher than the current call level are influenced by this override. </dd><dt>*JOB</dt><dd>The scope of the override is the job in which the override occurs. </dd></dl>Override with Data Base File (OVRDBF) (http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/cl/ovrdbf.htm#OVRDBF.OVRSCOPE)

LG,
Sam

Logic IT-Services
30-07-12, 09:19
Versuch doch mal:
OVRDBF FILE(XXX) TOFILE(XAR00/SMPAUKF) MBR(*FIRST)

;-)

Gruss

flieger_siggi
30-07-12, 09:20
Nein, habe alle Scopes durchprobiert. Das funktioniert einfach nicht. Im Job selbst wird der Overwrite sauber angezeigt.

flieger_siggi
30-07-12, 09:21
Versuch doch mal:
OVRDBF FILE(XXX) TOFILE(XAR00/SMPAUKF) MBR(*FIRST)

Danke, aber so schlimm ist es nun doch noch nicht:D

B.Hauser
30-07-12, 09:45
Ich weiß zwar nicht wofür Du den Override und anschließend die File-Description brauchst, aber DSPFD geht nicht auf Teil-Datei-Ebene, sondern nur für die *PF oder *LF.

Birgitta

flieger_siggi
30-07-12, 09:54
Hallo Birgitta,

danke, stimmt. Aber auch ein dsppfm funktioniert nicht.
Drüber gestolpert bin ich, weil ich zwei identische Dateien in meinem RPG Programm brauchte und ich das vor der Umwandlung mit einem OVRDBF lösen wollte. Und ich bin mir (eigentlich) sicher, dass das so funktionieren müsste.

Siggi

USDAVIS
30-07-12, 10:17
Hallo,

einige Commands igniorieren OVRDBFs

siehe:

Effect of overrides on some commands: Some commands ignore overrides entirely, while others allow overrides only for certain parameters.
The following commonly used commands ignore overrides entirely:



ADDLFM
ADDPFM
ALCOBJ
APYJRNCHG
CHGOBJOWN
CHGPTR
CHGSBSD
CHGXXXF (all change file commands)
CLRPFM
CLRSAVF
CPYIGCTBL
CRTDUPOBJ
CRTAUTHLR
CRTSBSD
CRTTAPF
DLCOBJ
DLTF
DLTAUTHLR
DSPDBR
DSPFD
DSPFFD
DSPJRN
EDTOBJAUT
EDTDLOAUT
ENDJRNPF
GRTOBJAUT
INZPFM
MOVOBJ
RGZPFM
RMVJRNCHG
RMVM
RNMOBJ
RTVMBRD
RVKOBJAUT
SBMDBJOB
SIGNOFF
STRDBRDR
STRJRNPF



Note: Save operations and restore operations ignore all file overrides that are related to the respective media (tape, diskette, save file).

The system does not apply overrides to any system files that are opened as part of an end-of-routing step or end-of-job processing. For example, you cannot specify overrides for the job log file. In some cases, when you need to override something in a system file, you might be able to change it through a command other than an override command. For example, to change the output queue for a job log, the output queue can be changed before sign-off using the OUTQ parameter on the Change Job (CHGJOB) command to specify the name of the output queue for the job. If the printer file for the job log contains the value *JOB for the output queue, the output queue is the one that is specified for the job.

The following commands allow overrides for the SRCFILE and SRCMBR parameters only:



CRTCMD
CRTICFF
CRTDSPF
CRTLF
CRTXXXPGM
CRTPRTF
CRTSRCPF
CRTTBL
CRTPF
All create program commands. These commands also use overrides to determine which file will be opened by a compiled program.



The following command allows overrides for the TOFILE, MBR, SEQONLY, LVLCHK, and INHWRT parameters:

OPNQRYF

The following commands allow overrides, but do not allow changing the MBR to *ALL:



CPYFRMPCD
CPYTOPCD



The following commands do not allow overrides to affect the display files that they use. Overrides to the printer files they use should not change the file type or the file name. Some restrictions are placed on changes that can be made to printer files used by these commands, but the system cannot guarantee that all combinations of possible specifications will produce an acceptable report.
<dl><dt class="dlterm">DMPOBJ and DMPSYSOBJ</dt><dd>(In addition to the preceding limitations, these commands do not allow overrides to the file they dump.)</dd><dt class="dlterm">DSPXXXXXX</dt><dd>(All display commands. The display commands that display information about a file do not allow overrides to that file.)</dd><dt class="dlterm">DSPIGCDCT</dt><dd>
</dd><dt class="dlterm">EDTIGCDCT</dt><dd>
</dd><dt class="dlterm">GO</dt><dd>(You can override message files.)</dd><dt class="dlterm">PRTXXXXXX</dt><dd>(All print commands.)</dd><dt class="dlterm">QRYDTA</dt><dd>
</dd><dt class="dlterm">TRCXXX</dt><dd>(All trace commands.)</dd><dt class="dlterm">WRKXXXXXX</dt><dd>(All work-with commands.)</dd></dl>



So wie ich das verstehe, gehören auch die DSP*-befehle dazu.

Im RPG-Porgramm wird Dein OVRDBF aber funktionieren.

Gruss Ulli

BenderD
30-07-12, 10:44
Danke, aber so schlimm ist es nun doch noch nicht:D

... schlimmer als das: works as designed!!!

FTFM:
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/dm/rbal3.pdf page 85 f.

D*B

flieger_siggi
30-07-12, 10:48
Danke Ulli,

schöne Übersicht.

Genau dort ist aber der DSPPFM nicht aufgeführt, deshalb sollte er eigentlich auch funktionieren ?!?!?

Ich will den OVRDBF nutzen, um vor einer Programmumwandlung nicht physisch vorhandene Dateinamen auf eine physisch vorhandene Datei umzuleiten.

Gruß
Siggi