[NEWSboard IBMi Forum]

Hybrid View

  1. #1
    Registriert seit
    Mar 2012
    Beiträge
    71
    Versuch doch mal:
    OVRDBF FILE(XXX) TOFILE(XAR00/SMPAUKF) MBR(*FIRST)

    ;-)

    Gruss

  2. #2
    Registriert seit
    Jan 2011
    Beiträge
    38
    Zitat Zitat von Logic IT-Services Beitrag anzeigen
    Versuch doch mal:
    OVRDBF FILE(XXX) TOFILE(XAR00/SMPAUKF) MBR(*FIRST)
    Danke, aber so schlimm ist es nun doch noch nicht

  3. #3
    Registriert seit
    Aug 2001
    Beiträge
    2.928
    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
    Birgitta Hauser

    Anwendungsmodernisierung, Beratung, Schulungen, Programmierung im Bereich RPG, SQL und Datenbank
    IBM Champion seit 2020 - 5. Jahr in Folge
    Birgitta Hauser - Modernization - Education - Consulting on IBM i

  4. #4
    Registriert seit
    Jan 2011
    Beiträge
    38
    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

  5. #5
    Registriert seit
    May 2007
    Beiträge
    82

    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:


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

  6. #6
    Registriert seit
    Jan 2011
    Beiträge
    38
    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

  7. #7
    Registriert seit
    Aug 2001
    Beiträge
    2.928
    Zitat Zitat von flieger_siggi Beitrag anzeigen
    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
    Birgitta Hauser

    Anwendungsmodernisierung, Beratung, Schulungen, Programmierung im Bereich RPG, SQL und Datenbank
    IBM Champion seit 2020 - 5. Jahr in Folge
    Birgitta Hauser - Modernization - Education - Consulting on IBM i

  8. #8
    Registriert seit
    Jan 2011
    Beiträge
    38
    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

  9. #9
    Registriert seit
    Jan 2003
    Beiträge
    759
    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

  10. #10
    Registriert seit
    Mar 2002
    Beiträge
    5.365
    Zitat Zitat von flieger_siggi Beitrag anzeigen
    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
    AS400 Freeware
    http://www.bender-dv.de
    Mit embedded SQL in RPG auf Datenbanken von ADABAS bis XBASE zugreifen
    http://sourceforge.net/projects/appserver4rpg/

  11. #11
    Registriert seit
    Jan 2011
    Beiträge
    38
    Zitat Zitat von BenderD Beitrag anzeigen
    ... schlimmer als das: works as designed!!!

    FTFM:
    http://publib.boulder.ibm.com/infoce...c/dm/rbal3.pdf page 85 f.

    D*B
    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

  1. Arbeitet man heute noch mit Pointern?
    By cicero22 in forum NEWSboard Programmierung
    Antworten: 15
    Letzter Beitrag: 30-10-06, 12:56
  2. Problem mit OVRDBF?
    By MatthiasK in forum IBM i Hauptforum
    Antworten: 5
    Letzter Beitrag: 08-02-06, 12:51
  3. OVRDBF verursacht Fehler RNX1011 in RPG
    By hansr in forum NEWSboard Programmierung
    Antworten: 2
    Letzter Beitrag: 11-05-05, 12:50
  4. SQL-Cobol und OVRDBF
    By kaym in forum IBM i Hauptforum
    Antworten: 5
    Letzter Beitrag: 07-07-02, 13:49
  5. OVRDBF in CL-PGM abfragen
    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
  •