On Thu, 19 Nov 2015 12:47:40 +0100, Leopold Strauss wrote:

>Hi, all
> 
(Waiting for Lizette to suggest fora TSO-REXX and, most relevant,  MVS-OE.)

>I simply wanted to automize the receiving of a lot of XMIT-files in
>zOS-unix-shell ( not TSO)
>
>Last but not least my problem could be broken down to following
>terminal-input-problem with the RECEIVE-command:
>
>rexx-script:
>
>parse arg indsn outdsn
>
>address tso "PROFILE PROMPT"
>queue "DATASET('"outdsn"')" 
>
... Ouch!  Now you're in trouble.  When you run Rexx under the z/OS UNIX shell,
"address TSO starts the TSO TMP in a separate address space and creates a
communication channel between the UNIX address space and the TSO address
space.  "queue" operates in the UNIX address space; RECEIVE in the TSO
address space where lines queued in the UNIX address space are inaccessible
to it.

This may be further complicated by the conflict between TGET and GETLINE
I don't much understand it.

You might try two EXECs; one in the UNIX address space whch does:

    address TSO "exec '''your.sysexec.pds(RCVWRAP)'''" 

Where RCVWRAP is an EXEC which issues the "queue" and "receive"
commands in the TSO address space.

BTW, allocations performed in the UNIX address space (e.g. with BPXWDYN)
are not available in the TSO address space.

I haven't had much success with this scheme; RECEIVE is a bad design.

I hate MVS!

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to