read

Description

Reads Interactive SQL statements from a file.

Syntax

read [ encoding {identifier | string}] file_name [ parameters ]

Parameters

encoding {identifier | string}

allows you to specify the encoding that is used to write the file. encoding can be used only with the ASCII format.

  • identifier – is the identifier you are using to indicate the file you are reading.

  • string – is the string you are using to indicate the file you are reading.

file_name

is the name of the file you are reading.

parameters

correspond to the parameters listed in the statement file.

Examples

Example 1

These are examples of the read statement:

READ status.rpt '160'

READ birthday.SQL [>= '1988-1-1'] [<= '1988-1-30']

Usage

Permissions

Any user can execute this command.