Previous Topic: SET SOURCE TO SYS CommandNext Topic: DATAVIEW Format


SET TERMINAL Command

Allows the use of DBCS characters in the source file.

This command has the following format:

SET TERMINAL 5550

External Source Format

This section describes the layout of the external form of a CA Ideal program, panel, report, unmodeled sequential file dataview, member, and HELP member. The EXPORT command automatically generates this format (except for HELP members, which cannot be exported).

Data is designed to fit in a 72‑column format. The EXPORT command provides ascending sequence numbers in columns 73‑80. Columns 74‑79 contain the six‑digit statement numbers used in compiler and runtime messages. You can use them for reference, but the IMPORT command ignores them. The IMPORT command always renumbers the sequence field of any source that is transported.

In each section, keywords are shown in uppercase, while variable operands are in lowercase. String operands are shown surrounded by apostrophes. When the operand is shown without apostrophes, apostrophes and double‑quotes are taken as data. You can omit the optional keywords, but you must maintain the keyword order. Record breaks can occur only between keywords and operands, not in them.

The only keywords that you can abbreviate are VERSION and SYSTEM. You can abbreviate VERSION as V or VER. You can abbreviate SYSTEM as SYS. You must spell out all other keywords as they appear in the following sections. Keywords that are shown preceded by ‑> (hypen sign followed with right carat sign) must begin in column 3. Columns 1 and 2 must contain the hyphen and right carat characters (‑ and >). Data to transport must not have the characters, hyphen (‑) and right carat (>), in columns 1 and 2.

Variable‑length operand strings are handled in the following manner. All variable‑length strings are represented by one or more delimited strings. Only apostrophes (') and double‑quotes (") are used as delimiters. The next keyword signals the end of the delimited strings. No strings can cross record boundaries. All such strings are concatenated to become the source data string. For example:

1) DATA ' ABCDEFG'‑‑‑‑‑‑> is ABCDEFG with one leading blank
2) DATA " ABCDEFG"‑‑‑‑‑‑> also is ABCDEFG with one leading blank
3) DATA "A'B" '"C'‑‑‑‑‑‑> is the 5 characters A'B"C
4) DATA "'" '"' "'"‑‑‑‑‑‑> is the 3 characters '"'