Page 1 of 3

How to write the JESMSGLG to a dataset?

PostPosted: Sat Mar 27, 2010 1:34 am
by smita
Hi All,

Can anybody help me to write the JESMSGLG information in the spool to a dataset? I want to achieve it using JCL.

I see in the spool that each job's JESMSGLG, JESJCL is written to a dynamically created dataset. I can't open them in View or Browse mode.

Can anyone help?

Thanks,
Smita

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sat Mar 27, 2010 1:58 am
by dick scherrer
Hello,

You should be able to open them in sdsf.

Then, you could use XDC (or PRINT ODSN) to copy them to a dasd file.

I've not tried this using sdsf batch (i.e. jcl), but it works well online. . .

Re: How to write the JESMSGLG to a dataset?

PostPosted: Mon Mar 29, 2010 5:16 pm
by smita
Thanks Dick!!

Yes can view them in SDSF. But wanted them in a dataset; which can be used further.

Can anyone help!!

Re: How to write the JESMSGLG to a dataset?

PostPosted: Tue Mar 30, 2010 12:35 am
by dick scherrer
Hello,

Please re-read my last reply. . . It tells you how to write this data to a dataset. . .

Re: How to write the JESMSGLG to a dataset?

PostPosted: Tue Mar 30, 2010 2:49 pm
by smita
Dick,

I have read your reply. I already know about XDC. I want to have it in dataset using JCL.

I hope it's clear now.

Is it not possible through JCL?

Thanks,
Smita

Re: How to write the JESMSGLG to a dataset?

PostPosted: Wed Mar 31, 2010 12:04 am
by dick scherrer
Hello,

You can run sdsf in batch (i.e. jcl). . .

You may need to use PRINT ODSN rather than XDC.

Re: How to write the JESMSGLG to a dataset?

PostPosted: Wed Mar 31, 2010 2:51 pm
by smita
Thanks Dick!!

Could you please provide me a sample JCL for PRINT OSDN? I have never used this before.

Re: How to write the JESMSGLG to a dataset?

PostPosted: Thu Apr 01, 2010 12:43 am
by dick scherrer
You're welcome :)

This should work basically the same in batch as it does online. Unfortunately, none of my current systems use sdsf (at least not my teams access), so i can't create an example. Bummer.

Suggest you work thru the mechanics online and then replicate those commands into your batch job. You should need a PRINT ODSN that specifies a datasaet, a selection of the file you want to "print", the PRINT command, and a PRINT CLOSE to complete.

Re: How to write the JESMSGLG to a dataset?

PostPosted: Wed Apr 07, 2010 7:43 pm
by smita
I could not able to do it using PRINT OSDN. :(

I really need some samples. Pls help!!

Re: How to write the JESMSGLG to a dataset?

PostPosted: Wed Apr 07, 2010 7:58 pm
by expat
smita wrote:I could not able to do it using PRINT OSDN.
Perhaps if you bothered to actually give some details as to why you could not do this rather than just saying you couldn't it may help people to help you.

Is it because you don't know the syntax, have you tried to use XDC, what else have you tried and/or researched for yourself and what happened.