h18345
s 00000/00000/00054
d D 1.2 83/03/31 12:27:12 mmm 2 1
c 
e
s 00054/00000/00000
d D 1.1 83/03/15 21:34:43 tes 1 0
c date and time created 83/03/15 21:34:43 by tes
e
u
4
U
t
T
I 1
subroutine gacwk (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: Activate workstation                                   #
#                                                                      #
#     Input Parameters:                                                #
#            wkid    -  workstation identifier                         #
#                                                                      #
#      Output Parameters:                                              #
#            none                                                      #
#                                                                      #
#     Errors:                                                          #
#        6 GKS not in proper state: GKS must be either in the state    #
#          WSOP or in the state WSAC                                   #
#       20 Specified workstation identifier is invalid                 #
#       25 Specified workstation is not open                           #
#       28 Specified workstation is active                             #
#                                                                      #
#     Routines Called:                                                 #
#          errchk - do appropriate error checking                      #
#                                                                      #
########################################################################
integer wkid
 
ifdef(`ERROR_ON',`
   integer errchk, errind, ierdum(1)
   ')

include(`gkscom')

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

# GKS set to the operating state WSAC
# Workstation marked active in the workstation state list
# Workstation id added to set of active workstations in the GKS state
# list

gksopr = WSAC
wrkact = wkid   # For expanded GKS wrkact will become an array
wrkst  = ACTIVE 

return
end
E 1
