bdfu1m1o | Utilities |
Use this command to delete logical records (LRECs) from a subfile.
Requirements and Restrictions
Format
|
Additional Information
To overcome this problem, the TPFDF product maintains a sequence counter that is used by ZUDFM to ensure file integrity. The sequence counter is updated in the block header whenever the subfile is changed. In subsequent entries, the retained value is compared with the actual value to ensure that the database is updated in the correct sequence.
Heavily modified databases may become difficult to maintain with ZUDFM entries if the sequence count is constantly being changed. In this case, write your own utilities to locate the file, hold it, and change it.
Examples
In the following examples, the entries corresponding to BROCKER, JACOBS, and TAYLOR are deleted from the subfile that is currently linked. A ZUDFM OA* command is necessary before the entries are deleted to determine the correct sequence numbers for the LRECs that are to be deleted.
+--------------------------------------------------------------------------------+ |User: ZUDFM OA* | | | |System: UDFM0001I TPFDF LREC DISPLAY | | F.A. 000805C8 | | 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 S M I T H 00000000 00123456 | | 000007 001080 T A Y L O R000000 00123964 | | 000008 001080 T H A Y E R000000 00236348 | | 000009 001080 U N D E R H I L L 00894350 | +--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+ |User: ZUDFM OAX1/4/7 | | | |System: UDFM0001I TPFDF LREC DISPLAY | | F.A. 000805C8 | | 000001 001080 D U N N00 00000000 00328065 | | 000002 001080 I N O U Y E000000 00690794 | | 000003 001080 J O N E S 00000000 00789441 | | 000004 001080 S M I T H 00000000 00123456 | | 000005 001080 T H A Y E R000000 00236348 | | 000006 001080 U N D E R H I L L 00894350 | +--------------------------------------------------------------------------------+
In the following examples, the LRECs in the second half of the subfile that is currently linked are deleted. A ZUDFM OA* command is necessary before the entries are deleted to determine the correct sequence numbers for the LRECs that are to be deleted.
+--------------------------------------------------------------------------------+ |User: ZUDFM OA* | | | |System: UDFM0001I TPFDF LREC DISPLAY | | F.A. 000805C8 | | 000001 001080 D U N N00 00000000 00328065 | | 000002 001080 I N O U Y E000000 00690794 | | 000003 001080 J O N E S 00000000 00789441 | | 000004 001080 S M I T H 00000000 00123456 | | 000005 001080 T H A Y E R000000 00236348 | | 000006 001080 U N D E R H I L L 00894350 | +--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+ |User: ZUDFM OAX4/LAST | | | |System: UDFM0001I TPFDF LREC DISPLAY | | F.A. 000805C8 | | 000001 001080 D U N N00 00000000 00328065 | | 000002 001080 I N O U Y E000000 00690794 | | 000003 001080 J O N E S 00000000 00789441 | | 000004 001080 T H A Y E R000000 00236348 | +--------------------------------------------------------------------------------+
In the following examples, two different ranges of LRECs are deleted from the subfile that is currently linked. A ZUDFM OA* command is necessary before the entries are deleted to determine the correct sequence numbers of the LRECs that are to be deleted.
+--------------------------------------------------------------------------------+ |User: ZUDFM OA* | | | |System: UDFM0001I TPFDF LREC DISPLAY | | F.A. 000805B0 | | 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 S M I T H 00000000 00123456 | | 000007 001080 T A Y L O R000000 00123964 | | 000008 001080 T H A Y E R000000 00236348 | | 000009 001080 U N D E R H I L L 00894350 | +--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+ |User: ZUDFM OAX2-4/7-LAST | | | |System: UDFM0001I TPFDF LREC DISPLAY | | F.A. 000805B0 | | 000001 001080 B R O C K E R0000 00345874 | | 000002 001080 J O N E S 00000000 00789441 | | 000003 001080 S M I T H 00000000 00123456 | +--------------------------------------------------------------------------------+
In the following examples, all the LRECs are deleted in the subfile that is currently linked. A ZUDFM OA* command is used to display the LREC numbers that are going to be deleted.
+--------------------------------------------------------------------------------+ |User: ZUDFM OA* | | | |System: UDFM0001I TPFDF LREC DISPLAY | | F.A. 000805B0 | | 000001 001080 B R O C K E R0000 00345874 | | 000002 001080 J O N E S 00000000 00789441 | | 000003 001080 S M I T H 00000000 00123456 | +--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+ |User: ZUDFM OAXALL | | | |System: UDFM0001I TPFDF LREC DISPLAY | | F.A. 000805B0 | +--------------------------------------------------------------------------------+
References
See the following for more information about linking to a subfile: