|
发表于 2014-3-16 09:03:36
|
显示全部楼层
Alan Kirk wrote:[quote]ryan wrote:I would like to write to a disk other than the one that the server is running on. Using TextOutput/ASCIIOutput functions I am unable to achieve it. Is there any functions or work around to write the file to a disk other than the server is running on?
Thanks in advance.
"I am unable to achieve it" does not give a lot of information about what you've done or how.
TM1 doesn't run on a disk, it runs in memory. As with any other computer system, the one whose memory it's running in will have access to one or more hard disk systems. There may be a single disk inside the server box. Or, there may be multiple hard disks in a single box. Or, there may be a RAID drive. Or, they may be disks on other servers on the same network, being accessible through mounted drive letters or UNC connections.
TM1 cares for none of this once it has loaded its data from disk and is running. As with any other application, TM1 can write data to any drive that the Windows login that TM1 is running under has access to, as long as that login has write access, and as long as you're specifying the location correctly.
If you can't write then the things that you look at are:
(a) What's the location that you're trying to write to?
(b) Can the server box that the TM1 server running on connect to that location?
(c) What's the Windows login that the TM1 server is running under?
(d) Does that login have write access to the remote location?
(e) Are you specifying the remote location correctly in your AsciiOutput statement?
[/quote]
I am trying to write data to .csv file.
sFilePath = 'c:tm1-testing.csv';
AsciiOutput( sFilePath, 'Hello World!' );
able to see tm1-testing.csv folder under c: for that server.
But when I want to write data to .csv file on the network drive:
sFilePath = 'nt-dwdbprodExcel FilesFinanceLock and Value filesTM1Filestm1-testing.csv';
AsciiOutput( sFilePath, 'Hello World!' );
Answers to the above listed questions:
(a) nt-dwdbprodExcel FilesFinanceLock and Value filesTM1Files
(b) I am able to connect manually to the network folder from the server though.
(c) dwtest, this user even having full access to the above said folder.
(d) Yes, I have full access to the above said network folder.
(e) Yes
CXMD folder is on C: |
|