Table of Contents

Search

  1. Preface
  2. Introduction
  3. Program Design
  4. SSA-NAME3 Functions
  5. Language Specific Guidelines
  6. Controls
  7. Advanced Controls
  8. Address Standardization
  9. ASM Workbench

SSA-NAME3 API Reference Guide

SSA-NAME3 API Reference Guide

ssan3_get_ranges

ssan3_get_ranges

Used to get the SSA-NAME3 Key Ranges for a name or address which the application program will use in a Select statement to retrieve records from the SSA-NAME3 Key table.
This function has been replaced by
ssan3_get_ranges_encoded
.

Parameters

For z/OS COBOL this function is named
GETRNGES
.
Contained in the
Ranges Array
will be a set of "Start" and "End" Key values. These should be used by the calling program to form a set of SQL select statements, or one SQL select statement with a number of
OR’s
.
For example, the
Ranges Array
may contain the following Ranges:
Range #1: Y/$$$$$$ Y/$$$$$/ Range #2: WR$$$$$$ WR$$$$$/
In which case the calling program will select records from the SSA-NAME3 Key Table where SSANAME3 Key values are:
GREATER THAN OR EQUAL TO "Y/$$$$$$" AND LESS THAN OR EQUAL TO "Y/$$$$$/" OR GREATER THAN OR EQUAL TO "WR$$$$$$" AND LESS THAN OR EQUAL TO "WR$$$$$/"
When using
KEY_SIZE=5
, you will still allocate space for 8 byte key ranges (that is, 16 bytes), however the last 6 bytes of each range pair is unused (that is, only the first 10 bytes are used).

Limitations

Required Ranges:
ssan3_get_ranges
will return a maximum of 1024 ranges. The
MAX_ENTRIES
Control can be used to specify a lower maximum value.
Key Size: 8 byte keys must be used in an application environment that uses the SSA-NAME3 server.

0 COMMENTS

We’d like to hear from you!