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

DIPR103.m

Go to the documentation of this file.
  1. DIPR103 ;SFISC/SO-PRE INSTALL ROUTINE FOR PATCH DI*22.0*103 ;1:18 PM 28 Feb 2002 [ 12/09/2003 3:15 PM ]
  1. ;;22.0;VA FileMan;**103,1002**;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;Check for field whose type are WP and missing the 'W'
  1. ;whose $P#2 was has been corrupted and report them out for maunal
  1. ;correction.
  1. S X="Check for corrupted Type: Word Processing."
  1. D MES^XPDUTL(X)
  1. S X="Checking..."
  1. D MES^XPDUTL(X)
  1. ;
  1. S ; Start testing
  1. N DDFILE,NOERR
  1. S NOERR=0
  1. S DDFILE=1.99999
  1. F S DDFILE=$O(^DD(DDFILE)) Q:'DDFILE D
  1. . N DDFIELD
  1. . S DDFIELD=0
  1. . F S DDFIELD=$O(^DD(DDFILE,DDFIELD)) Q:'DDFIELD D
  1. . . I '$D(^DD(DDFILE,0,"UP")) Q ;Not a sub-file
  1. . . I DDFIELD'=.01 Q ;Not a field we are interested in
  1. . . N NODE
  1. . . S NODE=$G(^DD(DDFILE,DDFIELD,0))
  1. . . I $P(NODE,U,2)]"" Q ;No corruption here
  1. . . ;Piece #2 of the DD node is Null
  1. . . S NOERR=1
  1. . . N X
  1. . . S X=">>Subfile: "_DDFILE
  1. . . D MES^XPDUTL(X)
  1. . . S X=" Field: #"_DDFIELD_"("_$P(NODE,U)_")"
  1. . . D MES^XPDUTL(X)
  1. . . S X=" Node="_NODE
  1. . . D MES^XPDUTL(X)
  1. I 'NOERR S X="No problems found" D MES^XPDUTL(X)
  1. Q