COBOL Manual for TNS/E Programs (H06.03+)
Program Execution
HP COBOL Manual for TNS/E Programs—520347-003
12-17
DEFINEs
DEFINEs
A DEFINE is a named set of attribute/value pairs. DEFINEs are similar to ASSIGN
messages, but more versatile. DEFINEs involve too many commands to be described
completely here.
Topics:
•
DEFINE and ASSIGN
•
Controlling the Propagation of DEFINEs
•
DEFINE Names
•
DEFINE Attributes
•
ADD DEFINE Command
For more information on DEFINEs:
DEFINE and ASSIGN
Both DEFINEs and ASSIGN messages allow you to specify information about a file
before you start the process that uses that file.
Example 12-5. CLEAR Command
43>CLEAR ALL { Clears all ASSIGN and PARAM values }
44>CLEAR ALL ASSIGN { Clears all ASSIGN values }
45>CLEAR ALL PARAM { Clears all PARAM values }
46>CLEAR ASSIGN in-file { Clears assignment for in-file only }
47>CLEAR PARAM DEBUG { Clears the DEBUG switch }
Topics Sources
Full documentation TACL Reference Manual
Programmatic use Guardian Programmer’s Guide
Further information Guardian User’s Guide
Table 12-1. Differences Between DEFINE and ASSIGN (page 1 of 2)
DEFINE ASSIGN
Processed by Operating environment HP COBOL program
Propagated to Any process that your HP COBOL
program creates, unless the new
process specifies DEFMODE OFF
Processes that your
HP COBOL program creates
and to which it explicitly
passes ASSIGNs
Accepted for
compiler input and
output files
Yes No










