-
Versuch doch mal:
OVRDBF FILE(XXX) TOFILE(XAR00/SMPAUKF) MBR(*FIRST)
;-)
Gruss
-
 Zitat von Logic IT-Services
Versuch doch mal:
OVRDBF FILE(XXX) TOFILE(XAR00/SMPAUKF) MBR(*FIRST)
Danke, aber so schlimm ist es nun doch noch nicht
-
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
-
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
-
Einige Commands ignorieren Overrides ganz oder teilweise
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:
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.
- DMPOBJ and DMPSYSOBJ
- (In addition to the preceding limitations, these commands do not allow overrides to the file they dump.)
- DSPXXXXXX
- (All display commands. The display commands that display information about a file do not allow overrides to that file.)
- DSPIGCDCT
- EDTIGCDCT
- GO
- (You can override message files.)
- PRTXXXXXX
- (All print commands.)
- QRYDTA
- TRCXXX
- (All trace commands.)
- WRKXXXXXX
- (All work-with commands.)
So wie ich das verstehe, gehören auch die DSP*-befehle dazu.
Im RPG-Porgramm wird Dein OVRDBF aber funktionieren.
Gruss Ulli
-
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
-
 Zitat von flieger_siggi
Ich will den OVRDBF nutzen, um vor einer Programmumwandlung nicht physisch vorhandene Dateinamen auf eine physisch vorhandene Datei umzuleiten.
Auf welchem Release seid Ihr?
Sofern Ihr auf 6.1. oder höher seid, könnt Ihr Euch den Override vor dem Compilieren und auch zu Laufzeit sparen!
1. Den Override zu Laufzeit kann man sich schon seit Release V5R1M0 sparen, in dem man die Schlüssel-Worte EXTFILE und/oder EXTMBR in den F-Bestimmungen verwendet:
EXTFILE
EXTMBR
2. Seit Release 6.1 kann man das Schlüsse-Wort EXTDESC in den F-Bestimmungen angeben, der die gewünschte Dateibeschreibung zur Compile-Zeit heranzieht. Zur Laufzeit wird auf die in EXTDESCT angegebene Datei nur dann zugegriffen, wenn in Schlüssel-Wort EXTFILE der Sonderwert *EXTDESC angegeben wurde.
EXTDESC
Birgitta
-
Hallo Birgitta,
gute Antwort. Das hab ich natürlich sofort umgesetzt! Alles wird gut...in diesem Fall.
Trotzdem bleibt die Frage ungelöst: wieso funktioniert der OVRDBF hier nicht sauber???
Gruß
Siggi
-
Nun,
der Compiler suchte ein Objekt, das nicht da ist. Der Override zeigte (nur) auf eine Quelle, aus der es hätte erstellt werden können
-
 Zitat von flieger_siggi
Danke, aber so schlimm ist es nun doch noch nicht 
... schlimmer als das: works as designed!!!
FTFM:
http://publib.boulder.ibm.com/infoce...c/dm/rbal3.pdf page 85 f.
D*B
-
 Zitat von BenderD
Tut mir echt leid, aber die Antwort verstehe ich leider nicht (Montag??).
Meine Antwort bezog sich auf den Vorschlag, Dateinamen und Bibliotheksnamen im Befehl zu vertauschen.
lieben Gruß
Siggi
Similar Threads
-
By cicero22 in forum NEWSboard Programmierung
Antworten: 15
Letzter Beitrag: 30-10-06, 12:56
-
By MatthiasK in forum IBM i Hauptforum
Antworten: 5
Letzter Beitrag: 08-02-06, 12:51
-
By hansr in forum NEWSboard Programmierung
Antworten: 2
Letzter Beitrag: 11-05-05, 12:50
-
By kaym in forum IBM i Hauptforum
Antworten: 5
Letzter Beitrag: 07-07-02, 13:49
-
By Amalie in forum IBM i Hauptforum
Antworten: 1
Letzter Beitrag: 23-11-01, 08:37
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks