There's the source code to the SENDTOME command, which does what you want.
http://www.tsotimes.com/holdold/articles/archive/fall03/sendtomesc.html
You might know about that already, as that page has a link to your site.

Bill

On Thu, 3 Nov 2016 09:17:30 -0500, Dyck, Lionel B. (TRA) <[email protected]> 
wrote:

>The use of OUTTRAP is easy and I use it frequently.  What I was trying to do 
>is to add messages to the trap stem from within the exec.
>
>For example:
>
>Call outtrap 'trap.'
>Msg 'call listd for sys1.parmlib'
>'listd sys1.parmlib'
>Msg 'call ended for listd'
>Call outtrap 'off'
>
>In this example the two msg lines would be commands to send those messages to 
>be trapped but there is nothing that I can do that will do that within this 
>exec.  The example of calling a secondary exec and then trapping that output 
>works but not in the primary exec like this.
>

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

Reply via email to