Jazz LRM: Section 4, Topical Reference

This chapter describes some Jazz features that apply to more than one statement.

Jazz™ LRM: Section 4, Topical Reference. 1

Figurative Constants. 1

Built-In Functions. 2

Implementation Status. 2

$Changed(field), $Same(field) 2

$Concatenate(String field 1, String field 2 [,String field 3]…) 3

$Len. 3

$Now.. 4

$Num(field), $String(field) 4

$Same. 4

$String. 4

$Today. 4

$Trim(string field) 4

$Within(String1, String2) 5

Conditions. 5

Types of Conditions. 5

NULL data in Conditions. 6

Generic references in conditions. 7

Using Conditions. 7

NULL and NOTNULL fields. 9

Validation. 10

File Control 13

Report Layouts. 14

BREAK Logic. 16

 

Figurative Constants 

A Figurative Constant is a word like “Spaces”, “Zeros” that means a particular constant value. These are simply adopted from COBOL, they have the same names and meanings. Figurative Constants are: -

 

ZERO, ZEROS, ZEROES

Represents the numeric value zero (0)

SPACE, SPACES

Represents one or more blanks or spaces.

HIGH-VALUE, HIGH-VALUES

Represents one or more occurrences of the character that has the highest ordinal position in the collating sequence used.

LOW-VALUE, LOW-VALUES

Represents one or more occurrences of the character that has the lowest ordinal position in the collating sequence used.

QUOTE, QUOTES

Represents one or more occurrences of:

·         The quotation mark character ("), if the QUOTE compiler option is in effect

·         The apostrophe character ('), if the APOST compiler option is in effect

QUOTE and QUOTES cannot be used in place of a quotation mark or an apostrophe to enclose an alphanumeric literal.

 

The following COBOL figurative constants are not supported by Jazz except with COBOL statements.

 

ALL literal

ALL literal represents one or more occurrences of the string of characters that compose the literal.

 

symbolic-character

and

NULL, NULLS

 

For more information about figurative constants, refer to this web page.

Built-In Functions

Conditions