IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get output of ISRSUPC in a PS file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hemu88

New User


Joined: 13 May 2011
Posts: 29
Location: India

PostPosted: Wed May 18, 2011 1:54 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1314
Location: Vilnius, Lithuania

PostPosted: Wed May 18, 2011 1:59 pm
Reply with quote

Would you mind posting the complete JCL rather than a vague statement?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed May 18, 2011 2:13 pm
Reply with quote

If your job ended with return code 0, there are no differences hence no output.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 18, 2011 2:28 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed May 18, 2011 2:36 pm
Reply with quote

Dick,

my experience is that there only will be output if the return code > 0.
Back to top
View user's profile Send private message
hemu88

New User


Joined: 13 May 2011
Posts: 29
Location: India

PostPosted: Wed May 18, 2011 2:40 pm
Reply with quote

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
View user's profile Send private message
hemu88

New User


Joined: 13 May 2011
Posts: 29
Location: India

PostPosted: Wed May 18, 2011 2:42 pm
Reply with quote

Peter,

you are correct. return code is >0 if output is there
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed May 18, 2011 2:42 pm
Reply with quote

What is the return code of the job?
Back to top
View user's profile Send private message
hemu88

New User


Joined: 13 May 2011
Posts: 29
Location: India

PostPosted: Wed May 18, 2011 2:43 pm
Reply with quote

its 1
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed May 18, 2011 2:44 pm
Reply with quote

And what are the characteristics of output.file?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Wed May 18, 2011 2:49 pm
Reply with quote

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
View user's profile Send private message
hemu88

New User


Joined: 13 May 2011
Posts: 29
Location: India

PostPosted: Wed May 18, 2011 2:53 pm
Reply with quote

Ooops sorryyyy icon_sad.gif

my mistake.. I had given for SYSOUT instead of OUTDD.

thanks for your time.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed May 18, 2011 9:18 pm
Reply with quote

Good to hear it is working - Thank you for posting what happened . . . icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Unable to interpret a hex value to De... COBOL Programming 4
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
No new posts how to eliminate null indicator value... DB2 7
Search our Forums:

Back to Top