For environments that contain N DB2 database subsystems, either through the z/OS console or z/OS applications. If you want to execute DB2 commands in a specific DB2 system, you must use the command prefix, for example,-DSN1 dis group details. All DB2 commands can be executed.
This article outlines six methods to execute DB2 commands.
Environment product: DB2 UDB
Platform: z/OS
Version: v8
Q: How do I execute DB2 commands?
A: You can run the following DB2 command:
1. For environments that contain multiple DB2 database subsystems, either through the z/OS console or the z/OS application. If you want to execute DB2 commands in a specific DB2 system, you must use the command prefix, for example,-DSN1 dis group details. All DB2 commands can be executed.
2. Through the IMS console or application, you can run all DB2 commands except Start DB2. A specific command qualifier is also required.
3. On the CICS console, you can run all DB2 commands except Start DB2. Since CICS can only be connected to one DB2 system, the execution of DB2 commands does not require a specific prefix symbol.
4. On the TSO console or DB2I, you can use the following command to open the DB2 command console: tso dsn system (subsystem-name ). You can also run all DB2 commands except Start DB2.
5. You can run all DB2 commands by executing the DB2 command through the application of the apt-authorized.
6. Use the IFI entation facility interface application. All DB2 commands can be executed.
The above content is an introduction to the six-way execution of DB2 database commands. I hope you will gain some benefits.