View previous topic :: View next topic
|
Author |
Message |
Deepakgoyal2005
New User
Joined: 22 Mar 2007 Posts: 57 Location: India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Deepakgoyal2005
New User
Joined: 22 Mar 2007 Posts: 57 Location: India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Deepakgoyal2005
New User
Joined: 22 Mar 2007 Posts: 57 Location: India
|
|
|
|
Uffffff... me and my habit of Copy-paste was at error...
Thanks Bill for your precious time. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
No biggie :-)
"A bend in road is not end of the road..., but abend in (a) program is" :-) |
|
Back to top |
|
|
xknight
Active User
Joined: 22 Jan 2008 Posts: 117 Location: Liberty city
|
|
|
|
Quote: |
but abend in (a) program is |
Going to be a 'complete' quote of the year 2012.. for the Mainframer |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
|