Chapter Contents

Previous

Next
Examples

SASCMNU: Display the Main Menu

The display program, SASCMNU, corresponds to the IBM DFH$xMNU programs (where x is A for Assembler, P for PL/I, and C for COBOL). It displays the main selection menu for the FILEA application example on the terminal. From this menu, all other functions can be selected.

/*- - - - - - - - - - - - - - - - - - - - - - - - - -  - - - - +
|                                                              |
|                   S A S / C  S A M P L E                     |
|                                                              |
|         NAME: SASCMNU                                        |
|      PURPOSE: Traditional CICS FILEA sample program          |
| INSTALLATION: Assemble the associated BMS map (SASCAMA)      |
|               and then use DSECT2C to create a C header that |
|               defines the map. Use the sample PPT input      |
|               (SASCTBLS) to define the resource CICS.        |
|      COMPILE: Use the CICS translator procedure LCCCPCL      |
|      EXECUTE: Via transaction SMNU                           |
|       USUAGE:                                                |
| SYSTEM NOTES:                                                |
|                                                              |
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
#include <sascaga.h>
void main()
main()
{
   EXEC CICS SEND MAP("SASCAGA") MAPONLY ERASE;
   EXEC CICS RETURN;
}


Chapter Contents

Previous

Next

Top of Page

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