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

ZIBNSSV.m

Go to the documentation of this file.
  1. ZIBNSSV ; IHS/ADC/GTH - NONSTANDARD SPECIAL VARIABLES ; [ 10/29/2002 7:42 AM ]
  1. ;;3.0;IHS/VA UTILITIES;**8,9**;FEB 07, 1997
  1. ; XB*3*8 - IHS/ASDST/GTH - Correct parsing for MSM Windows.
  1. ; XB*3*9 IHS/SET/GTH XB*3*9 10/29/2002 Cache' mods.
  1. ;
  1. ; Return Non-Standard ($Z) Special Variables.
  1. ;
  1. ; E.g.:
  1. ; W $$Z^ZIBNSSV("ERROR")
  1. ; will write the contents of the error message most recently
  1. ; produced by the OS.
  1. ;
  1. ; These are the variables supported:
  1. ;
  1. ; ERROR : Text of error message most recently produced.
  1. ; LEVEL : Number of the current nesting level.
  1. ; NAME : Name of routine currently loaded in memory.
  1. ; ORDER : Data value of the next global node that follows
  1. ; the current global reference.
  1. ; TRAP : Line label and routine name of the program that
  1. ; is to receive control when an error occurs.
  1. ; VERSION : Name and release of M implementation.
  1. ;
  1. Z(NSSV) ;PEP - Return Non-Standard ($Z) Special Variables.
  1. I '$L($G(NSSV)) Q "NONSTANDARD SPECIAL VAR NOT SPECIFIED."
  1. I '$F("ERROR^LEVEL^NAME^ORDER^TRAP^VERSION",NSSV) Q "NONSTANDARD SPECIAL VAR '"_NSSV_"' NOT SUPPORTED."
  1. NEW O
  1. ; S O=$P($G(^%ZOSF("OS")),"-",1) ; XB*3*8 - IHS/ASDST/GTH
  1. ;S O=$S($P($G(^%ZOSF("OS")),"^",1)["MSM":"MSM",1:"") ; XB*3*8 - IHS/ASDST/GTH;IHS/SET/GTH XB*3*9 10/29/2002
  1. S O=$S($P($G(^%ZOSF("OS")),"^",1)["MSM":"MSM",^%ZOSF("OS")["OpenM":"CACHE",1:"") ; XB*3*8 - IHS/ASDST/GTH ;IHS/SET/GTH XB*3*9 10/29/2002
  1. ;I '$L($T(@(O))) Q "OPERATING SYSTEM '"_O_"' NOT SUPPORTED." ;IHS/SET/GTH XB*3*9 10/29/2002
  1. I '$L(O) Q "OPERATING SYSTEM '"_^%ZOSF("OS")_"' NOT SUPPORTED." ;IHS/SET/GTH XB*3*9 10/29/2002
  1. G @(O)
  1. ;
  1. MSM ; Micronetics specific Non-Standard Special Variables.
  1. NEW MSMSV
  1. S MSMSV="MSMZ"_$E(NSSV)
  1. I '$L($T(@MSMSV)) Q "Micronetics VALUE FOR '"_NSSV_"' NOT SUPPORTED."
  1. G @(MSMSV)
  1. ;
  1. MSMZE Q $ZE
  1. MSMZL Q $ZL
  1. MSMZN Q $ZN
  1. MSMZO Q $ZO
  1. MSMZR() ;PEP - MSM's last global reference.
  1. ; Going thru the "Z" entry point will re-set the global reference!
  1. Q $ZR
  1. MSMZT Q $ZT
  1. MSMZV Q $ZV
  1. ;
  1. ;Begin New Code;IHS/SET/GTH XB*3*9 10/29/2002
  1. CACHE ;
  1. NEW %
  1. S %="CACHEZ"_$E(NSSV)
  1. I '$L($T(@%)) Q "Cache' VALUE FOR '"_NSSV_"' NOT SUPPORTED."
  1. G @(%)
  1. ;
  1. CACHEZE Q $ZE
  1. CACHEZN Q $ZN
  1. CACHEZO Q $ZO
  1. CACHEZT Q $ZT
  1. CACHEZV Q $ZV
  1. ;End New Code;IHS/SET/GTH XB*3*9 10/29/2002