Trying to determine the best way to identify the Server/Hostname, the DB2 instance, and the database name when I run an executable/shell script. I assume that the requirement to select a database to run a job should then provide all these components but can't figure out how to access them. The goal is to write one script which can run for multiple databases on multiple servers/instances.
We're running DB2 v10.1 on AIX with Data Studio v3.2, DSWeb Core Services v3.2. (Web Console splash screen says v3.1).
Any help would be greatly appreciated, thanks!