OS error when trying to write to a file
Posted: Mon Dec 28, 2015 10:29 am
My app is giving this error at startup only on the first time it is run at each workstation. The second time it is started, it runs fine. It's writing to a file on a local drive.
Date : 12/28/15
Time : 09:10:56
Procedure : DC_PRINTER:INIT
Line Number : 596
Information : Error BASE/4
Description : Operating system error
Operation : set
Thread ID : 1
Source :
Called from : (B)INIT: _DCINIT(28)
Called from : DC_PRINTER:INIT(596)
Called from : DC_PRINTERON(3621)
Called from : STARTUP(370)
Called from : MCP(100)
Called from : MAIN(48)
This is the line of code:
BATFILE := "C:\POS\Z"+ALLTRIM(STR(G_STORENUM))+".BAT"
DCPRINT ON TEXTONLY OUTFILE (BATFILE) OVERWRITE
Suggestions?
Date : 12/28/15
Time : 09:10:56
Procedure : DC_PRINTER:INIT
Line Number : 596
Information : Error BASE/4
Description : Operating system error
Operation : set
Thread ID : 1
Source :
Called from : (B)INIT: _DCINIT(28)
Called from : DC_PRINTER:INIT(596)
Called from : DC_PRINTERON(3621)
Called from : STARTUP(370)
Called from : MCP(100)
Called from : MAIN(48)
This is the line of code:
BATFILE := "C:\POS\Z"+ALLTRIM(STR(G_STORENUM))+".BAT"
DCPRINT ON TEXTONLY OUTFILE (BATFILE) OVERWRITE
Suggestions?