HP3000-L Archives

November 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Johan Harmsen <[log in to unmask]>
Reply To:
Johan Harmsen <[log in to unmask]>
Date:
Fri, 17 Nov 2000 08:22:33 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
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

ATOM RSS1 RSS2