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

  dcl pic1 char(9) init ('ZZZZZZZZ9');
  dcl pic2 char(7) init ('ZZ9V.99');
  dcl num fixed dec (9) init (123456789);
  z = edit (num, pic1);                     /* '123456789'       */
  z = edit (num, pic2);                     /*    '789.00'       */
  z = edit (num, substr(pic1,8));           /*     '89'          */
  z = edit (num, substr(pic2,1,5));         /*    '789.'         */
  z = edit (num, substr(pic1,7,3));         /*    '789'          */
  z = edit (num, substr(pic2,3,5));         /*    '9.00'         */
  z = edit ('1', substr(pic1,7,3));         /*    '  1'          */
  z = edit ('PL/I', 'AAXA');                /*    'PL/I'         */
  z = edit ('PL/I', 'AAAA');                /* raises conversion */

xy で指定したピクチャー指定に編集できない場合は、 発生した条件は xy に設定されているピクチャー指定と同じピクチャー指定が ある PICTURE データ項目に割り当てられた場合に発生する条件です。


Terms of use | Feedback

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