COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
SHOW DEFINE FILE
SHOW DEFINE *
To find out what ASSIGN commands are active, give the ASSIGN command with no parameters:
ASSIGN
To find out what PARAM commands are active, give the PARAM command with no parameters:
PARAM
Changing or Clearing Unwanted Preparation Commands
To change or clear a DEFINE, you must use these TACL commands:
FunctionTACL Command
Changes the attribute values of an active DEFINEALTER DEFINE
Clears (deletes) an active DEFINEDELETE DEFINE
For details on the preceding TACL commands, see the TACL Reference Manual.
To change or clear an ASSIGN or PARAM command, you use the TACL command CLEAR. Some
examples of the CLEAR command follow.
TACL Command That Clears ItActive Command
CLEAR ASSIGN PROG1.MAJORACCTASSIGN PROG1.MAJORACCT,&
\NICE.$FRNC.SIGNIF.CUST
CLEAR PARAM NONSTOPPARAM NONSTOP OFF
CLEAR ALL ASSIGNOne or more ASSIGN commands
CLEAR ALL PARAMOne or more PARAM commands
CLEAR ALLOne or more ASSIGN or PARAM commands
Executing an HP COBOL Program
You can start your program executing either from a TACL prompt (that is, from your TACL process)
or from any other process. In either case, the operating environment creates a new process—your
executing program—and that process is affected by any ASSIGN commands, PARAM commands,
and DEFINEs that are active when the process is created (see Preparing to Execute an HP COBOL
Program).
Like every new process, your executing HP COBOL program receives a startup message from the
operating environment. The startup message contains names for the IN file, the OUT file, the home
terminal, and the default volume and subvolume. As an HP COBOL application programmer, you
need not get involved with the startup message itself. If you need to manipulate the startup message,
you can use Saved Message Utility (SMU) routines.
Starting an HP COBOL Program From a TACL Prompt
To start an HP COBOL program from the TACL prompt, use the TACL command RUN. In the simplest
case, the program retrieves input for unqualified ACCEPT statements from your home terminal and
displays run-time diagnostic messages and the output of unqualified DISPLAY statements on your
home terminal. If the file ID of your loadfile is $SYSTEM3.ECOBOL.PROG1, you can execute your
program with this command:
RUN $SYSTEM3.ECOBOL.PROG1
You can omit the keyword RUN and the subvolume that your program is on if a default subvolume
is specified on #PMSEARCHLIST. To specify $VOLUME.SUBVOL as a default on #PMSEARCHLIST,
execute this TACL command before starting your program:
Executing an HP COBOL Program 825










