Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/KERNEL-XU-A4A7-USC-XG-XLF-XNOA-XPD-XQ-XVIR-ZI-ZOSF-ZOSV-ZT-ZU-%Z-XIP--XQAB--XUC--XUR--ZIN--ZTED/ZOSVONT.m

    r628 r636  
    1 %ZOSV ;SFISC/AC - $View commands for Open M for NT.  ;03/03/2008
    2  ;;8.0;KERNEL;**34,94,107,118,136,215,293,284,385,425,440**;Jul 10, 1995;Build 13
    3  ;Per VHA Directive 2004-038, this routine should not be modified
     1%ZOSV ;SFISC/AC - $View commands for Open M for NT.  ;4/26/07  09:39
     2 ;;8.0;KERNEL;**34,94,107,118,136,215,293,284,385,425**;Jul 10, 1995;Build 18
    43ACTJ() ;# Active jobs
    54 N %,V,Y S V=$$VERSION()
     
    1413 ;maxpid: from %SS
    1514 I V<5 D  Q AVJ
    16  . N PORT,T,X,MAXPID,LMFLIM
    17  . S $ET="",MAXPID=$V($ZU(40,2,118),-2,4)
    18  . X "S ZOSV=$ZU(5),%=$ZU(5,""%SYS"") S LMFLIM=$$inquire^LMFCLI,%=$ZU(5,ZOSV)" ;Get the license info
     15 . N port,t,x,maxpid,lmflim
     16 . S $ET="",maxpid=$V($ZU(40,2,118),-2,4)
     17 . X "S ZOSV=$ZU(5),%=$ZU(5,""%SYS"") S lmflim=$$inquire^LMFCLI,%=$ZU(5,ZOSV)" ;Get the license info
    1918 . ;Add together the enterprise and division licenses avaliable
    20  . S X=$P(LMFLIM,";",2)+$P($P(LMFLIM,"|",2),";",2)
    21  . S T=+LMFLIM+$P(LMFLIM,"|",2) ;Check the license total
    22  . S AVJ=$S(T<MAXPID:X,1:MAXPID-$$ACTJ) ;Return the smaller of license or pid
     19 . S x=$P(lmflim,";",2)+$P($P(lmflim,"|",2),";",2)
     20 . S t=+lmflim+$P(lmflim,"|",2) ;Check the license total
     21 . S AVJ=$S(t<maxpid:x,1:maxpid-$$ACTJ) ;Return the smaller of license or pid
    2322 ;To get available jobs from Cache 5.0 up
    2423 I V'<5 D  Q AVJ
     
    3938 ;
    4039GETPEER() ;Get the PEER tcp/ip address
    41  N PEER,NL,$ET S NL="",PEER="",$ET="S $EC=NL Q NL"
     40 N PEER,NL,$ET S NL="",$ET="S $EC=NL Q NL",PEER=""
    4241 I $$OS="VMS" S PEER=$ZF("TRNLNM","VISTA$IP")
    4342 I '$L(PEER) S PEER=$ZU(111,0) S:$L(PEER) PEER=$A(PEER,1)_"."_$A(PEER,2)_"."_$A(PEER,3)_"."_$A(PEER,4)
     
    4544 ;
    4645SHARELIC(TYPE) ;See if can share a C/S license
    47  ;Per Sandy Waal 10/18/2003: With Cache 5.0, your telnet and IP connections are now handled properly.
    48  ;N %,%N,%2,UID,%V,$ET S $ET="S $EC="""" Q",%V=$$VERSION()
    49  ;I %V'<5 Q
    5046 ;Type is 1 for C/S and 0 for Telnet
    51  ;I %V<3.1 X:TYPE "S %N=$ZU(5),%2=$ZU(5,""%SYS""),%2=$$GetLic^LMFCLI,%N=$ZU(5,%N)" Q
    52  ;I %V<5 S:TYPE %=$$GetCSLic^%LICENSE S:'TYPE %=$$ShareLic^%LICENSE
    53  ;S $EC=""
     47 N %,%N,%2,UID,%V,$ET S $ET="S $EC="""" Q",%V=$$VERSION()
     48 I %V<3.1 X:TYPE "S %N=$ZU(5),%2=$ZU(5,""%SYS""),%2=$$GetLic^LMFCLI,%N=$ZU(5,%N)" Q
     49 I %V<5 S:TYPE %=$$GetCSLic^%LICENSE S:'TYPE %=$$ShareLic^%LICENSE
     50 ;Per Sandy Waal 10/18/2003: With Cache' 5.0, your telnet and IP connections are now handled properly.
     51 I %V'<5 S %V=%V
     52 S $EC=""
    5453 Q
    55  ;
    5654JOBPAR ;See if X points to a valid Job. Return its UCI.
    57  N NL,$ET S Y="",NL="",$ET="S $EC=NL Q"
    58  I $D(^$JOB(X)) S Y=$V(-1,X),Y=$P(Y,"^",14)_","_^%ZOSF("VOL")
    59  Q
     55 N ZJ S Y="",$ZT="JOBX"
     56 Q:'$D(^$JOB(X)) S Y=$V(-1,X),Y=$P(Y,"^",14)_","_^%ZOSF("VOL")
     57JOBX Q
    6058 ;
    6159NOLOG ;4096 is switch 12 - sign on inhibited.
     
    6361 ;
    6462PROGMODE() ;Check if in PROG mode
    65  Q $ZJOB#2
     63 Q $ZJ#2
    6664 ;
    6765PRGMODE ;
     
    7270 D UCI S XUCI=Y,XQZ="PRGM^ZUA[MGR]",XUSLNT=1 D DO^%XUCI D ^%PMODE U $I:(:"+B+C+R") S $ZT="" Q
    7371 Q
    74 LGR() ;Last Global ref.
    75  N $ET,NL S NL="",$ET="S $EC=NL Q NL"
    76  Q $ZR
     72LGR() S $ZT="LGRX^%ZOSV"
     73 Q $ZR ;Last Global ref.
     74LGRX Q ""
    7775 ;
    78 EC() ;Error code
    79  Q $ZE
     76EC() Q $ZE ;Error code
    8077 ;
    8178DOLRO ;SAVE ENTIRE SYMBOL TABLE IN LOCATION SPECIFIED BY X
     
    9592 Q
    9693 ;
    97 PARSIZ ;Old and not used.
     94PARSIZ ;
    9895 S X=3
    9996 Q
    10097 ;
    101 DEVOPN ;List of Devices opened, Not used
     98DEVOPN ;List of Devices opened
    10299 ;Returns variable Y. Y=Devices owned separated by a comma
    103100 Q
    104  ;
    105101DEVOK ;
    106102 S Y=0,X1=$G(X1) Q:X=2  Q:(X1="HFS")!(X1="SPL")!(X1="MT")!(X1="CHAN")  ;Quit w/ OK for HFS, Spool, MT, TCP/IP
     
    122118 ;
    123119OS() ;Return the OS NT, VMS, Unix
    124  Q $S($ZV["VMS":"VMS",$ZV["UNIX":"UNIX",$ZV["Linux":"UNIX",$ZV["Windows":"NT",$ZV["NT":"NT",1:"UNK")
     120 Q $S($ZV["VMS":"VMS",$ZV["Windows":"NT",$ZV["NT":"NT",$ZV["UNIX":"UNIX",1:"UNK")
    125121 ;
    126122SETNM(X) ;Set name, Fall into SETENV
     
    131127 ;
    132128SID() ;System ID Ver 1
    133  N %1,%2,%3,%4,%5,T S T="~"
     129 N %1,%2,%3,T S T="~"
    134130 S %1=$ZU(5) ;namespace
    135131 S %2=$ZU(12,"") ;directory
    136132 I '$L(%2),$$VERSION'<5.2 S %2=$$defdir^%SYS.GLO(%1) ;remote directory
    137  S %3=$G(^XTV(8989.3,1,"SID")),%4=$P(%3,"^",4),%5=$P(%3,"^",5)
    138  I $L(%4),$L(%5),%2[%4 S %2=$P(%2,%4)_%5_$P(%2,%4,2,9)
    139133 S %3=%1_T_%2 ;namespace~directory
    140134 Q "1~"_%3
     
    142136PRI() ;Check if a mixed OS enviroment.
    143137 ;Default return 1 unless we are on the secondary OS.
    144  ;Only Cache on a VMS(1)/Linux or NT(2) mix is supported now.
     138 ;Only Cache on a VMS(1)/Linux(2) mix is supported now.
    145139 N % S %=1
    146140 I $P(^XTV(8989.3,1,0),"^",5),$$OS'="VMS" S %=2
     141 ;I $P(^XTV(8989.3,1,0),"^",5),$$OS["NT" S %=2
    147142 Q %
    148143 ;
     
    162157 Q 1
    163158 ;
    164 T0 ; start RT clock, obsolete
     159T0 ; start RT clock
    165160 ;S XRT0=$H
    166161 Q
Note: See TracChangeset for help on using the changeset viewer.