How to write the JESMSGLG to a dataset?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How to write the JESMSGLG to a dataset?

Postby smita » Sat Mar 27, 2010 1:34 am

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
smita
 
Posts: 15
Joined: Tue Dec 01, 2009 1:20 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

 

Re: How to write the JESMSGLG to a dataset?

Postby dick scherrer » Sat Mar 27, 2010 1:58 am

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: How to write the JESMSGLG to a dataset?

Postby smita » Mon Mar 29, 2010 5:16 pm

Thanks Dick!!

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

Can anyone help!!
smita
 
Posts: 15
Joined: Tue Dec 01, 2009 1:20 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby dick scherrer » Tue Mar 30, 2010 12:35 am

Hello,

Please re-read my last reply. . . It tells you how to write this data to a dataset. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: How to write the JESMSGLG to a dataset?

Postby smita » Tue Mar 30, 2010 2:49 pm

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
smita
 
Posts: 15
Joined: Tue Dec 01, 2009 1:20 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby dick scherrer » Wed Mar 31, 2010 12:04 am

Hello,

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

You may need to use PRINT ODSN rather than XDC.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: How to write the JESMSGLG to a dataset?

Postby smita » Wed Mar 31, 2010 2:51 pm

Thanks Dick!!

Could you please provide me a sample JCL for PRINT OSDN? I have never used this before.
smita
 
Posts: 15
Joined: Tue Dec 01, 2009 1:20 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby dick scherrer » Thu Apr 01, 2010 12:43 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: How to write the JESMSGLG to a dataset?

Postby smita » Wed Apr 07, 2010 7:43 pm

I could not able to do it using PRINT OSDN. :(

I really need some samples. Pls help!!
smita
 
Posts: 15
Joined: Tue Dec 01, 2009 1:20 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby expat » Wed Apr 07, 2010 7:58 pm

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.
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post