Chapter Contents

Previous

Next
ABEND

ABEND



Abnormally Terminate a Program

Portability: SAS/C extension


SYNOPSIS
DESCRIPTION
CAUTIONS
EXAMPLE
RELATED FUNCTIONS


SYNOPSIS

#include <spetask.h>

void ABEND(unsigned code, unsigned reason, dumpopt, sysopt);


DESCRIPTION

The SAS/C ABEND macro implements the functionality of the OS/390 Assembler ABEND macro. The code argument specifies the ABEND code, and the reason argument specifies the reason code. dumpopt may be specified as either DUMP or NODUMP, to indicate whether a dump should be produced. sysopt may be specified as either USER or SYSTEM to indicate whether the ABEND is a system ABEND or a user ABEND.


CAUTIONS

ABEND is intended for use only in the SPE environment. The library functions abort or abend should be used to force abnormal termination when using the full library.


EXAMPLE

This example terminates the application with system ABEND code BAD and reason code 0 .

#include <spetask.h>

ABEND(0xbad,0,DUMP,SYSTEM);


RELATED FUNCTIONS

abend , abort


Chapter Contents

Previous

Next

Top of Page

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