Jazz™ LRM: Section 4, Topical Reference

This chapter describes a number of 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 blocks (within COBOL/END COBOL sections).

 

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

File Control

In COBOL you have to Open and Close files, Start and Stop SQL, and so on. Jazz™ does its best to ensure that you don’t have to think about this, generating the relevant statements when they’re needed. However sometimes it needs a bit of help, in which case you need to know what’s happening.

 

To be written.

BREAK Logic

To be written.  MANASYS had some powerful facilities to write logic to be executed at the beginning and end of control breaks. Jazz may provide these, but hopefully with a less clunky syntax.  To be determined.