Question

When do I have to reorganize and how should this be done ?

Antwort

In general, the space of deleted records is being reused for all files = REUSEDLT(*YES).

Command PRTSPC SUMMERY(*ONLY) can be used to display disk utilization.

 back to top

The summary shows the number of deleted records and the number of records in files logging data PCOUT and logging data long PCOUT2.

If the log files PCOUT and PCOUT2 use more than 100 MB, actions should be taken. These files should not be larger than 500 MB.

If deleted records exist, this disk space can be reclaimed via RGZPFM. Command RGZPCS is provided for that within PCSACC/400.

Execution of this command should always be performed together with command RGZMASTER.

Reorganization during production with active exit programs would lead to lock problems and therefore is not possible.

Command RGZMASTER should either be performed via QSTRUP-Programm or in a CL program directly followed by a PWRDWNSYS *IMMED RESTART(*YES).

If RGZMASTER is being run in program QSTRUP, TCP/IP should not be started automatically.

CHGIPLA can be used to prevent starting of TCP/IP automatically.

 back to top

Commands RGZMASTER and STRSBS QUSRWRK following STRSBS QSERVER will be added into Programm QSTRUP. Then STRTCP.

Command RGZPCS is being changed by program CHGPCS and option 50.

 back to top

 back to top

Command RGZPCS and action code will be changed.

Additionally, the last execution of the command will be displayed.

All parameters of command RGZPCS can also be executed in by other commands in parallel to the active exit programs.

CLRPFM(*YES/*NO) CLRFRM(00 - 99) TYPE(*ALL, *ALLOWED, *REJECTED) with command CLRPCSLOG.

CHKUSRPRF(*YES/*NO) with command CHKUSRPRF

Action
*RUN RGZPCS is being executed
*BYPASS No execution of RGZPCS
*NEXTRUN No execution of RGZPCS, action code will be changed to *RUN.

The action code can also be changed via command RGZSET.

 back to top

Example
Reorganization shall be performed after IPL. The action field is set to *RUN.

The system will be set to restricted mode daily by a CL Programm in order to perform save procedures. In the following restart of the system by STRSBS QCTL or QBASE no reorganization shall be performed.

Command RGZSET *NEXTRUN will be added to the CL program.

In Programm QSTRUP command RGZMASTER will be called. Based on action code *NEXTRUN, no reorganization will be performed, only the action code will be changed to *RUN.

If space is occupied by active records, the records should be converted into access authorities during the learning phase. During production, rejected accesses should be removed every 30 days.

Deletion is possible

1. During reorganization via command

RGZPCS CLRPFM(*NO) CLRFROM(30) TYPE(*REJECTED)

2. During active production via command

CLRPCSLOG CLRPFM(*NO) CLRFROM(30) TYPE(*REJECTED)

With option 14, deletion of log entries, command CLRPCSLOG will be added to the job scheduler.

 back to top