Step 1 - Identify files to delete or preserve (include associated templates and forms). After deletion, remove empty globals. |
Step 2 - Identify routines to delete or preserve. After deletion, remove ROUTINE file entry. |
Step 3 - Remove remote procedures that refer to non-existent routines. |
Step 4 - Remove options that refer to non-existent routines. Then remove references to non-existent options, etc. (recursively). |
Step 5 - Repeat step 4 for options that refer to non-existent files. |
Step 6 - Remove unwanted protocols by application namespace.. |
Step 7 - Identify parameter definitions to delete or preserve. Remove unwanted Kernel parameters and parameter definitions. |
Step 8 - Miscellaneous cleanup. Zero-out the AUDIT file. |
K0715>ZL
SISBNP D EN This procedure will delete many files and routines and other components in a way that cannot be undone. Before continuing make sure that this is the intended namespace for reduction, and that a backup exists. Do you wish to continue? NO// YES Deleting files ... >>File# 2 (PATIENT) Deleting the DATA DICTIONARY... Deleting the INPUT TEMPLATES...................... Deleting the PRINT TEMPLATES.............. Deleting the SORT TEMPLATES.......... Deleting the FORMS... Deleting the BLOCKS... >>Removing File# 2 from FILE file (if not already removed) >>File# 7 (PROVIDER CLASS) Deleting the DATA DICTIONARY... Deleting the INPUT TEMPLATES... Deleting the PRINT TEMPLATES... Deleting the SORT TEMPLATES... Deleting the FORMS... Deleting the BLOCKS... >>Removing File# 7 from FILE file (if not already removed) . . . . . . >>File# 9999999.41 (IMMUNIZATION LOT) Deleting the DATA DICTIONARY... Deleting the INPUT TEMPLATES... Deleting the PRINT TEMPLATES... Deleting the SORT TEMPLATES... Deleting the FORMS... Deleting the BLOCKS... >>Removing File# 9999999.41 from FILE file (if not already removed) >>File# 9999999.64 (HEALTH FACTORS) Deleting the DATA DICTIONARY... Deleting the INPUT TEMPLATES.... Deleting the PRINT TEMPLATES..... Deleting the SORT TEMPLATES...... Deleting the FORMS... Deleting the BLOCKS... >>Removing File# 9999999.64 from FILE file (if not already removed) Removing empty globals ...SORRY, HOLD ON... Global cleanup complete. Deleting routines ... ...HMMM, HOLD ON... 27467 routines were deleted. Deleting remote procedures ... 3098 REMOTE PROCEDURE file entries deleted. The OPTION file will be cleaned up iteratively ... 6264 deprecated RUN ROUTINE options deleted. 6889 deprecated MENU items removed. 652 empty MENU options deleted. 1152 unresolved ENTRY or EXIT actions. Corresponding options deleted. 398 references to nonexistent files - Corresponding options deleted. 1646 deprecated MENU items removed. 394 empty MENU options deleted. 3038 deprecated RPC broker items removed. 53 empty RPC broker options deleted. . . . . . . 0 deprecated RUN ROUTINE options deleted. 0 deprecated MENU items removed. 0 empty MENU options deleted. 0 unresolved ENTRY or EXIT actions. 0 references to nonexistent files 0 deprecated MENU items removed. 0 empty MENU options deleted. 0 deprecated RPC broker items removed. 0 empty RPC broker options deleted. OPTION file reduction complete. Removing protocols ... 3977 PROTOCOL file entries deleted. Removing deprecated Kernel parameters ... 1635 PARAMETERS file entries deleted. Removing parameter definitions ... 820 PARAMETER DEFINITION file entries deleted. Final cleanup - Clearing audit data ... AUDIT file has been cleared. Removing ROUTINE file entries that refer to non-existent routines ... ...SORRY, HOLD ON... 24712 ROUTINE file entries deleted. Database reduction is complete. |
Kernel
by Subtraction - Caché meta-steps
1. Create a stub database for Kernel - Called KERNEL in notes below. 2. Dismount FOIA and KERNEL databases. 3. Copy FOIA database to KERNEL (Original size is multi-Gigabyte). 4. Mount both databases. 5. Load or copy routines ^SISBNP and ^SISZWR to KERNEL namespace. 6. Run the reduction in the Kernel namespace - ZL SISBNP D EN 7. Create target HFS folders .\r and .\g (for export to GT.M). 8. Save all routines. K0715>D ^%RO Routine output (please use %ROMF for object code output) Routine(s): %DT* Routine(s): %RCR Routine(s): %Z* Routine(s): * Routine(s): Description: Kernel by subtraction (AKA Reduced VistA) <date> 9. Export globals in GT.M format - D FOIA^SISZWR("<path>\Kmmyy\g",$C(10),1) Shrink
Database
10. Create sub-folder .\Cache_Global_Export. 11. Export globals in block format using System Management Portal. Export finished successfully (less than 1 second) [If Cache displays names of globals that have been deleted, ignore.] 12. Dismount KERNEL. 13. Create SCRATCH 1 MB database (not mounted) and copy to KERNEL. 14. Mount KERNEL. 15. Use System Management Portal to import globals. Import runs in the background but completes in a second or two. 16. Load routines from routine save set Kmmyy.RO. 17. Run global directory, then spot-check Fileman and Kernel. |