Library /sys$common/syshlp/PCA$HELP.HLB  —  User Routines, Example
    The DEMO_USER_ROUTINE example is intended to introduce the
    concept of User Routines. The example files are:

    PCA$EXAMPLES:*DEMO_USER_ROUTINE*.*

1  –  Construction

    The example user routine image can be constructed by running:

  $ @PCA$EXAMPLES:DEMO_USER_ROUTINE.COM

    If you are using the VAX C rather than DEC C compiler replace the
    line:

        SYS$LIBRARY:DECCRTL.OLB/LIBRARY
                    ^^^

    from VAX_DEMO_USER_ROUTINE.OPT with:

        SYS$LIBRARY:VAXCRTL.OLB/LIBRARY
                    ^^^

2  –  Usage

    Run an example program to check user routine support:

  $ DEFINE DEMO_USER_ROUTINE DISKN:[USER]DEMO_USER_ROUTINE.EXE

    You must define the logical name to access the user routine image
    if it is not found in SYS$SHARE.

  $ DEFINE LIB$DEBUG PCA$COLLECTOR
  $ RUN PCA$EXAMPLES:PCA$8QUEENS.EXE
  PCAC> SET SERVICES/USER_ROUTINE=(DEMO_USER_ROUTINE,-)
  _PCAC> DEMO_ENTRY$USER_ROUTINE,-
  _PCAC> DEMO_EXIT$USER_ROUTINE
  PCAC> GO

    Using LIB$DEBUG is the preferred method for using the PCA
    collector.
Close Help