You can use data items as host variables even if they have not been declared using BEGIN DECLARE SECTION and END DECLARE SECTION.
When declaring host variables, you should bear the following in mind:
- Host variable names must conform to the COBOL rules for data items.
- Host variables can be declared anywhere that it is legal to declare COBOL data items.
- Underscores (_) are not permitted in host variable names.