Had a similar problem with Fortran. Easiest solution is to 'fopen' a file in
a the C routine and fprintf to that file. Be aware that your lines may not
be sequential and even overlap because of the different buffering methods in
C and Cobol
Good Luck
Johan
----- Original Message -----
From: "Paul H Christidis" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Friday, 17 November, 2000 3:38
Subject: [HP3000-L] C routine and $stdlist redirection
> A fellow programmer is trying to call, from COBOL, a routine written in C.
> He included some displays/printf's and ran the program redirecting its
> $stdlist to a disk file.
>
> After the run the file 'only' contained the 'COBOL' displays, while when
> executed in session the debugging displays from the C routine show on the
> screen.
>
> I'm guessing that it may have something to do with the file numbers that C
> vs COBOL use for directing their displays.
> Is there a way of making sure that the displays from the C routine are
also
> included in the same file as the ones from the COBOL program.
>
> Regards
> Paul Christidis