Home > Archive > Cobol > December 2004 > Writing sysout messages to specified DD
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Writing sysout messages to specified DD
|
|
| summit 2004-12-19, 8:55 pm |
| Hi,
I have got a common C module running on OS/390 , which will write to
separate DD SYSOUT files (for different programmes).
We have setup separate DDs for each transaction/programmes
(for ex:
//PROGAOUT DD DISP=SHR,DSN= MVSSYS.SUMMIT.OUTPUTA defined in the
startup job of the WLM) , so that the common C module will write to
those SYSOUT DDs depending on whatever DD name is passed into it.
The module is running in the WLM of DB2 .
Question is, once the DDs have been setup by the system programmers,
how do I write to each DD ? i.e. Can i just issue a
fopen("DD:PROGAOUT","a+") , which will do the trick?
Please note that each caller to this C programme will pass in the DD
name (PROGAOUT in this case).
Please advise.
Summit
| |
| Joe Zitzelberger 2004-12-20, 3:55 pm |
| In article <e18daabc.0412191355.76897a80@posting.google.com>,
sumit.sengupta@gmail.com (summit) wrote:
> Hi,
>
> I have got a common C module running on OS/390 , which will write to
> separate DD SYSOUT files (for different programmes).
>
> We have setup separate DDs for each transaction/programmes
> (for ex:
> //PROGAOUT DD DISP=SHR,DSN= MVSSYS.SUMMIT.OUTPUTA defined in the
> startup job of the WLM) , so that the common C module will write to
> those SYSOUT DDs depending on whatever DD name is passed into it.
>
> The module is running in the WLM of DB2 .
>
> Question is, once the DDs have been setup by the system programmers,
> how do I write to each DD ? i.e. Can i just issue a
> fopen("DD:PROGAOUT","a+") , which will do the trick?
>
> Please note that each caller to this C programme will pass in the DD
> name (PROGAOUT in this case).
>
> Please advise.
>
> Summit
It depends.
If you are using LE you can use the file number and CEEMOUT function.
| |
| S Comstock 2004-12-20, 8:55 pm |
| Joe Zitzelberger writes ...
>In article <e18daabc.0412191355.76897a80@posting.google.com>,
> sumit.sengupta@gmail.com (summit) wrote:
>
>
>It depends.
>
>If you are using LE you can use the file number and CEEMOUT function.
>
No. CEEMOUT only allows an output file number of '2', and that goes to the LE
message file.
I'm not totally sure what the original poster wants to do, but my guess is it
can't be done the way they describe it.
To say "The module is running in the WLM of DB2 . " makes no contextual sense.
Perhaps they are using stored procedures. In that case, they mean to say
something like "The module is running as a DB2 stored procedure in a
WLM-managed stored procedure address space." If that's the case, the solution
is to use the RUN OPTIONS clause of CREATE PROCEDURE or ALTER PROCEDURE and for
each procedure use a different DD-name for the MSGFILE option.
On the other hand, perhaps the situation is not using stored procedures.
Hope this helps a little.
Kind regards,
-Steve Comstock
-Steve Comstock
800-993-9716
303-393-8716
www.trainersfriend.com
email: steve@trainersfriend.com
256-B S. Monaco Parkway
Denver, CO 80224
USA
|
|
|
|
|