Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DG53688B

DG53688B.m

Go to the documentation of this file.
DG53688B ;ALB/TDM - Patch DG*5.3*688 Pre-Install Utility Routine ; 8/18/08 10:46am
 ;;5.3;PIMS;**1016**;JUN 30, 2012;Build 20
 ;
 Q
START ;Entry point for field definition cleanup
 N X,DGFIL,DGFLD,MSG
 ;
 D BMES^XPDUTL(">> Starting field definition cleanup...")
 S DGFIL=2 D HEADER F DGFLD=.119,.32102,.322013 D DELETE(DGFIL,DGFLD)
 S DGFIL=408.22 D HEADER S DGFLD=.11 D DELETE(DGFIL,DGFLD)
 D BMES^XPDUTL(">> Field definition cleanup completed")
 Q
 ;
 S MSG=">> "_$P($G(^DIC(DGFIL,0)),U,1)_" File (#"_DGFIL_")"
 D BMES^XPDUTL(MSG)
 Q
 ;
DELETE(DGFIL,DGFLD) ;The procedure will delete the field definition from the Data Dictionary
 ;    DGFIL  - DD File Number (Required)
 ;    DGFLD  - DD Field Number (Required)
 ;
 Q:($G(DGFIL)=""!$G(DGFLD)="")
 N DIK,DA,DGFLDNM
 ;
 S DIK="^DD("_DGFIL_","
 S DA=DGFLD,DA(1)=DGFIL
 S DGFLDNM=$P($G(^DD(DGFIL,DGFLD,0)),U,1)
 S MSG="   Updating the '"_DGFLDNM_"' field (#"_DGFLD_") definition"
 D MES^XPDUTL(MSG)
 D ^DIK
 Q