# RET Operating System's Last Error Code

> Source: https://manual.pvxplus.com/variables/ret

***Numeric System Variable***

## Contents

Integer, operating system error + 256

## Description

The **RET** variable returns an integer reporting the operating system's error code associated with the last operating call. PxPlus generates this value by adding 256 to the error code value in the **ERR** system variable.

## See Also

**[ERR Last System-Detected Error Value](https://manual.pvxplus.com/variables/err)**

## Example

```
print "RET = ",ret
RET = 258
```
