END subcommand (DSN)

The DSN subcommand END is used to end the DSN session and return to TSO.

Environment

This subcommand originates from a TSO input stream when DSN is running in either background or foreground mode.

Data sharing scope: Member

Authorization

None is required.

Syntax

Read syntax diagramSkip visual syntax diagramEND

Usage note

Ending the DSN session in batch or foreground: In batch, if END is not found in the SYSIN stream, /* or // ends the DSN session. From the foreground, pressing the ATTENTION key twice ends the DSN session.

Examples

Example: Ending a DSN session
The following example shows how TSO responds when a user ends a DSN session.
TSO prompt :  READY
USER enters:  DSN SYS (SSTR)
DSN prompt :  DSN
USER enters:  RUN PROGRAM (MYPROG)
DSN prompt :  DSN
USER enters:  END
TSO prompt :  READY