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

XLFNP152.m

Go to the documentation of this file.
  1. XLFNP152 ;SFISC/MKO-POST INSTALL ROUTINE FOR PATCH XU*8*152 ;9:11 AM 26 Apr 2000
  1. ;;8.0;KERNEL;**152**;Jul 10, 1995
  1. ;This post-install routine for patch XU*8*152 loops through the
  1. ;entries in the New Person file, and if the SIGNATURE BLOCK
  1. ;PRINTED NAME field (#20.2) is null, updates it from the
  1. ;data in the corresponding entry in the Name Components file.
  1. N XUDA
  1. S XUDA=0
  1. F S XUDA=$O(^VA(200,XUDA)) Q:'XUDA D:$P($G(^(XUDA,20)),U,2)=""
  1. . N XUCOMP,XUFDA,XUMSG,XUNC,XUNC1,DIERR
  1. . S XUNC=$O(^VA(20,"BB",200,.01,XUDA_",",0)) Q:'XUNC
  1. . S XUNC1=$G(^VA(20,XUNC,1)) Q:XUNC1?."^"
  1. . S XUCOMP("FAMILY")=$P(XUNC1,U)
  1. . S XUCOMP("GIVEN")=$P(XUNC1,U,2)
  1. . S XUCOMP("MIDDLE")=$P(XUNC1,U,3)
  1. . S XUCOMP("SUFFIX")=$P(XUNC1,U,5)
  1. . S XUFDA(200,XUDA_",",20.2)=$$NAMEFMT^XLFNAME(.XUCOMP,"G")
  1. . D FILE^DIE("","XUFDA","XUMSG")
  1. Q