# WTL (Write-To-Log)

## Syntax:

    WTL(msgtxt)

## Arguments:

msgtxt
  a 1 to 126 character message that can contain any printable EBCDIC characters.

## Module Name:

SWXWTL

## Service Description:

The WTL function is used to write messages to the system log. The messages go directly to the log and do not appear on the operator's console.

## Returned Information:

The MVS WTL macro does not return a useful return code. Therefore, the WTL function always returns a value of zero. If you CALL the WTL function the RESULT special variable will also contain zero. The RC special variable remains unchanged.

## Examples:

1. Call the WTL function to write a message to the system log:

       call wtl 'Beginning of application test.'

© Copyright 1998 by Open Software Technologies, Inc.