skip to main content

ELK Directives : NAME Directive

NAME Directive
The NAME directive assigns a different name to the field defined on the next line. This directive can be used to avoid problems created by columns with incompatible or duplicate names. If the directive is used along with the INPUT or OUTPUT directives, it controls the name of the input or output parameter respectively. The name specified by this directive is used as is regardless of the decoration setting.
$ELK NAME=fieldNname
or
*(( ELK NAME=fieldNname ))
or
*>(( ELK NAME=fieldNname ))
Example
Assuming that decoration is not disabled, the Web Service input will include the following parameters: param1, param2, p3_in. The Web Service output will include the following parameters: param1, p2_out, param3:
       Linkage Section.
       01 params.
          03 p1 pic x(10).
          03 p2 pic x(10).
          03 p3 pic x(10).
The following snippet includes an equivalent syntax:
       Linkage Section.
       01 params.
          03 p1 pic x(10).
          03 p2 pic x(10).
          03 p3 pic x(10).

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left