How to Add a Console Function to CP
Installations may aaathe1r own commands to their Va/370 system. First,
code the module to handle thecommand processing. Follow the CP coding
conventions outlined in an earlier section of this book.
Second, add an entry for the command in theCP DKKCFC module. DKKCFC has two entry points: one for logged-on users and another for
nonlogged-on users. If thecommand is for logged-on users, be sure its
entry is beyond the labelCOKNBEG1. TO place an entry for the command in the DKKCFC module, insert a line
with the following format:
[label]I COKND I commandname,class,min,entrypt(,NCL=1]
co•• andname is a 1-to 8-character name. class
min
entryptNCL=1 is the cOllmand privilege class (up to four classes are
allowed).0 is coded for nonlogged=on user commands or when NCL=1. is the nUllber truncation.
of characters allowed as the minimum
is the entry point of the module you write to process the
new command.
is specified if the command is to be allowed before the user
logs on.When NCL=1, the class is not checked.
After the above entry has been inserted in theDKKCFC module, reload DKKCFC as a pageable module ensuring that it does not cross a page
boundary.You must also load your own module which mayor may not be a
resident module.Part 2. Control Program (CP) 215
Installations may aaa
code the module to handle the
conventions outlined in an earlier section of this book.
Second, add an entry for the command in the
nonlogged-on users. If the
entry is beyond the label
with the following format:
[label]
co
min
entrypt
allowed).
of characters allowed as the minimum
is the entry point of the module you write to process the
new command.
is specified if the command is to be allowed before the user
logs on.
After the above entry has been inserted in the
boundary.
resident module.