1. MULTIPLY

MULTIPLY statement는 numeric item을 곱해서 그 결과 값을 지정한 데이터 항목에 저장하는 구문이다.

  • Format 1

    Format 1은 identifier-1 또는 literal-1을 identifier-2와 곱해서 그 결과 값을 identifier-2에 저장한다.

    identifier-2가 여러 개 지정되어 있는 경우는 왼쪽에서 오른쪽으로 identifier-1또는 literal-1과 곱하기 연산을 반복해서 실행해서 그 결과 값을 identifier-2에 저장한다.

    figure pd multiply format1
    MULTIPLY Statement Format 1
  • Format 2

    Format 2는 identifier-1 또는 literal-1의 값을 idetifier-2와 곱해서 그 결과값을 identifier-3에 저장한다.

    figure pd multiply format2
    MULTIPLY Statement Format 2

다음은 statement의 각 설정 항목에 대한 설명이다.

  • identifier-1, identifier-2

    • identifier-1과 identifier-2는 elementary numeric, floating-point 데이터 항목이어야 한다.

  • literal-1, literal-2

    • literal-1과 literal-2는 문자 상수 혹은 floating-point이어야 한다.

  • identifier-3

    • identifier-3은 elementary numeric 데이터 항목이나 elementary numeric-edited 데이터, floating-point 데이터 항목이어야 한다.

  • ROUNDED phrase

  • SIZE ERROR phrase

  • END-MULTIPLY phrase

    • END-MULTIPLY phrase는 명시적으로 MULTIPLY statement의 끝을 지정한다.