h12049
s 00000/00000/00052
d D 1.2 83/03/31 12:28:06 mmm 2 1
c 
e
s 00052/00000/00000
d D 1.1 83/03/15 21:35:18 tes 1 0
c date and time created 83/03/15 21:35:18 by tes
e
u
4
U
t
T
I 1
subroutine gdawk (wkid)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Deactivate workstation                                 #
#                                                                      #
#     Input Parameters:                                                #
#            wkid    -  workstation identifier                         #
#                                                                      #
#      Output Parameters:                                              #
#            none                                                      #
#                                                                      #
#     Errors:                                                          #
#        3 GKS not in proper state: GKS must be in the state WSAC      #
#       20 Specified workstation identifier is invalid                 #
#       29 Specified workstation is not active                         #
#                                                                      #
#     Routines Called:                                                 #
#            errchk - perform appropriate error checking               #
#                                                                      #
########################################################################
integer wkid

ifdef(`ERROR_ON',`
   integer errchk, errind, ierdum(1)
   ')

include(`gkscom')

   ifdef(`ERROR_ON',`
      rounum = GDAWK
      errind = errchk(wkid, ierdum)
      ')

# GKS set to the operating state WSOP
# Workstation marked inactive in the workstation state list
# Workstation id deleted from set of active workstations in the GKS 
# state list

   gksopr = WSOP
   wrkact = 0         # For expanded GKS wrkact will become an array
   wrkst  = INACTIVE

  return
end
E 1
