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 dick scherrer » Thu Apr 08, 2010 12:05 am

Hello,

I could not able to do it using PRINT OSDN.
Posting "it didn't work" is just a waste of your and everyone else's time. . . If you want help, you must post what you tried and what happened.

Did you work thru the process online before trying to do this in a batch job? Did the online test work? If it did not, you probably need to work with your technical support people to get it working. Then move forward. . .
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: Re: How to write the JESMSGLG to a dataset?

 

Re: How to write the JESMSGLG to a dataset?

Postby Twishamis Ray » Thu Apr 08, 2010 10:23 am

Hi,

Try the sample JCL step below,

//SDSFSTEP EXEC PGM=SDSF,PARM='++60,228'
//ISFOUT DD SYSOUT=*
//ISFIN DD *
PRINT ODSN 'ps filename'
OWNER tsoid
ST
FIND jobname
++?
FIND JESMSGLG
++S
PRINT
PRINT CLOSE
/*
Twishamis
User avatar
Twishamis Ray
 
Posts: 5
Joined: Tue Feb 09, 2010 10:46 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby smita » Sat Apr 17, 2010 2:06 am

Hi Expat,

I know XDC but it's online. I want to achieve the same in batch using JCL.

I don't know what is PRINT OSDN. Also I am not sure of the JCL syntax to achieve the same result as XDC.

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 » Sat Apr 17, 2010 2:23 am

Hello,


I know XDC but it's online. I want to achieve the same in batch using JCL.
It will not happen "using JCL". The JCL will execute some program (preferable SDSF in batch).

I don't know what is PRINT OSDN. Also I am not sure of the JCL syntax to achieve the same result as XDC.
Suggest you use the Help feature for SDSF. Look at "HELP: PRINT Command -- Opening a Print Data Set" online and continue thru the help material.

To Repeat from earlier. . .
Did you work thru the process online before trying to do this in a batch job? Did the online test work? If it did not, you probably need to work with your technical support people to get it working. Then move forward. . .

So, have you succeeded using PRINT ODSN online? If not, you need to do this. If this will not work even for your technical support people on your system, it will surely not work in batch. . .
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 Anuj Dhawan » Sat Apr 17, 2010 11:21 am

If SDSF is your choice, try this :
//BSDSF  EXEC PGM=SDSF                                       
//ISFOUT   DD SYSOUT=*                                       
//SYSUDUMP DD SYSOUT=*                                       
//SYSPRINT DD SYSOUT=*                                       
//SYSTSPRT DD SYSOUT=*                                       
//SYSOUT   DD SYSOUT=*                                       
//ISFIN    DD *                                               
 ST                                                           
 FILTER JOBID EQ JOB05433                                     
 F myjobnm                                                   
 ++?                                                         
 FIND 'myjobdd'                                                 
 ++S                                                         
 PRINT ODSN 'myracfid.SDSF' * OLD                             
 PRINT 1 9999                                                 
 PRINT CLOSE                                                 
 END                                                         
 EXIT                                                         
/*   
in this you need to replace the symbolics (myjobdd, myracfid etc) with appropriate values.
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: How to write the JESMSGLG to a dataset?

Postby Anuj Dhawan » Sat Apr 17, 2010 11:27 am

You could also use this, with ISFAFD:
//BSDSF  EXEC PGM=ISFAFD,PARM='++60,132'       
//ISFOUT   DD SYSOUT=*                         
//SYSUDUMP DD SYSOUT=*                         
//SYSPRINT DD SYSOUT=*                         
//SYSTSPRT DD SYSOUT=*                         
//SYSOUT   DD SYSOUT=*                         
//ISFIN    DD *                               
 PRE xxxxxxxx                                 
 ST                                           
 FILTER JOBID EQ 'JOB0xxxx'                   
 ++?                                           
 FIND 'OUTDD'                                 
 ++S                                           
 PRINT ODSN 'xxxxxxxx.SDSF' * OLD               
 PRINT 1 9999                                 
 PRINT CLOSE                                   
 END                                           
 EXIT                                         
/* 
If the filter command does not work, probably you need to execute the command "AFD REFRESH" after the Filter Command.

Good Luck...:)
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: How to write the JESMSGLG to a dataset?

Postby murarigurunathgupta » Sat Apr 17, 2010 10:54 pm

Hello all,

i joined mainframe course recently that is completed only 2 modules, that is tso and jcl,

i tried the sdsf to view the status of the job and it is working,

but i seen here abt XDC and print osdn,?

what are these?

could any one reply to me?

and also in most interviews which type of modules will ask?
murarigurunathgupta
 
Posts: 2
Joined: Sun Apr 11, 2010 9:23 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to write the JESMSGLG to a dataset?

Postby smita » Sat Apr 17, 2010 11:43 pm

Thanks a lot Anuj!!

I will try the samples given by you and get back to you.

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 » Sun Apr 18, 2010 1:39 am

Hello,

XDC and "PRINT ODSN" are ways to copy spooled output to a dasd file.

and also in most interviews which type of modules will ask?
I do not understand the question.
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 Anuj Dhawan » Sun Apr 18, 2010 8:40 pm

Good Luck Smita.

murarigurunathgupta - For Interviews, it depends what kind of interview you are appearing in. They will ask questions based on the kind of candidate they are looking for. It might be on COBOL, JCL, TSO or anything...
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

PreviousNext

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post