www.sas.com > Service and Support > Technical Support
 
Technical Support SAS - The power to know(tm)
  TS Home | Intro to Services | News and Info | Contact TS | Site Map | FAQ | Feedback


/*--------------------------------------------------------------------+
|                                                                     |
|                 Copyright (c) 1995, SAS Institute Inc.              |
|                   Unpublished - All Rights Reserved                 |
|                                                                     |
|                     S A S / C  S A M P L E                          |
|                                                                     |
|       Name: ALOADMD                                                 |
|                                                                     |
|   Language: C                                                       |
|                                                                     |
| EntryPoint: @DYNAMN                                                 |
|                                                                     |
| Entry Type: C Linkage                                               |
|                                                                     |
| Files Note: 'prefix' is the installation defined high level         |
|             qualifier for the SAS/C product.                        |
|                                                                     |
|   Function: Provide a non-INDEP dynamically loadable C function     |
|             which displays the CRAB address being used and then     |
|             returns to the caller.                                  |
|                                                                     |
|    Purpose: MVS see prefix.SAMPLE.ASM(ALOADMM) prolog.              |
|             CMS see SAMPLASM MACLIB(ALOADMM) prolog                 |
|                                                                     |
| MVS -                                                               |
|     Compile/Link/Go: see prefix.SAMPLE.ASM(ALOADMM) prolog          |
|                                                                     |
| CMS -                                                               |
|     Compile/Link/Go: see SAMPASM MACLIB(ALOADMM) prolog             |
|                                                                     |
| Misc Notes:                                                         |
|                                                                     |
|                                                                     |
+--------------------------------------------------------------------*/
#include <stdio.h>
#include <options.h>

extern void crbc(void);

int _dynamn(void)
{
  printf("CDYNLOAD: Entry\n");
  printf("CDYNLOAD:----------------->");
  crbc();
  printf("CDYNLOAD: Returning\n");
  return(0);
}

Copyright (c) 2000 SAS Institute Inc. All Rights Reserved.
Terms of Use & Legal Information | Privacy Statement