Usage
Creates a method that converts shorthand character strings to their full-length equivalents. For example, you can create a method that converts state codes to state names.
Note: In order to use a created conversion table, you have to populate it first.
Syntax
CREATE CONVERSION_TABLE conversion-table
SOURCE CHAR(length)
TARGET CHAR(length)
[ DESCRIPTION ’descriptive text up to 80 characters’ ]
;
Example
File converstables.rsl creates two conversion tables, Department Codes and State Codes, to convert department and state codes into names.
--converstables.rsl
CREATE CONVERSION_TABLE "Department Codes"
SOURCE CHAR(3)
TARGET CHAR(20)
;
CREATE CONVERSION_TABLE "State Codes"
SOURCE CHAR (2)
TARGET CHAR (20)
;