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.
TextOutput / ASCIIOutput function
-
- Posts: 59
- Joined: Thu May 26, 2011 5:04 am
- OLAP Product: COGNOS
- Version: 9.0
- Excel Version: 2007
TextOutput / ASCIIOutput function
Configuration Details
Microsoft Window Server 2003 Exterprise x64 Edition Service Pack 2
RAM 32 GB
using IBM Cognos Express Xcelerator (Version 10.1)
MS-Office Excel 2010 (12.0.6514.5000)SP2 MSO (12.0.6425.1000)
Microsoft .NET Framework 3.5
Microsoft Window Server 2003 Exterprise x64 Edition Service Pack 2
RAM 32 GB
using IBM Cognos Express Xcelerator (Version 10.1)
MS-Office Excel 2010 (12.0.6514.5000)SP2 MSO (12.0.6425.1000)
Microsoft .NET Framework 3.5
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: TextOutput / ASCIIOutput function
"I am unable to achieve it" does not give a lot of information about what you've done or how.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.
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?
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 59
- Joined: Thu May 26, 2011 5:04 am
- OLAP Product: COGNOS
- Version: 9.0
- Excel Version: 2007
Re: TextOutput / ASCIIOutput function
I am trying to write data to .csv file.Alan Kirk wrote:"I am unable to achieve it" does not give a lot of information about what you've done or how.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.
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?
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-dwdbprod\Excel Files\Finance\Lock and Value files\TM1Files\tm1-testing.csv';
AsciiOutput( sFilePath, 'Hello World!' );
Answers to the above listed questions:
(a) \\nt-dwdbprod\Excel Files\Finance\Lock and Value files\TM1Files\
(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:\
Configuration Details
Microsoft Window Server 2003 Exterprise x64 Edition Service Pack 2
RAM 32 GB
using IBM Cognos Express Xcelerator (Version 10.1)
MS-Office Excel 2010 (12.0.6514.5000)SP2 MSO (12.0.6425.1000)
Microsoft .NET Framework 3.5
Microsoft Window Server 2003 Exterprise x64 Edition Service Pack 2
RAM 32 GB
using IBM Cognos Express Xcelerator (Version 10.1)
MS-Office Excel 2010 (12.0.6514.5000)SP2 MSO (12.0.6425.1000)
Microsoft .NET Framework 3.5
-
- Regular Participant
- Posts: 197
- Joined: Thu Dec 03, 2009 8:47 am
- OLAP Product: IBM Cognos TM1
- Version: 10.2.2.x
- Excel Version: 2010
- Location: Singapore
Re: TextOutput / ASCIIOutput function
Hi Guys,
I'm experiencing the very same thing. My TM1 server is in machine Alpha. I'm running a process that exports data (using ASCIIOUTPUT) to machine Bravo.
It returns error. I'm not sure, but I know I've done it before and it worked.
Is it a limitation? or a set-up? or simply my misunderstanding?
Thanks.
I'm experiencing the very same thing. My TM1 server is in machine Alpha. I'm running a process that exports data (using ASCIIOUTPUT) to machine Bravo.
It returns error. I'm not sure, but I know I've done it before and it worked.
Is it a limitation? or a set-up? or simply my misunderstanding?
Thanks.
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: TextOutput / ASCIIOutput function
It is not about your ability to write to the folder on machine Bravo. It is about the windows account that tm1sd.exe is running on on server Alpha. That account needs to have the appropriate authorization for machine Bravo simple as that.bunchukokoy wrote:Hi Guys,
I'm experiencing the very same thing. My TM1 server is in machine Alpha. I'm running a process that exports data (using ASCIIOUTPUT) to machine Bravo.
It returns error. I'm not sure, but I know I've done it before and it worked.
Is it a limitation? or a set-up? or simply my misunderstanding?
Thanks.
-
- Regular Participant
- Posts: 197
- Joined: Thu Dec 03, 2009 8:47 am
- OLAP Product: IBM Cognos TM1
- Version: 10.2.2.x
- Excel Version: 2010
- Location: Singapore
Re: TextOutput / ASCIIOutput function
I'm wondering. The account that tm1sd.exe is running on on server Alpha has Owner access in the TM1_Inputs folder. And it is Full Control.
This is the error message.
Error: Data procedure line (8): File "\\bravo\TM1_Inputs\TM1_FRRG_INPUTS.csv" not found.
This is the error message.
Error: Data procedure line (8): File "\\bravo\TM1_Inputs\TM1_FRRG_INPUTS.csv" not found.
- Michel Zijlema
- Site Admin
- Posts: 713
- Joined: Wed May 14, 2008 5:22 am
- OLAP Product: TM1, PALO
- Version: both 2.5 and higher
- Excel Version: 2003-2007-2010
- Location: Netherlands
- Contact:
Re: TextOutput / ASCIIOutput function
Is TM1_Inputs a share? Shouldn't the path be "\\bravo\TM1_Inputs$\TM1_FRRG_INPUTS.csv"?bunchukokoy wrote:I'm wondering. The account that tm1sd.exe is running on on server Alpha has Owner access in the TM1_Inputs folder. And it is Full Control.
This is the error message.
Error: Data procedure line (8): File "\\bravo\TM1_Inputs\TM1_FRRG_INPUTS.csv" not found.
If TM1_Inputs is not a share, shouldn't there be a drive reference in the path?
I assume this is a Windows machine - if not (but Linux/Unix) be aware of case sensitivity and forward instead of backslash.
My 2c, Michel
-
- Regular Participant
- Posts: 197
- Joined: Thu Dec 03, 2009 8:47 am
- OLAP Product: IBM Cognos TM1
- Version: 10.2.2.x
- Excel Version: 2010
- Location: Singapore
Re: TextOutput / ASCIIOutput function
Hi. Thanks for the reply.
It is indeed simple.
Thanks anyway.
It is indeed simple.

Thanks anyway.
- Attachments
-
- Log On As.JPG (20.41 KiB) Viewed 6323 times