Chapter Contents |
Previous |
Next |
CBT |
Category: | Modular Programming and Object Oriented |
Syntax | |
Details | |
Examples | |
Example 1: Displaying a Particular CBT Frame | |
Example 2: Calling a CBT Entry | |
See Also |
Syntax |
CALL CBT(entry<,frame><,frame-name>); |
Type: Numeric
Type: Character
Details |
The CBT routine opens a CBT entry window. You can optionally specify the name or number of the CBT frame to display initially. For information about CBT entries, see the SAS documentation for SAS/AF software. You can use CBT entries to link detailed instructional information with an application so that the information is readily available.
The following restrictions apply for users of a CBT entry that is called from an SCL program:
Examples |
Display the second frame of the entry EXAMPLE.CBT:
call cbt('example',2);Display the frame named ABC of the entry EXAMPLE.CBT:
call cbt('example',1,'abc');
Suppose an application requires users to be familiar with a particular set of terminology. You use the following program to call a CBT course (in this example, TERMINAL.CBT) that teaches the appropriate information. The following example runs the CBT entry if a user issues the command TEACH. Then, when the user exits the CBT course, it returns control to the SCL statement that follows the call to TERMINAL.CBT.
control always; if (upcase(word(1))='TEACH') then do; call nextcmd(); call cbt('terminal'); end;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.