Multiple choice technology databases

What is the prefix key for executing an OS command in the DB2 CLP?

  1. &

  2. %

  3. !

  4. @

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In DB2 Command Line Processor (CLP), the exclamation mark (!) is used as a prefix to execute operating system commands without exiting the DB2 environment. For example, '!ls' on Unix or '!dir' on Windows would execute those OS commands from within the DB2 CLP session. This allows users to run shell commands while staying in the DB2 command interface.