TeamcenterKnowledge

Query utilities

tc_set_query_where_run

Runs a saved query. You can choose to run the saved query using a user exit. See the TC_ROOT\sample\examples\user_query.c file for user exit sample code that can be used with this utility. Syntax tc_set_query_where_run [-u=user-id {-p=password | -pf=password-file} -g=group] -query=query-name -run={iman | query | user} [-h] Arguments -u Specifies the user ID. This is a user with Teamcenter administration privileges. Note If Security Services single sign-on (SSO) is enabled for your server, the user and password arguments are authenticated externally through SSO rather than being authenticated against the Teamcenter database. If you do not supply these arguments, the utility attempts to join an existing SSO session. If no session is found, you are prompted to enter a user ID and password. -p Specifies the user's password. This argument is mutually exclusive with the -pf argument. -pf Specifies the password file. For more information about managing password files, see Manage password files. This argument is mutually exclusive with the -p argument. -g Specifies the group associated with the user. If used without a value, the user's default group is assumed. -query Specifies the name of saved query to run. -run Specifies how to run the query: iman Run the query normally. query Run using a user exit. user Run using a user exit and display results in a text table. -h Displays help for this utility. Environment As specified in Setting up a Teamcenter command-line environment. Files As specified in Log files produced by Teamcenter. Restrictions None.

Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/jhb1737253704745/id1246659.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)