Doug Miller wrote:
> Keith Dick <
kd...@acm.org> wrote in
>
news:qYednWaZI7Va0H_S...@giganews.com:
>
>
>>Doug Miller wrote:
>>
>>>A TACL macro cannot run as a named process, no matter what you
>>>do, because it isn't a process.
>>>
>>>However, the first TACL can start a second TACL as a named
>>>process, and feed it the command RUN $DATA06.PRODOPR.MAILPICK.
>>>
>>
>>I'm not sure why the kind of output file affects the problem.
>>Is there something missing from the description of the
>>situation?
>>
>>I believe what Doug says is right. You probably have to create
>>another Edit file, say $DATA06.PRODOPR.MAILPIKP, which contains
>>the line:
>>
>> TACL/NAME <whatever>,IN $DATA06.PRODOPR.MAILPIKO,OUT
>> <whatever>/
>
>
> Not at all what I had in mind, Keith, and probably not quite what
> the OP wants, either.
>
> More like:
>
> #PUSH commands
> TACL /NAME <whatever>, INV commands DYNAMIC, OUT <whatever>/
> #APPEND commands RUN $DATA06.PRODOPR.MAILPICK
>
Yes, I thought you had something like that in mind. That might work, but I have a very dim recollection that there is something that does not work right about trying to use INV to send commands to a TACL process. Maybe that recollection is wrong, maybe it was a bug I ran into that has been fixed. Except for the extra Edit file in what I suggested, I think that if they both work, they are equivalent. They both use one additional TACL process.
>
>
>>Use MAILPIKP as the IN file for the Netbatch job. I think you
>>must not use NOWAIT with that TACL command because I seem to
>>recall that when a Netbatch job finishes, any processes it
>>started are killed at that time, so you want the Netbatch job
>>that starts the named TACL not to terminate.
>
>
> Specify (IIRC) the "JOBID 0" parameter in the configuration of the
> Netbatch job, and processes spawned by that job continue to run
> after the job terminates.
That sounds familiar, but seems a lot easier to be forgotten than making sure the command file for the job runs the second TACL waited. Either probably works fine.