​O​
n Mon, Feb 13, 2017 at 9:44 AM, John McKown <[email protected]>
wrote:

> On Mon, Feb 13, 2017 at 9:01 AM, scott Ford <[email protected]> wrote:
>
>> All:
>>
>> I have the following:
>>
>> 1.  Cobol STC
>> 2.  It calls an Assembler subroutine with does a RACF extract of the
>> database for all
>>      userids and then writes to an output file.
>> 3.  Is it possible to have the Assembler routine place the extracted data
>> into a unix
>>      pipe or a C type=memory file and then i can retrieve it ?
>>
>> Or is that to Mickey Mouse ..??
>>
>
> ​You can call the UNIX BPX* routines from COBOL, so you can use something
> like BPX1PIP to create an unnamed pipe. The COBOL program could then ​pass
> the "write_file_descriptor" to the HLASM program as a parm. The COBOL
> program would use BPX1RED to read from the read_file_descriptor. The HLASM
> would use BPX1WRT to write to the passed in descriptor. But critically
> important is that the HLASM program must be ATTACHX'd (BPX1ATM service can
> do this) and not LINK'd to (as a normal COBOL CALL would do). Otherwise
> you'll most likely get a lock out with either the TCB either waiting in the
> COBOL code for the HLASM to write some thing, or in the HLASM code waiting
> (buffer full) for the COBOL to read something. I just wanted to throw this
> last in for completeness. You might also need some way to communicate to
> the COBOL routine that the HLASM routine has written an "EOF" and has ended.
>

​Damn Monday, I forgot the URL links:

PIPE:
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxb100/pip.htm?view=kc
ATTACH:
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxb100/atm.htm?view=kc
Read:
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxb100/red.htm?view=kc
Write:
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxb100/wrt.htm?view=kc
​



>
>
>
>>
>> Scott
>> IDMWORKS
>>
>
> --
> Our calculus classes are an integral part of your education.
>
> Maranatha! <><
> John McKown
>



-- 
Our calculus classes are an integral part of your education.

Maranatha! <><
John McKown

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

Reply via email to