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

ISRSUPC utility not working for empty files


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

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Thu Apr 19, 2012 1:32 pm
Reply with quote

While using ISRSUPC utility for SUPERC on 2 flat files, the job abends with MAXCC=28 if the files are empty. I am comparing multiple files in multiple steps (under same JCL) and error in a step stops JCL there itself (without executing further).

Although this is not the case when we do it manually through 3.12 option. It shows that 0 records matched so that we come to know that both the files are empty and thus same.

Can anybody please help to identify a way to verify and compare empty files as well (along with files with records) in batch?

Let me know if I had missed any required information.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 19, 2012 1:55 pm
Reply with quote

There must be something in the documentation.

If you want to continue your job after receiving a return-code of 28, I don't see that it would be a problem, all the steps are independent of each other. In fact, unless you have JCL to stop this happening, it would be the default behaviour for any non-abend in a completing step (it would just run the next step), wouldn't it?
Back to top
View user's profile Send private message
Deepakgoyal2005

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Thu Apr 19, 2012 2:14 pm
Reply with quote

Hi Bill,

Thanks for your reply.

The JCL which I am using do not execute second step if first step fails.
My JCL,
Code:
//**************************************************************
//* STEP : COMPARE FFB FILES                                   
//**************************************************************
//STEP010 EXEC PGM=ISRSUPC,                                     
//             PARM=(DELTAL,LINECMP,'',''),COND=(0,NE)         
//OLDDD    DD DISP=SHR,DSN=FFB.FILE1
//NEWDD    DD DISP=SHR,DSN=FFB.FILE2
//OUTDD    DD SYSOUT=*                                         
//SYSIN    DD *                                                 
CMPCOLM  1:80                                                   
//*                                                             
//**************************************************************
//* STEP : COMPARE FFB FILES                                   
//**************************************************************
//STEP020 EXEC PGM=ISRSUPC,                                     
//             PARM=(DELTAL,LINECMP,'',''),COND=(0,NE)         
//OLDDD    DD DISP=SHR,DSN=FFB.FILE3   
//NEWDD    DD DISP=SHR,DSN=FFB.FILE4   
//OUTDD    DD SYSOUT=*                                         
//SYSIN    DD *                                                 
CMPCOLM  1:80                                                   
//*                                                             


Spool:
Code:
--JOBNAME--JOBID----STATUS---RAN/RECEIVED------DAY-------DEST----
  ARETCPC2 J016768  OUTPUT    1:37   4/19/2012 TODAY     SOUTH2 
--RC--PGM--------STEP-----PRSTEP---PROC-----COMMENTS-------------
  28  ISRSUPC    STEP010                                         
   *  ISRSUPC    STEP020                    NOT EXECUTED         
--------DDNAME---STEP-----PRSTEP---STAT-ACT-C-GRP-D-SIZE-U-DEST--
_    1  LOG      *                 HELD     Z   1 H   20 L SOUTH2
_    2  JCL      *                 HELD     Z   1 H   26 L SOUTH2
_    3  MESSAGES *                 HELD     Z   1 H   60 L SOUTH2
_    4  OUTDD    STEP010           HELD     Z   1 H   28 L SOUTH2


As shown above, STEP010 fails and as such STEP020 is not executed.
Any expected reason?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 19, 2012 2:19 pm
Reply with quote

Code:
COND=(0,NE)


If your steps are independent of each other, then there is no need of COND of any sort on them.

The second step is not running because it has been told not to.
Back to top
View user's profile Send private message
Deepakgoyal2005

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Thu Apr 19, 2012 2:27 pm
Reply with quote

Uffffff... me and my habit of Copy-paste was at error...
Thanks Bill for your precious time.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 19, 2012 2:42 pm
Reply with quote

No biggie :-)

"A bend in road is not end of the road..., but abend in (a) program is" :-)
Back to top
View user's profile Send private message
xknight

Active User


Joined: 22 Jan 2008
Posts: 117
Location: Liberty city

PostPosted: Thu Apr 19, 2012 4:57 pm
Reply with quote

Quote:
but abend in (a) program is


Going to be a 'complete' quote of the year 2012.. for the Mainframer icon_razz.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Apr 19, 2012 10:52 pm
Reply with quote

Quote:
abends with MAXCC=28

Well, no, it does not abend - it gives a return code and carries on. An abend will terminate the step prematurely - your step completes 'normally' with a non-zero return code to let you know that something not disasterous happened that you may like to look at.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts REASON 00D70014 in load utility DB2 6
Search our Forums:

Back to Top