Specifies the namespace for a class to be imported. This directive enables you to write just the class name in the program code, without its namespace, potentially making the code shorter and simpler.
Restriction: This directive is supported for managed COBOL only.
Syntax:
>>---.---ILUSING---"namespace"--.---><
+-NOILUSING----------------+
Parameters:
-
namespace
- The name of a namespace to be imported into the program.
Properties:
Default:
|
The command line default is NOILUSING .
Note: Specifying NOILUSING clears any settings that are in effect as a result of previous ILUSING directives.
|
IDE equivalent:
|
|
$SET:
|
Initial.
|
Comments:
You can add this directive more than once, to add multiple namespaces to your programs.
Examples:
When referring to a class whose name begins with the specified namespace (or one of the specified namespaces if there are multiple ILUSING directives), the namespace may be omitted. For example:
Is equivalent to:
Note that the complete namespace must be specified in an ILUSING directive for it to be effective.