7.108.2 SELECTLIST の使用例

例1:#ORDERLINEというリストの、「変更された」項目をすべて処理します。リストおよびリスト処理の詳細については、DEF_LISTコマンドのセクションを参照してください。

   SELECTLIST NAMED(#ORDERLINE) GET_ENTRYS(*ALTERED)
     << Commands to process the list >>
     << Commands to process the list >>
      << Commands to process the list >>
ENDSELECT

 
例2:#ORDERLINEというリストの、「選択された」項目をすべて処理します。 

   SELECTLIST NAMED(#ORDERLINE) GET_ENTRYS(*SELECT)
     << Commands to process the list >>
     << Commands to process the list >>
     << Commands to process the list >>
ENDSELECT


例3:作業リスト#ORDERLINEの、数量が0より大きい項目をすべて処理します。 

   SELECTLIST NAMED(#ORDERLINE) WHERE('#QUANTITY *GT 0')
      << Commands to process the list >>
     << Commands to process the list >>
      << Commands to process the list >>
ENDSELECT
  • No labels