divin: PROCEDURE EXPOSE (dict$.exposestems)
PARSE ARG mode
CALL varserverini()
SAY ptime()' Load Variable Tables started'
loaded=0
DO i= 1 TO dict$.variable_name.0
varname=dict$.variable_name.i
vardir=dict$.variable_dir.i
vartext=dict$.variable_text.i
INTERPRET 'lcc=DIVLOAD("'vardir'","'varname'",'varname'.,"'vartext'")'
IF lcc=0 THEN DO
loaded=loaded+1
INTERPRET varname'.UPDATE=0'
END
END
SAY ptime()' Load Variable Tables completed, 'loaded' tables loaded'
SAY ptime()' All update flags have been cleared'
RETURN
divload: PROCEDURE
USE ARG table,divname,divobj.,tabmsg
exec=table||divname'.0.rex'
rcc=0
suffix=0
DO UNTIL exec=''
DO
CALL [exec](divobj.)
CATCH SYNTAX
rcc=8
END
IF rcc>0 THEN LEAVE
SAY ptime() tabmsg' Partition 'suffix' Loaded'
IF divobj.next_extension=0 THEN exec=''
ELSE DO
suffix=suffix+1
exec=table||divname'.'suffix'.rex'
END
END
RETURN rcc
ptime: PROCEDURE
ptime=TIME('l')
len=LENGTH(ptime)-3
RETURN SUBSTR(ptime,1,len)
|