zoukankan      html  css  js  c++  java
  • [转]Send a data stream from ABAP to UNIX named pipe

    Send a data stream from abap to a UNIX named pipe
    On the UNIX side the fifo can be read with such
    commnds like this:  cat /tmp/fifi

    REPORT ZPIPE .

    TABLES: USR02.
    DATA: FIFO(30) VALUE '/tmp/fifi',
          MKFIFO(30) VALUE 'mkfifo -m 777 /tmp/fifi',
          RMFIFO(30) VALUE 'rm -f /tmp/fifi',
          OPCODE TYPE X VALUE 2,
          BEGIN OF TABL OCCURS 0,
              LINE(200),
          END OF TABL.
    * Create the pipe
    CALL 'SYSTEM' ID 'COMMAND' FIELD MKFIFO
                  ID 'TAB'     FIELD TABL-*SYS*.
    * Write the data to the pipe
    OPEN DATASET FIFO FOR APPENDING IN TEXT MODE.
    SELECT * FROM USR02.
      TRANSFER USR02-BNAME TO FIFO.
    ENDSELECT.
    CLOSE DATASET FIFO.
    * Remove the pipe
    CALL 'SYSTEM' ID 'COMMAND' FIELD RMFIFO
                   ID 'TAB'    FIELD TABL-*SYS*.

  • 相关阅读:
    洛谷 P1443 马的遍历
    括号序列 (自出水题)
    19年清北学堂冬令营游记
    计数排列(模板)
    全排列
    unique去重
    链表 模板+详解
    输入输出优化
    关于广/宽度优先搜索
    第四周 6.7-6.13
  • 原文地址:https://www.cnblogs.com/wequst/p/1513871.html
Copyright © 2011-2022 走看看