Page 1 of 1

Print command output to a dataset

PostPosted: Mon Jun 25, 2012 2:16 am
by bazzigar
Hello,
I am trying the below code to write output of my commands to a dataset.But its not printing to that DS. Please say why?

//OPRC003 JOB (),'RFC#18775',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),
// NOTIFY=&SYSUID
/*JOBPARM S=S10
//STEP1 EXEC PGM=SDSF
//ISFOUT DD SYSOUT=*
//ISFIN DD *
SET CONSOLE OPRC003
=S
U
/D IPLINFO
PRINT ODSN 'OPRC003.RFC18775.JCLSAMPL(ONADDSPP)'* NEW
PRINT
PRINT CLOSE
/*


Thanks,

Re: Print command output to a dataset

PostPosted: Mon Jun 25, 2012 4:47 am
by dick scherrer
Hello,

What happens when you issue the commands in online SDSF rather than batch?

Re: Print command output to a dataset

PostPosted: Mon Jun 25, 2012 5:01 am
by bazzigar
dick scherrer wrote:Hello,

What happens when you issue the commands in online SDSF rather than batch?

Hello,

I was trying to print this output to DS and filter using a RExx for the IPL Time / Date / IPLAdrress to make a report.
And now I could see that its printing but more than one time.Around 3 times the IPLINFO and the SDSF panel too.
But only when I specify //ISFOUT DD DSN= OPRC003.RFC18775.JCLSAMPL(ONADDSPP), DISP=OLD

I just need to print the O/P of IPLINFO command to be printed in to that DS.
Thanks,