Page 2 of 3

Re: How to write the JESMSGLG to a dataset?

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

Re: How to write the JESMSGLG to a dataset?

PostPosted: Thu Apr 08, 2010 10:23 am
by Twishamis Ray
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
/*

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sat Apr 17, 2010 2:06 am
by smita
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

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sat Apr 17, 2010 2:23 am
by dick scherrer
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. . .

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sat Apr 17, 2010 11:21 am
by Anuj Dhawan
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.

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sat Apr 17, 2010 11:27 am
by Anuj Dhawan
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...:)

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sat Apr 17, 2010 10:54 pm
by murarigurunathgupta
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?

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sat Apr 17, 2010 11:43 pm
by smita
Thanks a lot Anuj!!

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

Thanks,
Smita

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sun Apr 18, 2010 1:39 am
by dick scherrer
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.

Re: How to write the JESMSGLG to a dataset?

PostPosted: Sun Apr 18, 2010 8:40 pm
by Anuj Dhawan
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...