Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ISRSUPC utility not working for empty files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: ISRSUPC utility not working for empty files
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Thu Apr 19, 2012 1:55 pm    Post subject: Reply to: ISRSUPC utility not working for empty files
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Thu Apr 19, 2012 2:19 pm    Post subject: Reply to: ISRSUPC utility not working for empty files
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Thu Apr 19, 2012 2:42 pm    Post subject:
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    Post subject:
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: 1717
Location: UK

PostPosted: Thu Apr 19, 2012 10:52 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us