MAGVAG05 ;WOIFO/NST - Utilities for RPC calls ; 02 Oct 2017 4:18 PM
 ;;3.0;IMAGING;**185**;Mar 19, 2002;Build 4525;May 01, 2013
 ;; Per VHA Directive 2004-038, this routine should not be modified.
 ;; +---------------------------------------------------------------+
 ;; | Property of the US Government.                                |
 ;; | No permission to copy or redistribute this software is given. |
 ;; | Use of unreleased versions of this software requires the user |
 ;; | to execute a written test agreement with the VistA Imaging    |
 ;; | Development Office of the Department of Veterans Affairs,     |
 ;; | telephone (301) 734-0100.                                     |
 ;; | The Food and Drug Administration classifies this software as  |
 ;; | a medical device.  As such, it may not be changed in any way. |
 ;; | Modifications to this software may result in an adulterated   |
 ;; | medical device under 21CFR820, the use of which is considered |
 ;; | to be a violation of US Federal Statutes.                     |
 ;; +---------------------------------------------------------------+
 ;;
 Q
 ;
 ;*****  Returns all records in NETWORK LOCATION file (#2005.2)
 ;       
 ; RPC: MAGVA GET ALL NETWORK LOCATIONS
 ; 
 ; if error found during execution
 ;   MAGRY(0) = Failure status ^ "Error getting the list"
 ; if success
 ;   MAGRY(0)    = Success status ^^#CNT" - where #CNT is a number of records returned
 ;   MAGRY(1)    = "^" delimited string with all field names in NETWORK LOCATION file (#2005.2)
 ;   MAGRY(2..n) = "^" delimited string with values of fields listed in MAGRY(1) 
 ;
GETNL(MAGRY) ; RPC [MAGVA GET ALL NETWORK LOCATION]
 D GALLLST^MAGVAF03(.MAGRY,2005.2,"")
 Q
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGVAG05   1736     printed  Sep 23, 2025@19:45:43                                                                                                                                                                                                    Page 2
MAGVAG05  ;WOIFO/NST - Utilities for RPC calls ; 02 Oct 2017 4:18 PM
 +1       ;;3.0;IMAGING;**185**;Mar 19, 2002;Build 4525;May 01, 2013
 +2       ;; Per VHA Directive 2004-038, this routine should not be modified.
 +3       ;; +---------------------------------------------------------------+
 +4       ;; | Property of the US Government.                                |
 +5       ;; | No permission to copy or redistribute this software is given. |
 +6       ;; | Use of unreleased versions of this software requires the user |
 +7       ;; | to execute a written test agreement with the VistA Imaging    |
 +8       ;; | Development Office of the Department of Veterans Affairs,     |
 +9       ;; | telephone (301) 734-0100.                                     |
 +10      ;; | The Food and Drug Administration classifies this software as  |
 +11      ;; | a medical device.  As such, it may not be changed in any way. |
 +12      ;; | Modifications to this software may result in an adulterated   |
 +13      ;; | medical device under 21CFR820, the use of which is considered |
 +14      ;; | to be a violation of US Federal Statutes.                     |
 +15      ;; +---------------------------------------------------------------+
 +16      ;;
 +17       QUIT 
 +18      ;
 +19      ;*****  Returns all records in NETWORK LOCATION file (#2005.2)
 +20      ;       
 +21      ; RPC: MAGVA GET ALL NETWORK LOCATIONS
 +22      ; 
 +23      ; if error found during execution
 +24      ;   MAGRY(0) = Failure status ^ "Error getting the list"
 +25      ; if success
 +26      ;   MAGRY(0)    = Success status ^^#CNT" - where #CNT is a number of records returned
 +27      ;   MAGRY(1)    = "^" delimited string with all field names in NETWORK LOCATION file (#2005.2)
 +28      ;   MAGRY(2..n) = "^" delimited string with values of fields listed in MAGRY(1) 
 +29      ;
GETNL(MAGRY) ; RPC [MAGVA GET ALL NETWORK LOCATION]
 +1        DO GALLLST^MAGVAF03(.MAGRY,2005.2,"")
 +2        QUIT