Print command output to a dataset



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

Print command output to a dataset

Postby bazzigar » Mon Jun 25, 2012 2:16 am

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,
bazzigar
 
Posts: 29
Joined: Sat Feb 11, 2012 7:20 am
Has thanked: 0 time
Been thanked: 0 time

Re: Print command output to a dataset

 

Re: Print command output to a dataset

Postby dick scherrer » Mon Jun 25, 2012 4:47 am

Hello,

What happens when you issue the commands in online SDSF rather than 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: Print command output to a dataset

Postby bazzigar » Mon Jun 25, 2012 5:01 am

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,
bazzigar
 
Posts: 29
Joined: Sat Feb 11, 2012 7:20 am
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post