h14397
s 00000/00000/00054
d D 1.2 83/03/31 12:27:52 mmm 2 1
c 
e
s 00054/00000/00000
d D 1.1 83/03/15 21:35:05 tes 1 0
c date and time created 83/03/15 21:35:05 by tes
e
u
4
U
t
T
I 1
subroutine gclrwk (wkid, cofl)
########################################################################
#                                                                      #
#          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: Clear the workstation                                  #
#                                                                      #
#     Input Parameters:                                                #
#            wkid - workstation identifier                             #
#	     cofl - control flag  (0=conditionally, 1 always)          #
#     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                      #
#                                                                      #
#     Routines Called:                                                 #
#            gzatt  - internal routine to call gzddop                  #
#            errchk - perform appropriate error checking               #
#                                                                      #
########################################################################
integer wkid, cofl

integer kflag, idummy

ifdef(`ERROR_ON',`
   integer errchk, errind, ierdum(1)
   ')
        
include(`gkscom')
 
ifdef(`ERROR_ON',`
      rounum = GCLRWK
      errind = errchk(wkid,ierdum)
      ')
 
   # erase only if necessary
   kflag = eraflg + cofl
   if (kflag != 0) {
      call gzatt (CLEARxWORKSTATION, idummy, idummy)
      # Set screen erase flag to not erase
      eraflg = NO
      }

   return
end
E 1
