Command-Line Processing for Imported Terms

Overview

The installation of SAS Business Data Network includes a command-line application that you can use to rebuild lineage after an import. You should do this if you import XML or CSV terms without importing the relationships for the terms at the same time. Disabling relationship importing improves the performance of importing terms. The tool name for Windows is UpdateRelationships.exe. For UNIX, the tool name is UpdateRelationships.
The command-line application executables are installed in the following location: SASHome\SASBusinessDataNetworkMidtier\3.2\tools.
See:

Usage Information

The following table lists the options available for the command-line application:
Options
Command
Name
Function
Required
-b
SAS Business Data Network URL
Specifies the URL to SAS Business Data Network.
Yes
-h
Help
Displays help for this application.
No
-l
Publish level
Specifies the publish level. Available arguments are tagsOnly|termsOnly|both. Default=both.
No
-nc
No clean
Specifies that SAS Business Data Network resources should not be deleted from the Relationship service before publishing. Default=false. Therefore, SAS Business Data Network resources are deleted from the Relationship service unless this option is set to true.
No
-o
Output level
Specifies the output level when publishing to the relationship service. Available arguments are TRACE|DEBUG|INFO|WARN|ERROR|FATAL|OFF. Default=WARN.
No
-p
Password
Specifies the password for connecting to SAS Business Data Network.
Yes
-t
Import file type
Specifies the type of file referred to by the file path option. Applies only if file path option is specified. The valid values are CSV and XML. Default=XML.
No
-u
User
Specifies the user name for connecting to SAS Business Data Network.
Yes

Example

In this example, the publish level option (-l) is set to
 termsOnly
. This means that the tags associated with those terms are not published. The following text is entered in the command line application:
C:\Program Files\SASHome\SASBusinessDataNetworkMidtier\3.2\tools\UpdateRelationships 
-b http://<BDN.company.com>/SASBusinessDataNetwork> 
-u <yourUserID> 
-p <yourPassword> 
-l termsOnly
If the publication is successful, the following message is displayed: Publish succeeded. Otherwise, an error message that indicates the issue encountered is displayed.
Last updated: June 7, 2017