Page 1 of 1
Name of Processes in Turbo
Posted: Sat Jun 19, 2010 8:58 am
by borisslu
HI,
can i now name of Processes that run in Turbo?
which function i must use?
Thanks
Boris
Re: Name of Processes in Turbo
Posted: Sat Jun 19, 2010 11:27 am
by Alan Kirk
borisslu wrote:
can i now name of Processes that run in Turbo?
which function i must use?
There are no native functions which will allow you to change the names of TI processes. You name them when you save them using the GUI in Server Explorer. You can also Save As a different name. Aside from that the only way of doing it without resorting to third party tools is to use code written using the TM1 API, which I wouldn't recommend.
Re: Name of Processes in Turbo
Posted: Sat Jun 19, 2010 11:30 am
by Michel Zijlema
There is a Turbo Integrator function that returns the name of the running process, if that's what you're after:
GetProcessName
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function returns as a string the name of the current process.
Syntax
GetProcessName()
Arguments
None.
Example
Name = GetProcessName();
Re: Name of Processes in Turbo
Posted: Sat Jun 19, 2010 11:37 am
by Alan Kirk
Michel Zijlema wrote:There is a Turbo Integrator function that returns the name of the running process, if that's what you're after:
Ooooh, he meant how can I
know the name of the process... that does put it in a somewhat different context.
Re: Name of Processes in Turbo
Posted: Sun Jun 20, 2010 11:24 am
by Michel Zijlema
borisslu wrote:Hi Michel,
i have a mistake that variable GetProcessName is undefined
that i must write?
Thanks
Boris
Hi Boris,
Did you use the syntax as described in the example:
Name = GetProcessName();
i.e. did you assign the result of the function to a variable and did you add the parenthesis at the end of the function?
What TM1 version are you using?
Michel
Re: Name of Processes in Turbo
Posted: Mon Jun 21, 2010 4:57 am
by borisslu
hi, Michel
i did this
but maybe this because version 9.1?
i undestand that this function exist onli in version 9.5?
thanks
Boris
Re: Name of Processes in Turbo
Posted: Mon Jun 21, 2010 5:13 am
by Alan Kirk
borisslu wrote:
i undestand that this function exist onli in version 9.5?
It appears so. There doesn't seem to be any reference to it in the release notes (what a surprise

), but doing a search through my document library shows it only in the 9.5 Reference .pdfs, not in those of any earlier version.
You could always assign the process name to a variable manually as a workaround.
Re: Name of Processes in Turbo
Posted: Mon Jun 21, 2010 6:02 am
by lotsaram
Alan Kirk wrote:borisslu wrote:
i undestand that this function exist onli in version 9.5?
It appears so. There doesn't seem to be any reference to it in the release notes (what a surprise

), but doing a search through my document library shows it only in the 9.5 Reference .pdfs, not in those of any earlier version.
You could always assign the process name to a variable manually as a workaround.
Erm, cough, splutter, yes ...
Must say I was a bit surprised when I saw Michel's response. After I finished wiping coffee spray from the screen I did the same thing. That function would have saved me a lot of bother with hardcoding of process names over the years!
I must say about bloody time. Now if only IBM would pull their finger out and come up with a TI function for "TM1ServerVersion" so that it is possible to handle possible errors and branch code for use on different server versions. This would have been quite handy over the years for this case in point and also for the introduction of ViewExists, SubsetExists, etc. I'll just get my coat shall I ?...
Re: Name of Processes in Turbo
Posted: Mon Jun 21, 2010 6:23 am
by Michel Zijlema
When I asked what version you're using? I thought Boris maybe is on some old (v8) version - I wasn't aware that this function was added this recently though...
I just tested: this function is also available in TM1 9.4.1FP3, but indeed not in 9.1.4 en before.
Michel
Re: Name of Processes in Turbo
Posted: Mon Jun 21, 2010 6:34 am
by Alan Kirk
Michel Zijlema wrote:When I asked what version you're using? I thought Boris maybe is on some old (v8) version - I wasn't aware that this function was added this recently though...
I just tested: this function is also available in TM1 9.4.1FP3, but indeed not in 9.1.4 en before.
Definitely wasn't
documented in 9.4 though (unless it was in a later update to the docs which I don't have, though it's also not in the
9.4 MR1 Information Centre); the list of reserved words in the 9.4 TI manual, for example, include only two starting with Get:
GetProcessErrorFileDirectory, and
GetProcessErrorFilename.
Oh wait, I see why... I just re-checked my job description.
My job description wrote:Required to demonstrate abnormally high paranormal extra sensory perception abilities to detect when undocumented changes have been made to TM1 functionality.
Guess I'm gonna get marked down on
that one in this year's appraisal.
Re: Name of Processes in Turbo
Posted: Mon Jun 21, 2010 2:23 pm
by IanB
Suppose that also applies to a function TIUserName - doesn't exist yet...
Re: Name of Processes in Turbo
Posted: Mon Jun 21, 2010 8:42 pm
by Alan Kirk
IanB wrote:Suppose that also applies to a function TIUserName - doesn't exist yet...
If you're referring to the TI function, the function name is actually TM1User, not TM1UserName. As per the release notes it was available by at least 9.1 SP3.
Re: Name of Processes in Turbo
Posted: Tue Jun 22, 2010 1:45 pm
by Steve Vincent
...and having just checked 9.0, 9.1 seems to be the 1st time it appeared too.
Re: Name of Processes in Turbo
Posted: Tue Jun 22, 2010 10:10 pm
by paulsimon
Hi
I've adopted the habit of creating a
vThisPro = '<process name>' ;
in the Prolog
as it then makes it easier when you want to save the process as a different name, or when I want to take the process name and paste it in to another process or a cube.
So, I think that there is still a reason for having a variable with the process name in a process.
Regards
Paul Simon