Chapter Contents

Previous

Next
SAS Component Language: Reference

Calling SCL Entries

SAS/AF software provides SCL entries for storing program modules. SCL programs can access a module that is stored in another SCL entry. They can pass parameters to the module and can receive values from the module. An SCL module can be used by any other SCL program.

You call an SCL module with a CALL DISPLAY routine that passes parameters to it and receives values that are returned by the SCL entry. The module's ENTRY statement receives parameters and returns values to the calling program.

For example, if you were creating an SCL module to validate amounts and rates that are entered by users, you could store the labeled sections in separate SCL entries named AMOUNT.SCL and RATE.SCL. Then, you could call either of them with a CALL DISPLAY statement like the following:

 call display('methdlib.validate.amount.scl',amount,error);

For more information, see DISPLAY.


Chapter Contents

Previous

Next

Top of Page

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