• Aucun résultat trouvé

THEN ELSE

Dans le document OS PL/I (Page 145-150)

DCL I FLOAT BIN(60};

IF 1 THEN ELSE

. . . . , ... ,

(The THEN clause will always be executed.>

IF 0 THEN • ' •• ; ELSE , ••• ;

(The ELSE clause will always be executed.) DO WHILE(l);

(The loop will always be executed and may be permanent.>

DO WHILE(O)i

(The loop will never be executed.)

~p!~~t!2n: A constant has been supplied in an IF

statement or WHILE expression. Execution of the statement can result in one flow of control only.

AREA VARIABLE FOR OrFSET D INVALID.

COMPILER RESTRICTION. SPECIFICATION OF AREA VARIABLE ASSOCIATED WITH OFFSET D NOT VALID IN THIS STATEMENT.

Part I: Compile-time(IEL) Messages 141

***

BEFORE CALLING IBM FOR PROGRAMMING SUPPORT, REFER TO PAGE 3

***

IEL07761 E

IEL07771 W

IEL07781 S

IEL07791 S

DCL 0 OFFSET (A), A AREA BASED (P);

o -> A = Xi

~~E!2n~t!Qn: See the relevant section of the language reference manual for this compiler for an explanation of the language restrictions concerning the use of qualified AREA variables.

CONSTANT SUBSCRIPT OF D OUT OF RANGE.

VALUE OF CONSTANT SUESCRIPT FOR ARRAY 0 IS OUT OF RANGE BUT HAS NOT BEEN REPLACED, ..

(SUBSCRIPTRANGE):PIG:PROCi DCL A(2,3);

A (6,,3) = 1;

END;

TOO MANY ITEMS IN 'INITIAL' LIST FOR D.

TOO MANY ITEMS IN 'INITIAL' LIST FOR ARRAY D. REDUNDANT ITEMS IGNORED.

DCL A(2) INIT(1,2,3);

'ISUB' VARIABLE FOR D OUT OF RANGE.

'ISUB" VARIABLE FOR DEFINED ARRAY 0 OUT OF RANGE. RESULTS OF EXECUTION UNDEFINED.

DCL A(10,10), B(4,4)

DEFINED A(1*lSUB,3SUB)i

Explana~!Qn: The 3SUB variable is a reference to the third dimension of an array having only two dimensions.

INVALID REPETITION FACTOR IN 'INITIAL' FOR D.

ZERO OR NEGATIVE REPETITION FACTOR IN 'INITIAL' ATTRIBUTE FOR ARRAY D. REPETITION FACTOR IGNORED.

DCL A(10) INIT«O)1~(-2)1);

I

IEL07981 S

IEL07991 W

IEL08001 S

INITIAL VALUE OF ITERATIVE SPECIFICATION IS OUTSIDE THE RANGE OF THE 'BY' AND 'TO" EXPRESSIONS. LOOP WILL NOT BE EXECUTED.

1. DO I = 1 BY -2 TO 10;

2. DO I = 1 BY 3 TO -10;

INVALID IDENTIFIER IN CHECK LIST.

INVALID IDENTIFIER IN CHECK LIST. IDENTIFIER IGNORED.

Exampl~:

