Previous Topic: EMAILWEBREPORT Statement—Specify Whether to Email a PeopleSoft Web ReportNext Topic: ENDPOINT_URL Statement—Specify a Target Endpoint URL


ENCODING Statement—Specify the Character Encoding of a File

The ENCODING statement specifies the character encoding of the text file to be monitored. You can omit this statement if the text file is ASCII.

Supported Job Type

This statement is optional for the Text File Reading and Monitoring job type.

Syntax

This statement has the following format:

ENCODING char_set_name
char_set_name

Specifies the name of the character set used to encode the data in the file.

Limits: Up to 256 characters; case-sensitive

Examples: US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16

Note: The supported character sets depends on your operating system and Java Virtual Machine (JVM).

Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.

Example: Monitor a Text File Encoded in ISO-8859-1

The following job monitors a text file that contains data encoded in ISO-8859-1 (ISO Latin Alphabet No. 1 or ISO-LATIN-1). The job completes successfully if the specified string is found.

AGENT MONAGT
TEXTFILE /export/home/logs/transactions.log
TEXTSTRING 'ERROR MESSAGE'
SEARCHRANGE LINE FROM(1) TO(50)
ENCODING ISO-8859-1