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

SDESPATCHINFO.m

Go to the documentation of this file.
  1. SDESPATCHINFO ;ALB/KML - VISTA SCHEDULING RPCS GET CURRENT PATCH NUMBER ; FEB 2, 2022
  1. ;;5.3;Scheduling;**807**;Aug 13, 1993;Build 5
  1. ;;Per VHA Directive 6402, this routine should not be modified
  1. ;
  1. Q ;No Direct Call
  1. ; RPC: SDES GET PATCH NUMBER
  1. GETPATCHNUM(RETURN) ;
  1. ; This RPC returns the latest patch installed on the system
  1. ; Input/output:
  1. ; RETURN passed by reference/RETURN latest patch installed on system
  1. N X,ERR,SDARRAY
  1. S X=$P($$LAST^XPDUTL("SD"),U),ERR="" ;supported reference IA 10141
  1. I X=-1 S SDARRAY("Error",1)="ERROR: the Scheduling software or version does not exist or no patches have been applied."
  1. E S SDARRAY("Latest SD patch number")=X
  1. D ENCODE^SDESJSON(.SDARRAY,.RETURN,.ERR)
  1. Q