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

XTRUTL1.m

Go to the documentation of this file.
  1. XTRUTL1 ;ISCSF/RWF - Developer Routine Utilities Build & Install Files ;2/14/07 15:50
  1. ;;7.3;TOOLKIT;**20,66,132**;Apr 25, 1995;Build 14
  1. ; Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. Q ;No entry from the top.
  1. BUILD() ;This will select an entry in the BUILD file.
  1. N BLDA,DIC,X,Y
  1. S DIC="^XPD(9.6,",DIC(0)="AEMQZ" D ^DIC
  1. Q Y
  1. INSTALL() ;This will select an entry in the INSTALL file.
  1. N BLDA,DIC,X,Y
  1. S DIC="^XPD(9.7,",DIC(0)="AEMQZ",DIC("S")="I '$P(^(0),U,9),$D(^XTMP(""XPDI"",Y))"
  1. D ^DIC
  1. Q Y
  1. RTN(IEN,FILE) ;This will build a list of routines from the BUILD or INSTALL (FILE) file.
  1. Q:'$G(IEN) S:'$G(FILE) FILE=9.6
  1. N X,IX,R S U="^"
  1. I FILE=9.6 D Q
  1. . F IX=0:0 S IX=$O(^XPD(9.6,IEN,"KRN",9.8,"NM",IX)) Q:IX'>0 S X=^(IX,0) S:'$P(X,U,3) ^UTILITY($J,$P(X,U))=""
  1. . F IX="INI","INIT","PRE" S X=$G(^XPD(9.6,IEN,IX)) I X]"" S R=$P($S(X[U:$P(X,U,2),1:X),"("),^UTILITY($J,R)=""
  1. . Q
  1. ;get routines from Transport Global and merge into ^UTILITY
  1. I FILE=9.7 D Q
  1. . S X=""
  1. . F S X=$O(^XTMP("XPDI",IEN,"RTN",X)) Q:X="" S R=^(X),^UTILITY($J,X)="" D
  1. .. M ^UTILITY($J,1,X,0)=^XTMP("XPDI",IEN,"RTN",X)
  1. .. S ^UTILITY($J,1,X,"RSUM")=$P(R,"^",3),^UTILITY($J,1,X,0,0)=$O(^UTILITY($J,1,X,0,""),-1) ;set RSUM and line count
  1. . Q
  1. Q
  1. ;
  1. VER(X) ;returns version number from Build file, X=build name
  1. Q:X["*" $P(X,"*",2)
  1. Q $P(X," ",$L(X," "))
  1. ;
  1. PATCH(X) ;returns the patch number from the Build file, X=build name
  1. Q $S(X["*":$P(X,"*",3),1:"")
  1. ;
  1. PLCP(PL,N) ;Patch list contains patch number
  1. N PAT S PAT="PL?.E1P1"""_N_"""1P.E"
  1. Q @PAT