Saturday, September 23, 2017

Comma position in macro call

Comma is used to separate parameters in the macro call. We seldom care about the comma position.

For example:
%a(lib=a
, name=b)

%a(lib=a,
name=b)

Are the two macro calls identical? It may, or may not. If the code is deployed in LATIN1 but runs in UTF-8 session, it will have different result. In first call, the actual value of parameter LIB is "a(invisible carriage return)".

To make a general availability, please always put the comma just behind value in macro call.

No comments: