How to write the JESMSGLG to a dataset?



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

Re: How to write the JESMSGLG to a dataset?

Postby smita » Wed Apr 21, 2010 5:00 pm

Thanks a lot Anuj!!

It worked for me.
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 uday123 » Thu Apr 22, 2010 11:13 am

Hi Smita,

A Sample of how to use the SDSF Batch (this will print syslog to a dataset)
//COPYIT EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//*
//SYSUT2 DD DISP=(MOD,CATLG,DELETE),DSN=TSO.SDSF.SYSLOG,
// UNIT=DISK,LRECL=133,BLKSIZE=0,
// SPACE=(CYL,(10,5),RLSE)
//SYSUT1 DD *
SYSLOG Listing thru ISFADF SDSF batch
//*
//SYSIN DD DUMMY
/*
//BTCHSDSF EXEC PGM=ISFAFD
//ISFOUT DD SYSOUT=*
//SDSFLOG DD DISP=OLD,DSN=TSO.SDSF.SYSLOG
//ISFIN DD *
LOG
TOP
AFD WTOR OFF
AFD LOGSTAMP OFF
AFD QUERY DS
LOG


This could be tailored for just your job and then print it to a dataset.


Regards
Uday
uday123
 
Posts: 29
Joined: Fri Feb 06, 2009 6:13 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby Anuj Dhawan » Sun Apr 25, 2010 10:02 am

Glad to help you, Smita!
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: How to write the JESJCL to a dataset?

Postby aravindhreddy » Mon May 03, 2010 5:42 pm

a"]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 JESJCL is written to a dynamically created dataset. I can't open them in View or Browse mode.

Can anyone help?

Thanks,
Aravindh/quote]
aravindhreddy
 
Posts: 2
Joined: Mon May 03, 2010 5:11 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby CICS Guy » Mon May 03, 2010 9:09 pm

Lionel B. Dyck has a great little tool, SDFSEXT, a generalized SDSF batch tool to extract all or part of your sysout into a dataset.
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby dick scherrer » Tue May 04, 2010 12:03 am

Hello,

Can anyone help?
Hopefully, you can read thru this entire topic and discover that your question has already been answered. . .

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

If the data is already in some dataset, why is the question about the spool?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Previous

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post