Configuration utilities > Teamcenter reporting
rep_batch_report
Used in batch or shell script files to generate reports in batch mode when the user selects the Batch mode option in the Generate ME Report dialog box. The following administrative tasks must be performed to enable batch reporting: Create a report request flat file containing default values and details of item ID, revision ID, operating system report location, Teamcenter report location, report format, revision rule, variant rule, transfer mode, and status. The format of the file is as follows: Copy __Start of format
start_global_definitions
User ID user_name
Password user_name
TC_ROOT w:\iman_wnti
TC_DATA w:\src\iman\data
Default Report Location Teamcenter # possible values are OS or Teamcenter
Default OS Location C:\temp\Reports
Default Revision Rule Latest Working
Default Saved Variant Rule DemoVariantRule
Default Transfer Mode web_reports
Default Formatter : Product_Structure.xsl
Delimiter ~
end_global_definitions
start_data_definition
#ItemIDRevisionReport LocationOS LocationRevision RuleSaved Variant Rule
Transfer ModeFormatterStatus
000234AOS~~~MyVariantRule~~Standard Product~
end_data_definition
start_data_definition
#ItemIDRevisionReport LocationOS LocationRevision RuleSaved Variant Rule
Transfer ModeFormatterRoot Product Tag~ (line continued)
Root Product Rev ruleRoot Product Var ruleRoot process Tag ~
Hierarcy UID tagslevelRoot PlantTagRoot Plt Rev RuleRoot Plt Var RuleStatus
GM00071001OSProduct_Structure.xsl~~~~~~~~~~
ABC000007Latest Workingweb_reportsAOSLatest Workingweb_reportsstation_weld.xslSvNJ1puVl9P7VD~
(line continued)
Latest WorkinghtNJmIl8l9P7VD
end_data_definition
End of format_______________ Note A sample batch file and shell script file are located in the TC_ROOTweb/htdocs/web_reports/data directory. In addition, you can manually append data to an existing batch_request file and run the utility. Schedule a task in the operating system. Select the program and specify the execution date and time. The utility performs the following activities: Reads the location of the report request flat file from the value of the Batch_Report_Request_File preference. Reads the global definition values. Parses each line in the flat file, checks the status field of the line, and processes the line if the status is not success. An XML file is generated for each line in the file, using the revision rule, variant rule, and closure rule associated with the transfer mode. If the rules are not specified in the line, default rules are used. The report format (style sheet) is applied on the XML file and report HTML files are generated. The datasets are exported during the transformation. If the report location is specified as Teamcenter, the dataset is created and the files generated are attached to the item revision, including the exported dataset files. If the report location is specified as OS, the reports are saved at the OS location specified in the file. Create or update the log file for the process. Update the status field once the line is processed. Syntax rep_batch_report [-u=user-id {-p=password | -pf=password-file} -g=group] -h Arguments -u Specifies the user ID. This is generally a user with administration privileges. Note If Security Services single sign-on (SSO) is enabled for your server, the -u and -p 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 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. -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.x5FJmIl8l9P7VD,BKKJmIl8l9P7VD,RaDJmIl8l9P7VD
Latest Working3zwDJ2_1$l9P7VD
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/coz1737253683897/zdq1737253686716/rep_batch_report.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)