# QUIT Terminate PxPlus Session

> Source: https://manual.pvxplus.com/directives/quit

## Format

**QUIT**

## Description

Use the **QUIT** directive to terminate a PxPlus session and return to the operating system. If the **ERR** variable's value is not zero (i.e. an error has occurred), then the operating system is informed that an error has occurred within PxPlus. This allows you to do external testing of error conditions.

When you use **QUIT** in a compound statement, it must be the final directive.

## See Also

**[BYE Terminate PxPlus Session](https://manual.pvxplus.com/directives/bye)**  
**[RELEASE Terminate PxPlus Session](https://manual.pvxplus.com/directives/release)**

## Example

```
if ctl=4 \
     then quit
save
quit
```
