NetBase for MPE Reference Guide

Chapter 2
2-6
Using the NBDISABLE JCW
Many of the NetBase features that are enabled through NBCTRL can be disabled for a particular job
or session. This is done with a job control word called NBDISABLE. The NetBase shell checks
NBDISABLE the first time a user calls FOPEN or DBOPEN for a file or database. If any of the flags are
set that disable a service, NetBase disables those services for that user only. NBDISABLE cannot be
used to enable a service.
NBDISABLE can be set from MPE using the following command:
Syntax
:SETJCW NBDISABLE=jcwvalue
where
jcwvalue = 1 - Disables buffering
4 - Disables userexits
8 - Disables critical
16 - Disables Directory Wildcard search
32 - Disables direct connect communication
64 - Do not map NetBase equations locally
128 - Disables NetBase spooling
256 - Disables AutoRPM
512 - Disables remote file building
1024 - Disables server release on last close
WARN - Enables NetBase Application Tracing
FATAL - Disables all NetBase services
As an example, turn off all NetBase services by setting the JCW to FATAL:
:SETJCW NBDISABLE=FATAL
:RUN PROGRAM
The current value of NBDISABLE can be determined at any time by issuing the :SHOWJCW command
in MPE.
The flags and their meanings can be displayed in NBCTRL using the following command:
> HELP NBDISABLE
Note. NetBase services can also be disabled at the program level. Turn to the
PROGRAM section in Chapter 4 for more information about this feature.