[NEWSboard IBMi Forum]
  1. #1
    Registriert seit
    Aug 2006
    Beiträge
    2.072

    RGZPFM unter V6R1

    Hallo *all,
    ich habe mal eine Verständnissfrage zum rgzpfm.

    Im Handbuch steht
    Code:
    Allow cancel (ALWCANCEL)
    
      Specifies whether to allow the reorganize to be canceled.
      *NOThe reorganize cannot be canceled. If the job ends and the reorganize of the data has not finished, any changes up to the point of the failure are discarded.   If *NO is specified, KEYFILE(*RPLDLTRCD) and RDBACCPTH(*NO) must not be specified, and LOCK(*EXCL) must also be specified.
     *YESThe reorganize can be canceled. If a reorganize is canceled before it is finished, a subsequent reorganize with the same parameters will typically continue the reorganize from where it ended. If the number of changes that have occurred since the reorganize was canceled is too large, the reorganize may be restarted rather than continued.   
    
      
    
    Lock state (LOCK)  Specifies the lock to acquire on the physical file member. The lock state will determine how much concurrent access is allowed by other jobs during the reorganize.
      *EXCLAn exclusive lock is acquired. No concurrent access to the physical file member is allowed from another job.*EXCLRDAn exclusive allow read lock is acquired. Concurrent read access to the physical file member is allowed from another job.   If *EXCLRD is specified, ALWCANCEL(*YES) must also be specified.
     *SHRUPD
    A shared update lock is acquired. Concurrent update, delete, and insert access to the physical file member is allowed from another job.   If *SHRUPD is chosen, the resulting order of the rows may not exactly match what was requested on the KEYFILE keyword. The rows will be reorganized to closely match the specified order, but concurrent update, delete, and insert operations will cause some rows to not be reorganized. If the rows must exactly match the arrival sequence (*NONE) or a keyed file sequence, do not use *SHRUPD.
      If *SHRUPD is specified, ALWCANCEL(*YES) must also be specified.
    Wie kann ich den Job beenden? Nur über wrkactjob und mit 41 oder gibt es da einen anderen Weg?

    Zweite Frage. Versteh ich es richtig das ich mit *SHRUPD die Möglichkeit habe den Reorg zu machen und weiterhin Jobs aktiv laufen zu lassen? Alternativ muß ich ja alle Benutzer für die Zeit rauswerfen.

    GG 4506

  2. #2
    Registriert seit
    Feb 2001
    Beiträge
    20.207
    Genau.
    Alternativ solltest du besser REUSEDLT(*YES) verwenden, dann kannst du den Reorg gleich sparen, denn i.d.R. greift man nach Key und nicht nach Eingangsfolge zu.
    Dienstleistungen? Die gibt es hier: http://www.fuerchau.de
    Das Excel-AddIn: https://www.ftsolutions.de/index.php/downloads
    BI? Da war doch noch was: http://www.ftsolutions.de

  3. #3
    Registriert seit
    Nov 2003
    Beiträge
    2.304
    Job beenden geht ganz normal mit ENDJOB, ENDSBS oder ENDSYS.

    Vorsicht:
    Bei ALWCANCEL() werden Datensätze entfernt und wieder eingefügt.
    Da kann es auch mal sein, daß ein Datensatz während er gerade verschoben wird nicht gefunden werden kann.

    RGZPFM Frequently Asked Questions

  4. #4
    Registriert seit
    Aug 2006
    Beiträge
    2.072
    Ich liebe es wenn die Informationen so tröpchenweise kommen.

    01 - Die Datei ist im Journal nicht enthalten. Für ALWCANCEL(*YES) ist die
    Aufzeichnung erforderlich.

    GG 4505

Similar Threads

  1. REST Web-Service unter V6R1
    By Flappes in forum NEWSboard Programmierung
    Antworten: 2
    Letzter Beitrag: 22-05-17, 12:22
  2. RRN trotz RGZPFM merken
    By dholtmann in forum NEWSboard Programmierung
    Antworten: 42
    Letzter Beitrag: 12-05-17, 13:51
  3. SQL Abfrage läuft unter V7R2 langsamer als unter V6R1
    By balu40 in forum IBM i Hauptforum
    Antworten: 3
    Letzter Beitrag: 04-02-16, 19:00
  4. RCLSTG,RGZPFM und co.............
    By bettina_martin in forum NEWSboard SAP
    Antworten: 27
    Letzter Beitrag: 03-01-07, 18:58
  5. RCLSTG,RGZPFM und co.............
    By bettina_martin in forum IBM i Hauptforum
    Antworten: 27
    Letzter Beitrag: 03-01-07, 18:58

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • You may not post attachments
  • You may not edit your posts
  •