当前位置: 代码迷 >> 其他开发语言 >> call x"AF" using set-bit-pairs enable-esc-and-f1解决办法
  详细解决方案

call x"AF" using set-bit-pairs enable-esc-and-f1解决办法

热度:6703   发布时间:2013-02-26 00:00:00.0
call x"AF" using set-bit-pairs enable-esc-and-f1
这句如何解释啊.
刚学,不的入门.请教达人.

书看了几天,觉得太瞒了. 找了一个例子.
想跟书对应起来看.
呵呵, 第一句就难住了哈.
 
  ****************************************************************
  * This program assumes that the default configuration has been *
  * selected using Adiscf. *
  ****************************************************************

  special-names.
  cursor is cursor-position
  crt status is key-status.

  data division.
  working-storage section. 

  **************************************************
  * Parameters to be used for the x"AF" calls.
  **************************************************
   
  01 set-bit-pairs pic 9(2) comp-x value 1.
  01 get-single-character pic 9(2) comp-x value 26.
   
  01 enable-esc-and-f1.
  03 filler pic 9(2) comp-x value 1.
  03 filler pic x value "1".
  03 filler pic 9(2) comp-x value 0.
  03 filler pic 9(2) comp-x value 2.
   
  01 disable-all-other-user-keys.
  03 filler pic 9(2) comp-x value 0.
  03 filler pic x value "1".
  03 filler pic 9(2) comp-x value 2.
  03 filler pic 9(2) comp-x value 126.
   
   
  01 enable-slash-key.
  03 filler pic 9(2) comp-x value 1. 
  03 filler pic x value "3".
  03 filler pic x value "/".
  03 filler pic 9(2) comp-x value 1. 

  **************************************************
  * Status returned after termination of an ACCEPT.
  **************************************************
  01 key-status.
  03 key-type pic x.
  03 key-code-1 pic 9(2) comp-x.
  03 key-code-1-x redefines key-code-1 pic x.
  03 key-code-2 pic 9(2) comp-x.
   
  **************************************************
  * Cursor-Position is returned by ADIS containing 
  * the position of the cursor when the ACCEPT was 
  * terminated.
  ***************************************************
  01 cursor-position.
  03 cursor-row pic 99.
  03 cursor-column pic 99.
   
  **************************************************
  * Work areas used by the program.
  ************************************************** 
  01 work-areas.
  03 wa-name pic x(30).
  03 wa-address-line-1 pic x(40).
  03 wa-address-line-2 pic x(40).
  03 wa-address-line-3 pic x(40).
  03 wa-address-line-4 pic x(40).
  03 wa-age pic 999 value 0.
   
  01 exit-flag pic 9(2) comp-x value 0.
   
   
  **************************************************
  相关解决方案