TI Syntax not found on the manual

Post Reply
appleglaze28
Regular Participant
Posts: 269
Joined: Tue Apr 21, 2009 3:43 am
OLAP Product: Cognos TM1, Planning
Version: 9.1 SP3 9.4 MR1 FP1 9.5
Excel Version: 2003

TI Syntax not found on the manual

Post by appleglaze28 »

I was reviewing the TI process I got from the forum and I tried to understand what they do, I couldn't find the syntax on the manual TM1 References VIEWSETSKIPCALCS & VIEWSETSKIPRULEVALUE.

Since no error is found it seems to work. But what does it exactly do?
User avatar
Steve Rowe
Site Admin
Posts: 2456
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: TI Syntax not found on the manual

Post by Steve Rowe »

They are like the tick boxes when you use extract as ascii. Skip calcs suppresses consolidations, skip rules suppresses rule driven values.

As shown below in the documentation.
TM1 Reference Guide > TM1 TurboIntegrator Functions > View Manipulation TurboIntegrator Functions > ViewExtractSkipCalcsSet

--------------------------------------------------------------------------------

ViewExtractSkipCalcsSet
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function sets an option to include/exclude consolidated values in a view extract. A view extract is a TM1 view exported as an ASCII comma-delimited (.cma) file.
ViewExtractSkipCalcsSet is the equivalent of the Skip Consolidated Values option in the View Extract dialog box.
Syntax
ViewExtractSkipCalcsSet (Cube, ViewName, Flag);
Arguments
Cube The parent cube of the view for which you are setting the option.
ViewName The view for which you are setting the option.
Flag A binary value that turns the option on or off. Specify 1 to exclude consolidated values from the view extract. Specify 0 to include consolidated values.

Example
ViewExtractSkipCalcsSet ('99sales', '1st Quarter Actuals', 1);
This example turns on the Skip Consolidated Values option for the 1st Quarter Actuals view. The view extract will not include any consolidated values.
Technical Director
www.infocat.co.uk
appleglaze28
Regular Participant
Posts: 269
Joined: Tue Apr 21, 2009 3:43 am
OLAP Product: Cognos TM1, Planning
Version: 9.1 SP3 9.4 MR1 FP1 9.5
Excel Version: 2003

Re: TI Syntax not found on the manual

Post by appleglaze28 »

Thanks Steve, can't figure out why I couldn't search it though.I'll try to search through the manuals again if I encounter this stuff.
Alan Kirk
Site Admin
Posts: 6647
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: TI Syntax not found on the manual

Post by Alan Kirk »

appleglaze28 wrote:Thanks Steve, can't figure out why I couldn't search it though.I'll try to search through the manuals again if I encounter this stuff.
To be fair, it's because you won't find the functions under those names in the manuals. Not aside from one or two obscure one-line references anyway. You'll notice that one of the functions that you were asking about was ViewSetSkipCalcs. The one that Steve cited is ViewExtractSkipCalcsSet. For all intents and purposes they work the same way, but one is fully documented (or as fully as it gets) and the other only appears in, for example, lists of key words buried in obscure locations in some of the manuals.

I'm afraid that this one is down to cruddy documentation (and a previously discussed lack of nomenclature discipline) on Applix's part.
"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.
User avatar
Steve Rowe
Site Admin
Posts: 2456
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: TI Syntax not found on the manual

Post by Steve Rowe »

I never noticed that.

So there are two sets of TI calls doing exactly the same thing but with a slightly different name.... :roll:
Strange
Technical Director
www.infocat.co.uk
Alan Kirk
Site Admin
Posts: 6647
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: TI Syntax not found on the manual

Post by Alan Kirk »

Steve Rowe wrote:I never noticed that.

So there are two sets of TI calls doing exactly the same thing but with a slightly different name.... :roll:
Strange
Yup. Historically I've always used the ViewSetSkipCalcs one, but that's just out of habit and because I put it in my standard templates. The funny thing is I can't recall where I got it from initially unless it was in one of the .chm style help files, because I can't find it referred to (as I said, aside from a couple of "reserved words" and similar lists) in any of the .pdfs. And I've got 'em all (plus release notes, etc) from version 6 onwards within a central directory for Acrobat to be able to do a full search on them. When it did, it didn't find a single instance of ViewSetSkipCalcs having been properly documented, nor any reference to ViewExtractSkipCalcsSet replacing it.

My first thought would have been that ViewSetSkipCalcs was intended for user views and ViewExtractSkipCalcsSet was intended for AsciiOutput views but (a) ViewSetSkipCalcs has no context inside a user view since that's driven only by subset selection and (b) as we know, to oft-expressed considerable annoyance, Iboglix doesn't treat export views as being a distinct and different kind of object and instead mixes them all in to the main view list. ("Oooh, what's this view?" {Click-click} "Out of memory"}
"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.
lotsaram
MVP
Posts: 3703
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: TI Syntax not found on the manual

Post by lotsaram »

Alan Kirk wrote:Historically I've always used the ViewSetSkipCalcs one, but that's just out of habit and because I put it in my standard templates. The funny thing is I can't recall where I got it from initially unless it was in one of the .chm style help files.
Back when I cut my teeth in v7 & v8 I used ViewSetSkipCalcs (also probably because I copied & pasted from a help reference) but I have long since swapped to using ViewExtractSkipCalcsSet. TM1 doesn't have a history of ceasing to support undocumented functions but who knows what might happen ...
Alan Kirk wrote:My first thought would have been that ViewSetSkipCalcs was intended for user views and ViewExtractSkipCalcsSet was intended for AsciiOutput views but (a) ViewSetSkipCalcs has no context inside a user view since that's driven only by subset selection and (b) as we know, to oft-expressed considerable annoyance, Iboglix doesn't treat export views as being a distinct and different kind of object and instead mixes them all in to the main view list. ("Oooh, what's this view?" {Click-click} "Out of memory"}
Yes. The "processing view" zero skips are not to be confused with ViewSuppressZeroesSet (& ViewRowSuppressZeroesSet, & ViewColumnSuppressZeroesSet) which are used to set zero suppression in TI when building "user views."
Post Reply