Chapter Contents

Previous

Next
NOCHANGE

NOCHANGE



Causes the called program to return the original values for the variables that it received as parameters in an ENTRY statement

Category: Modular Programming and Object Oriented


Syntax
Details
Example
See Also

Syntax

CALL NOCHANGE();


Details

The NOCHANGE routine causes a called program to return the original values for the variables that it received as parameters in an ENTRY statement, disregarding any changes that subsequently may have been made to those variables. This routine is used in the called program that contains the ENTRY statement.

NOCHANGE has no effect on reference arrays. See ARRAY for more information about reference arrays. NOCHANGE overrides the I/O/U mode that was specified for parameters in the ENTRY and METHOD statements.


Example

Suppose that A.SCL calls B.SCL and passes to it the parameters X, Y, and Z. B.SCL tests the _STATUS_ variable for the value C (indicating that a CANCEL command has been issued). If a user exits B.SCL with a CANCEL command, then no updated values are returned to A.SCL.

Here is the A.SCL program:

INIT:
return;

MAIN:
call display('mylib.test.b.scl',x,y,z);
return;

TERM:
return;

Here is the B.SCL program:

entry a b c 8;
INIT:
return;

MAIN:
   ...SCL statements...
return;

TERM:
   if _STATUS_='C' then call nochange();
return;


See Also

APPLY

DISPLAY

ENTRY

METHOD

NOTIFY

SEND

SUPAPPLY

SUPER


Chapter Contents

Previous

Next

Top of Page

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