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

XBLZRO.m

Go to the documentation of this file.
  1. XBLZRO ; IHS/ADC/GTH - LISTS 0TH NODES ; [ 02/07/97 3:02 PM ]
  1. ;;3.0;IHS/VA UTILITIES;;FEB 07, 1997
  1. ;
  1. ; This routine lists the 0th nodes of FileMan files.
  1. ;
  1. START ;
  1. NEW QFLG
  1. S QFLG=0
  1. W !,"^XBLZRO - This routine lists the 0th nodes of FileMan files."
  1. D ^XBDSET
  1. Q:'$D(^UTILITY("XBDSET",$J))
  1. D DEVICE
  1. I QFLG KILL QFLG Q
  1. EN ;PEP - List 0th node of pre-selected list of FileMan files.
  1. ; IOF,IOSL must be set and U IO if appropriate.
  1. I $D(IOF)#2,$D(IOSL)#2
  1. E Q
  1. NEW F,G,N,X,QFLG
  1. S QFLG=0
  1. D HEADER
  1. S F=0
  1. F S F=$O(^UTILITY("XBDSET",$J,F)) Q:F'=+F I $D(^DIC(F,0,"GL")) S G=^("GL") D LIST Q:QFLG
  1. D ^%ZISC
  1. Q
  1. ;
  1. LIST ;
  1. S X=$L(G),X=$E(G,1,X-1)_$S($E(G,X)=",":",0)",1:"(0)")
  1. S N="<DOES NOT EXIST>"
  1. S:$D(@X) N=^(0)
  1. D:$Y>(IOSL-3) PAGE
  1. Q:QFLG
  1. W F,?15,X,?35,N,!
  1. Q
  1. ;
  1. PAGE ; PAGE BREAK
  1. NEW F,G,N,X
  1. I IO=IO(0),$E(IOST,1,2)="C-" S Y=$$DIR^XBDIR("E") S:$D(DIRUT)!($D(DUOUT)) QFLG=1 KILL DIRUT,DUOUT
  1. Q:QFLG
  1. D HEADER
  1. Q
  1. ;
  1. NEW TITLE,TM,HR,MIN,TME,UCI
  1. W:$D(IOF) @IOF
  1. S TITLE="FILE 0TH NODE LIST",TM=$P($H,",",2),HR=TM\3600,MIN=TM#3600\60
  1. S:MIN<10 MIN="0"_MIN
  1. S TME=HR_":"_MIN
  1. I '$D(DT) S %DT="",X="T" D ^%DT S DT=Y
  1. S Y=DT
  1. X ^DD("DD")
  1. W Y,"@",TME,?30,TITLE
  1. X ^%ZOSF("UCI")
  1. S UCI="UCI: "_$P(Y,",",1)
  1. W ?65,UCI,!,"FILE",?15,"GLOBAL",?35,"0TH NODE",!!
  1. Q
  1. ;
  1. DEVICE ; GET DEVICE (QUEUEING ALLOWED)
  1. W !
  1. S %ZIS="Q"
  1. D ^%ZIS
  1. I POP S QFLG=1 KILL POP Q
  1. I $D(IO("Q")) D S QFLG=1 Q
  1. . S ZTRTN="EN^XBLZRO",ZTIO=ION,ZTDESC="List 0th nodes",ZTSAVE("^UTILITY(""XBDSET"",$J,")=""
  1. . D ^%ZTLOAD
  1. . W !!,$S($D(ZTSK):"Request queued!",1:"Request cancelled!")
  1. . D ^%ZISC
  1. . KILL ZTSK,IO("Q")
  1. . KILL ZTIO ; ^%ZTLOAD kills other ZT* variables, but not this one
  1. . Q
  1. U IO
  1. Q
  1. ;