Table of Contents

Search

  1. Preface
  2. Command Line Programs and Utilities
  3. Installing and Configuring Command Line Utilities
  4. Using the Command Line Programs
  5. Environment Variables for Command Line Programs
  6. Using infacmd
  7. infacmd as Command Reference
  8. infacmd aud Command Reference
  9. infacmd autotune Command Reference
  10. Infacmd bg Command Reference
  11. infacmd ccps Command Reference
  12. infacmd cluster Command Reference
  13. infacmd cms Command Reference
  14. infacmd dis Command Reference
  15. infacmd idp Command Reference
  16. infacmd edp Command Reference
  17. Infacmd es Command Reference
  18. infacmd ihs Command Reference
  19. infacmd ipc Command Reference
  20. infacmd isp Command Reference
  21. infacmd ldm Command Reference
  22. infacmd mas Command Reference
  23. infacmd mi Command Reference
  24. infacmd mrs Command Reference
  25. infacmd ms Command Reference
  26. infacmd oie Command Reference
  27. infacmd ps Command Reference
  28. infacmd pwx Command Reference
  29. infacmd roh Command Reference
  30. infacmd rms Command Reference
  31. infacmd rtm Command Reference
  32. infacmd sch Command Reference
  33. infacmd search Command Reference
  34. infacmd sql Command Reference
  35. infacmd tdm Command Reference
  36. infacmd tools Command Reference
  37. infacmd wfs Command Reference
  38. infacmd ws Command Reference
  39. infacmd xrf Command Reference
  40. infacmd Control Files
  41. infasetup Command Reference
  42. pmcmd Command Reference
  43. pmrep Command Reference
  44. Working with pmrep Files

ExecuteQuery

ExecuteQuery

Runs a query. You can choose to display the result or write the result to a persistent input file. If the query is successful, it returns the total number of qualifying records.
Use the persistent input file with the ApplyLabel, AddToDeploymentGroup, MassUpdate, and Validate commands.
The ExecuteQuery command uses the following syntax:
executequery -q <query_name> [-t <query_type (shared or personal)>] [-u <output_persistent_file_name>] [-a (append)] [-c <column_separator] [-r <end-of-record_separator>] [-l <end-of-listing_indicator>] [-b (verbose)] [-y (print database type)] [-n (do not include parent path)] [-s <dbd_separator>]
The following table describes
pmrep
ExecuteQuery options and arguments:
Option
Argument
Description
-q
query_name
Required. Name of the query to run.
-t
query_type
Optional. Type of query to run. You can specify public or private. If not specified,
pmrep
searches all the private queries first to find the matching query name. Then it searches the public queries.
-u
persistent_output_file_name
Optional. Send the query result to a text file. If you do not enter a file name, the query result goes to stdout.
-a
-
Optional. Appends the query results to the persistent output file. If you do not enter this option,
pmrep
overwrites the file content.
-c
column_separator
Optional. Character or set of characters used to separate object metadata columns. Use a character or set of characters that is not used in repository object names. If any repository object name contains spaces, you might want to avoid using a space as a column separator.
If you omit this option,
pmrep
uses a single space.
-r
end-of-record_separator
Optional. Character or set of characters used to specify the end of the object metadata. Use a character or set of characters that is not used in repository object names. If you omit this option,
pmrep
uses a new line.
-l
end-of-listing_indicator
Optional. Character or set of characters used to specify the end of the object list. Enter a character or set of characters that is not used in repository object names. If you omit this option,
pmrep
uses a period.
-b
-
Optional. Verbose. Displays more than the minimum information about the objects. If you omit this option,
pmrep
prints a shorter format including the object type, the word reusable or non-reusable, the object name and path. Verbose format includes the object status, version number, folder name, and checked out information.
The short format for global objects, such as label, query, deployment group, and connection, includes the object type and object name. Verbose format includes the label type, query type, deployment group type, creator name, and creation time.
-y
-
Optional. Displays the database type of sources and targets.
-n
-
Optional. Does not include the full parent path of non-reusable objects in the query result. For example, if you use this option and the result includes a non-reusable transformation,
pmrep
prints transformation_name instead of mapping_name.transformation_name. This option can improve
pmrep
performance.
-s
dbd_separator
Optional. If an ODBC source has a period (.) in the name, define a different separator character when you define the source object. For example, instead of database_name.source_name, define the source object as database_name\source_name, and define the dbd_separator as backslash (\).

0 COMMENTS

We’d like to hear from you!