WRITEL rc=4 error

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.
Post Reply
tas3086
Posts: 316
Joined: Mon Mar 19, 2012 6:15 pm

WRITEL rc=4 error

Post by tas3086 »

what does rc=4 mean.
Another reason for an error code list.
thanks
TeraByte Support
Posts: 3596
Joined: Thu May 05, 2011 10:37 pm

Re: WRITEL rc=4 error

Post by TeraByte Support »

rc=4? I couldn't find reference to rc= in printout. Just hit me, I think you are saying WRITEL returned an error code of 4 ? That is "Write Error". Do you have a sample of the issue?
tas3086
Posts: 316
Joined: Mon Mar 19, 2012 6:15 pm

Re: WRITEL rc=4 error

Post by tas3086 »

simple loop to copy current log file to a master log file.



logfileout=open(drvltr#"\IFD.LOG","in-out")
if logfileout<0 then
printl("closing 1 error: ",logfileout.errorno)
goto close5
end if
seek(logfileout,lof(logfileout))
-------- loop starts
logfileout=open(drvltr#"\IFD.LOG","in-out")
if logfileout<0 then
printl("closing 1 error: ",logfileout.errorno)
goto close5
end if
seek(logfileout,lof(logfileout))
logfilein=open("\IFD.LOG","in-out")
if logfilein >= 0 then
readlog:
linein=readl(logfilein,1000)
if ((linein="") and (logfilein.errno >= 0)) then
goto closel
end if

rc=writel(logfileout,left(linein,len(linein)-1))
if rc<> 0 then
printl(" Error writing to logoutfile. RC= : ",rc)
end if
goto readlog
else
printl("logfilein open error : ",logfilein.errno)
goto close2
end if


------------loop stops
TeraByte Support
Posts: 3596
Joined: Thu May 05, 2011 10:37 pm

Re: WRITEL rc=4 error

Post by TeraByte Support »

I couldn't reproduce, did it open the same file to read and write and ran out of disk space or was there an actual write error on the media?
Post Reply