home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
SREFPRC1
/
SAVESTAT.SRF
< prev
next >
Wrap
Text File
|
1997-07-06
|
1KB
|
49 lines
/* Save "request specific" stuff to the environment, using
thread id */
parse arg asource,arequest,seloriginal,enmadd,theport,verbose
crlf='0d0a'x /* might need this */
a1=pos('NOFILE_',upper(arequest))
if a1>0 then arequest=delstr(arequest,a1,7)
a1=pos('PUBLIC_',upper(arequest))
if a1>0 then arequest=delstr(arequest,a1,7)
'READ HEADER VAR AHEADER'
/*aheader=translate(aheader,' ','0a00'x)
aheader=translate(aheader,';','0d'x)*/
mytid=dostid()
wow2=digits()
numeric digits 12
adate=date('n'); atime=time('n')
d1=date('b')
t1=time('m')/(24*60)
nowtime=d1+t1
drop moocow.
moocow.DATE_TIME=atime||','||adate||','||nowtime
moocow.THREAD=mytid
moocow.SOURCE=asource
moocow.REQUEST=arequest
moocow.SERVER_NAME=servername()
moocow.SEL=seloriginal
moocow.!FUNGUS=aheader
ard=value(enmadd||'TEMPDATA_DIR',,'os2environment')
ard=strip(ard,'t','\')||'\'
getfil=ard||'_T'||mytid||'.'||theport
wow=cvwrite(getfil,moocow)
numeric digits wow2
if verbose>2 then call pmprintf_sref(" Saved state to " getfil)
return getfil