ZUDFM OAP-pack a subfile
Use this command to remove unused space in a subfile or to build or rebuild a B+Tree index.
Requirements and restrictions
- Before using this command, you must first link to the file that you want to access.
- Any ZUDFM commands that affect a file (for example, packing) hold the file for the duration of the command. The file is held at whatever level (index level) is appropriate to the command by holding the prime block.
- The TPF system must have get file storage (GFS) pools enabled before you can use this command. Pools are not enabled until the system is cycled to CRAS state or above.
Format
Note: You can use either the ZUDFM OAP or the ZUDFM PACK
command.
Additional information
- Blocks are filled to the packing limit percentage specified in the database definition (DBDEF) macro (parameter PLI) of the file.
- You can use this command to pack all the logical records (LRECs) in a subfile to which you are
currently linked. For B+Tree data files, the ZUDFM OAP command also builds or updates the
B+Tree index files.
By default, the TPFDF product packs a subfile when it closes it if any LRECs have been deleted and if the packing density of one or more blocks is below a limit set by the database administrator in the DBDEF macro.
Note: TPFDF only packs B+Tree data files when there are no B+Tree index nodes and there are forward chains in the data file. - You can use the ZUDFM OAP command to pack LRECs into the minimum number of blocks regardless of the current packing density in the subfile and whether LRECs have been deleted or not.
- Because packing large database structures requires a significant amount of system resources, commit scope processing is not available when you use this command, regardless of what the DBDEF macro has set as the default.
Examples
The following example packs the file that is currently linked. Because the file is a B+Tree file, the B+Tree index is also re-created.
User: ZUDFM OAP
System: UDFM0001I TPFDF LREC DISPLAY F.A. 00000000F404F868 000001 001080 B R O C K E R0000 00345874 000002 001080 D U N N00 00000000 00328065 000003 001080 I N O U Y E000000 00690794 000004 001080 J A C O B S000000 00669412 000005 001080 J O N E S 00000000 00789441 000006 001080 T A Y L O R000000 00123964 000007 001080 T H A Y E R000000 00236348 000008 001080 U N D E R H I L L 00894350
