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

ListTablesBySess

ListTablesBySess

Returns a list of sources or targets used in a session. When you list sources or targets,
pmrep
returns source or target instance names to the window. Use ListTablesBySess in a shell script with other
pmrep
commands. For example, you can create a shell script that uses ListTablesBySess to return source instance names and uses Updatesrcprefix to update the source owner name.
When you use ListTablesBySess,
pmrep
returns source and target instance names as they appear in the session properties. For example, if the mapping contains a mapplet with a source,
pmrep
returns the source instance name in the following format:
mapplet_name.source_name
The ListTablesBySess command uses the following syntax:
listtablesbysess -f <folder_name> -s [<qualifying_path>.]<session_name> -t <object_type_listed> (source or target)
The following table describes
pmrep
ListTablesBySess options and arguments:
Option
Argument
Description
-f
folder_name
Required. Name of the folder containing the session.
-s
session_name
Required. Name of the session containing the sources or targets. You can enter a reusable or non-reusable session name. However, you cannot enter an instance of a reusable session name.
To enter a non-reusable session name in a workflow, enter the workflow name and the session name as
workflow_name.session_name
.
-t
object_type_listed
Required. Enter source to list sources, or enter target to list targets.
For example, to list all sources in a reusable session, enter the following text at the prompt:
listtablesbysess -f myfolder -s s_reus_sess1 -t source
pmrep
returns the following information:
ITEMS mapplet1.ORDERS Shortcut_To_ITEM_ID listtablesbysess completed successfully.
When the mapping contains a mapplet with a source,
pmrep
includes the mapplet name with the source, such as mapplet1.ORDERS.
For example, you can list all targets in a non-reusable session in a workflow:
listtablesbysess -f myfolder -s wf_workkflow1.s_nrsess1 -t target
pmrep
returns the following information:
target1_inst ORDERS_BY_CUSTID Shortcut_To_tgt2_inst listtablesbysess completed successfully.


Updated August 15, 2019