Re: MF Server rts32 does not run in AIX 5.3L batch queue



Thanks. But why would rts32 wait for input from tty
when the cobol program doesn't even have any accept
statement from tty?

The same program submitted to the queue (for scripts)
runs to end-of-job when run with rts32 of microfocus
object cobol in AIX 4.3.



"Michael Wojcik" <mwojcik@xxxxxxxxxxx> wrote in message
news:dhbnq3029pj@xxxxxxxxxxxxxxxxxxxx
>
> In article <SbUZe.104$Vk.71@xxxxxxxxxxxxxxxxxxxxxxxxxx>, "C C"
> <someone@xxxxxxxxxxxxxxx> writes:
>> Help. We are trying to migrate our
>> Object Cobol under AIX 4.3 to
>> Server Express under AIX 5.3L in
>> a Test box. We have plenty of
>> Cobol jobs which are submitted
>> to a job queue (qprt -Pbqueue ......).
>> Everything is working in 4.3 but
>> not in AIX 5.3L. The job just sits
>> in the queue and the PID is on rts32 of
>> the COBOL program. If we run the
>> same job under a shell script from
>> within a Cobol online program,
>> the job runs.
>
> This is just a guess, but it wouldn't surprise me if the rts32 process
> is in stopped state due to a SIGTTIN - attempt by a background process
> to read from the tty.
>
> Try starting the job with the standard I/O file descriptors closed or
> redirected, eg by wrapping the program in a ksh script like:
>
> #! /bin/ksh
> exec cobrun my-program <&- >&- 2>&-
>
> That will close descriptors 0, 1, and 2, which will prevent the COBOL
> RTS from trying to read from (or write to) the former controlling tty.
>
> --
> Michael Wojcik michael.wojcik@xxxxxxxxxxxxxx
>
> When most of what you do is a bit of a fraud, the word "profession"
> starts to look like the Berlin Wall. -- Tawada Yoko (t. M. Mitsutani)


.



Relevant Pages

  • Re: MF Server rts32 does not run in AIX 5.3L batch queue
    ... But why would rts32 wait for input from tty ... > when the cobol program doesn't even have any accept ... > The same program submitted to the queue ...
    (comp.lang.cobol)
  • Re: AIX COBOL ASSIGN error.
    ... I don't think you have told us if you are an experienced COBOL programmer who ... new to AIX - or if you are new to COBOL and AIX. ... Message routine called from offset 0x38 of routine ...
    (comp.lang.cobol)
  • Re: AIX COBOL ASSIGN error.
    ... I don't think you have told us if you are an experienced COBOL programmer who is ... new to AIX - or if you are new to COBOL and AIX. ... Message routine called from offset 0x38 of routine ...
    (comp.lang.cobol)
  • Re: AIX ASSIGN problems
    ... >We're trying to compile and run our first COBOL programs on AIX (we've ... It would help if you told us which COBOL brand and version you are ... >We verify the environmental variables are accurately set up by executing ...
    (comp.lang.cobol)
  • Re: Cobol set for AIX - secuential files - DDMEA
    ... > I have a problem with Cobol and secuential files when migrating from ... > MVS to AIX. ... > original .ddmea file with the name of sorted file and all work fine ...
    (comp.lang.cobol)