View previous topic :: View next topic
|
Author |
Message |
hemu88
New User
Joined: 13 May 2011 Posts: 29 Location: India
|
|
|
|
Hi All,
I am able to get the output of ISRSUPC utility in sysout. my code is as below.
Code: |
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,'FINDALL')
//NEWDD DD DSN=input.file,
// DISP=SHR
//OUTDD DD SYSOUT=(H)
|
but if I give some DSN name in OUTDD, output is not coming in that file. Can some one telme how to do? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1314 Location: Vilnius, Lithuania
|
|
|
|
Would you mind posting the complete JCL rather than a vague statement? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
If your job ended with return code 0, there are no differences hence no output. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Peter, Peter, Peter,
the TS is doing a search.
and, superc (search or compare) will always provide output,
if the proper parms are used. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Dick,
my experience is that there only will be output if the return code > 0. |
|
Back to top |
|
|
hemu88
New User
Joined: 13 May 2011 Posts: 29 Location: India
|
|
|
|
Code: |
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,'FINDALL')
//NEWDD DD DSN=input.file,
// DISP=SHR
//OUTDD DD SYSOUT=(H)
//SYSIN DD *
SRCHFOR 'STRING'
|
this is my JCL. I can see output in Spool OUTDD.
if I give a DSN for OUTDD like below, its not working.
Code: |
//OUTDD DD DSN=output.file,DISP=xxx
|
|
|
Back to top |
|
|
hemu88
New User
Joined: 13 May 2011 Posts: 29 Location: India
|
|
|
|
Peter,
you are correct. return code is >0 if output is there |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
What is the return code of the job? |
|
Back to top |
|
|
hemu88
New User
Joined: 13 May 2011 Posts: 29 Location: India
|
|
|
|
its 1 |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
And what are the characteristics of output.file? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Hello,
I tested the job and there was some log on output file eventhough the RC = 00,
Code: |
ISRSUPC - MVS/PDF FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- ISPF FOR z/OS
SEARCH-FOR SUMMARY SECTION SRCH DSN: WELLS.GREEN.DAY
LINES-FOUND LINES-PROC MEMBERS-W/LNS MEMBERS-WO/LNS COMPARE-COLS LONGEST-LI
0 44745 0 209 1:80 80 |
You could use the following attributes for output file.
Code: |
Organization . . . : PS
Record format . . . : FBA
Record length . . . : 133 |
Hope it helps. |
|
Back to top |
|
|
hemu88
New User
Joined: 13 May 2011 Posts: 29 Location: India
|
|
|
|
Ooops sorryyyy
my mistake.. I had given for SYSOUT instead of OUTDD.
thanks for your time. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - Thank you for posting what happened . . .
d |
|
Back to top |
|
|
|