Chapter Contents

Previous

Next
WTP

WTP



Write to Programmmer

Portability: SASC


SYNOPSIS
DESCRIPTION
RETURN VALUE
IMPLEMENTATION
EXAMPLE


SYNOPSIS

#include <oswto.h>
int WTP(char *format, ...);


DESCRIPTION

The WTP function implements the functionality of the OS/390 assembler WTO macro with options set to indicate routing to the programmer. The format argument is the address of a null-terminated string. This can optionally be followed by one or more variables to be output according to the format characters in the input string. The vformat function is used to convert the variable list. See vformat for a list of acceptable conversion characters.


RETURN VALUE

WTP returns 0 if the WTP macro was successful. If the WTP macro fails, it returns the return code from the macro, which will be a positive value. WTP might return -2 if there was not enough memory to perform the WTP.


IMPLEMENTATION

The WTP function is implemented by the source module L$UWTO.


EXAMPLE

This example uses WTP to send two single-line programmer's messages:

    #include <oswto.h>
    int iLine;

    iLine = 20;

    WTP("Error discovered at line: %i", iLine);
    WTP("Aborting...");


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.