Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a sim isl expert 1

Status
Not open for further replies.

azrobert

Programmer
Apr 27, 2002
392
US
I recently took a Micros sim / interface class and really learned a lot. I have been trying to write a sim to log transaction tenders to a txt file on the server. We did an excersize simmilar to this in the class (on a 9700 system) I have the sim working fine on a test machine at home but when I put it on a live system the log file is written on the workstation (ws4) instead of the server. Not sure what I am missing.

we are running res 3700 3.2
 
Should be able to help but need some clarification on what you are asking.
 
I am logging the tender amounts to a txt file, I would like to write that file on the server so far I am using:

event tmed :101 // cash tender used
var cnt : N3
var pmtNum : N3
var PmtType : A12
var fn : n2 = 99
var FileDate :n2 = @day
Var filename : a40
var paytime : a15


format filename as "Checkdata.Txt"
fopen fn, filename, append
FWrite fn, @cknum,@Tblid{3},@Ckemp{4},@WSID

fclose fn


endevent

when I use something like this the file is written on the ws4 instead of the server. I know with the 9700 system we wrote the files on the server and the etc directory was the default. using the above on a 3700 system the file is written to the wsf instead of server
 
I think your issue is not 3700 or 9700 related, but it is WS4 related. WS4 uses it own run image (whatever the terminolgy is) and that's the only location it knows about. For us, with a similar issue, we had to run a custom program on the server and send the information to it from the SIM. Hope that helps.

Steve Sommers
-- Creators of $$$ ON THE NET(tm) payment processing services

Blog:
 
Kind of what I had concluded..... I think i can read and write files on the server if I use a full network path to the server but then I need to add passwords and users.....
haven't played around that far yet......

I have gotten as far as getting the ws4 to prompt for a username and password when trying to write a file on the server so I think I am on the right path.
 
When you open the filename using
Code:
format filename as "Checkdata.Txt"
fopen fn, filename, append
you are opening a file local to the filesystem.

Since the WS4 is booted from the server's filesystem, you may be able to do something like:
Code:
format filename as "..\cf\somedir\checkdata.txt"

which should place the file on the server in:
\micros\Res\CAL\WS4\Files\CF\somedir\

(assuming you create somedir)

Also, you may be able to specify a filename like:
Code:
format filename as "\\MICROSRV\SOMESHARE\Checkdata.txt"
if the network path is available via the WS4 (but I think it probably won't work)

Let us know what if either of those options help.
 
Thanks !

That is the paths I am looking at now, I only have a server with demo set up at home, should be getting a ws4 this week to play with while waiting for construction to finish on the store it is going to..... but everything works when just on the server ops.... really need to ws4 to test....

 
I ended up using a file path like
"\\MICROS1\res\pos\etc\Checkdata.txt"
and then added a user to the server
when prompted for the password, user i entered that user name and it works fine now, looks like it stored the password and user as default......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top