IBM Books

Net.Data Reference

Strings

Any sequence of alphabetic and numeric characters and punctuation. If the string appears within double quotes, the new-line character is not allowed. Variable references are currently interpreted literally as part of the string and not resolved as variable references or function calls, except where otherwise noted. See the string parameter description in each language construct for restrictions when used with the language construct.

To specify double quotes insited a quoted string, use two pairs of double quotes. A string used as function argument or as term in a comparison expression can contain double quotes. For example, if you define a string value as:

%DEFINE result = " ""Hello world!"" "

The value of result is:

"Hello world!"

An HTML statement is a string.

OS/400 users only: Strings used as function arguments, terms, and variable values can contain variable references and function calls. In the following example, the function call myfunc2 has a string parameter that contains a variable reference and a function call.

%html(report) {
  @myfunc2("abc$(var1)@myfunc()")
%}

Net.Data resolves the variable reference $(var1) and the function call @myfunc(), rather than interpreting them literally as part of the string, before passing the string to the function myfunc2.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]