(CHECK(SQRT»: P:PROC~

DCL SQRT BUILTIN;

~E!~~1!Qn: The CHECK condition can be enabled only for variables, label variables, and label or entry constants.

programmer Re§EQn§~: Remove the invalid identifier from the name list in the CHECK condition prefix.

AREA ASSOCIATED WITH OFFSET D MAY BE INVALID FOR LOCATOR CONVERSION IN 'RETURN'.

COMPILER RESTRICTION. AREA ASSOCIATED WITH OFFSET D INVALID FOR LOCATOR CONVERSION FOR 'RETURN' STATEMENT.

~RETURN' EXPRESSION WILL BE IGNORED IF THE INVALID COMBINATION OF 'RETURN' AND 'ENTRY' IS USED.

P: PROC RETURNS (OFFSET(A»i Q: ENTRY RETURNS (POINTER);

DCL A AREA BASED"

PTR POINTER, RETURN (PTR);

~~lanati2n: If locator conversion is required in a RETURN statement, the offset must have an associated area. The area must be unsubscripted, i t cannot be defined; if i t is based i t must be based on an explicit non-based,

non-defined unsubscripted pointer.

f~2grammer response: Ensure that the combination of return expression and entry type never requires locator

conversion to be performed.

INVALID SPECIFICATION IN 'WAIT'.

INVALID SPECIFICATION OF NUMBER OF EVENTS IN 'WAIT' STATEMENT. SPECIFICATION IGNORED.

DCL CE1,E2) EVENT~ F FILEi

WAIT (E1,E2)(F);

Part I: Compile-timeCIEL) Messages 143

••• BEFORE CALLING IBM FOR PROGRAMMING SUPPORT, REFER TO PAGE 3 •••

t

IEL0801I S

IEL0802I S

IEL08031 S

IEL08041 W

~!E!~~t!2~: The number of events specification in the WAIT statement must be convertible to a FIXED BINARY integer.

INVALID EXPRESSION IN 'DELAY'.

INVALID EXPRESSION IN 'DELAY' STATEMENT. ZERO ASSUMED.

DCL F FILE;

DELAY (F);

EXElan~~!2~: The expression in the DELAY statement must be convertible to a FIXED BINARY integer.

INVALID EXPRESSION IN 'RETURN'.

INVALID EXPRESSION IN 'RETURN' STATEMENT. EXPRESSION IGNORED.

DCL C CONDITION;

RETURN (C);

~!E!~~~E!~: The expression in a RETURN statement must be problem data or locator. area, label, event, file, or task program control data.

INVALID 'DISPLAY' EXPRESSION.

'DISPLAY' EXPRESSION IS NOT A VALID DATA TYPE OR ELEMENT EXPRESSION. STATEMENT IGNORED.

DCL F FILE, A(3) CHAR(l) DISPLAY (F);

DISPLAY (A);

E!Ela~~ti2~: The argument of a DISPLAY statement must be an element expression that can be converted to character form.

'DISPLAY' STRING LENGTH EXCEEDS 72.

STRING LENGTH FOR 'DISPLAY' EXCEEDS 72 CHARACTERS.

TERMINAL MAY NOT SUPPORT THIS [FIRST N CHARACTERS USED].

DCL A CHAR(150);

DCL B CHAR(80);

DISPLAY (A);

DISPLAY (B);

~!E!~n~E!2n: The first 126 characters of a DISPLAY

expression will always be Ef~~2~!tt~9 to the terminal, but if the terminal is restricted to a length of 72 bytes.

I I

IEL0805I S

IEL0806I E

IEL0808I W

IEL0809I W

the first 126 characters will be printed, even if there is no restriction on the terminal used by 'the system.

The example above would result in the full text of the message being produced for DISPLAY(A), but the text of the message enclosed within square brackets will !!2!: be

produced for DISPLAY(B).

'REPLY' CONTAINS NON-ELEMENT EXPRESSION.

'REPLY' EXPRESSION, IS NOT A CHARACTER STRING EXPRESSION.

'REPLY' OPTION IGNORED.

DCL ABCC2,3) FIXED BINARYi DISPLAYC'MESSAGE') REPLY(ABC)i

§~Elana~!Q!!: The expression in the REPLY statement is not a character string variable. The REPLY option is ignored.

If an EVENT option is present, this too is ignored.

'REPLY' STRING LENGTH EXCEEDS N.

COMPILER RESTRICTION. STRING LENGTH FOR 'REPLY' TOO LONG.

FIRST N CHARACTERS USED.

DCL R CHAR(100)i

DISPLAYC'MESSAGE') REPLY(R)i

§~Ela!!~ti2!!: The length of the REPLY expression is more than 72 bytes. Only the first 72 bytes of the message are transmitted.

T NOT ENABLED. 'SIGNAL' IGNORED.

T CONDITION NOT ENABLED. STATEMENT IGNORED.

(NOZERODIVIDE): PIG:PROCi

SIGNAL ZERODIVIDEi ENDi

Exp!~!!~tiQ!!: The SIGNAL statement for a disabled condition acts as a null statement.

'CHECK' NOT ENABLED FOR D

'CHECK' CONDITION NOT ENABLED FOR VARIABLE D IN SIGNAL STATEMENT. VARIABLE IGNCRED.

~~mpl~:

CCHECK(A,B»:PIG:PROCi

Part I: Compile-time (IEL) Messages 145

***

BEFORE CALLING IBM FOR PROGRAMMING SUPPORT, REFER TO PAGE 3

***

IEL0810I S

IEL0811I S

IEL0812I S

IEL0816I S

IEL0817I S

SIGNAL CHECK(A,B,C);

END;

INVALID EXPRESSION IN 'PRIORITY~ OPTION.

INVALID EXPRESSION IN 'PRIORITY' OPTION. OPTION IGNORED.

Explanation: The expression in the PRIORITY option must represent an integer value with the precision (lS~O).

INVALID SPECIFICATION OF 'IGNORE' EXPRESSION.

INVALID SPECIFICATION OF 'IGNORE' EXPRESSION. VALUE ONE ASSUMED.

Example:

DCL F FILE;

READ FILE(F) IGNORE(F)i

Exp!~~tiQn: The expression in the IGNORE option must represent an arithmetic integer value.

~KEY~ SPECIFICATION INVALID.

"KEY' SPECIFI-CATION INVALID. RESULTS OF EXECUTION UNDEFINED.

ID@mpl~:

DCL F FILE, A(S) FIXED;

READ FILE(F) INTO(A) KEY(A);

ExplanatiQ!!: The expression in the KEY option must represent a valid key derived from a character string or an arithmetic variable.

ATTRIBUTES OF D CONFLICT WITH USE.

CONFLICT BETWEEN ATTRIBUTES OF FILE D AND ITS USE IN THIS STATEMENT. STATEMENT IGNORED.

DCL F FILE OUTPUT;

READ FILE(F) INTO(A);

RECORD VARIABLE INVALID.

RECORD VARIABLE INVALID. STATEMENT IGNORED.

Exampl~:

Dans le document OS PL/I (Page 145-150)

Documents relatifs