z/OS UNIX System Services (Db2 command line processor)

The z/OS UNIX System Services command can be run in the Db2 command line processor can be run by preceding the command with an exclamation mark (!).

Read syntax diagramSkip visual syntax diagram ! unix-command
!
Indicates that the text that follows is a this is a z/OS UNIX System Services command.
unix-command
Any z/OS UNIX System Services command.

Examples

Example: Listing files in the current directory
Suppose that you are in a Db2 command line processor session, and you need to run the z/OS ls command to obtain a list of files in the current directory. Run this command:
!ls