On Tue, 29 Aug 2017 12:14:27 -0500, John McKown wrote:

>On Tue, Aug 29, 2017 at 11:37 AM, scott Ford wrote:
>
>> I was reading through IBM Unix services manuals and have a pipe question..
>> If I as a STC ..issue a Unix command after a PIPE was established and
>> retrieve output of the
>> command,  ...
>
>​You can set the descriptor to be non-blocking using the BPX1FCT call.
>https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxb100/fct.htm
>  ...
I wondered briefly, naively.whether popen() might be the simplest
approach to this problem.  Then I came to my senses and remembered,
it's  FILE * popen( ... ); and COBOL is probably not FILE*-savvy.
(Or is it?)  It's a pity there isn't a more basic popen() returning a
descriptor rather than a FILE*.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to