Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, 言語解説書

単純ステートメント

単純ステートメントのタイプは、キーワード、代入、およびヌルです。

キーワード・ステートメント は、キーワードで始まるステートメントです。 このキーワードは、ステートメントの機能を示します。 以下の例では、READ および DECLARE はキーワードです。

  read file(In) into(Input);          /* keyword statement  */
  %declare Text char;                 /* keyword %statement  */

代入ステートメント には、 代入記号 (=) の左側にある 1 つまたは複数の ID、 および右側の式が含まれます。 このステートメントはキーワードで始まりません。

  A = B + C;                          /*   assignment statement  */
  %Size = 15;                         /* % assignment statement   */

ヌル・ステートメント は、1 つのセミコロンだけで構成され、 演算できないステートメントです。

        ;                             /* null statement         */
  Label:;                             /* labeled null statement */
    % ;                               /* % null statement     */

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)