View previous topic :: View next topic
|
Author |
Message |
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
The input file is empty and the job abends.I want to give a different rc and doesnt want by job to abend.
Can someone help me
IDCAMS SYSTEM SERVICES
PRINT INFILE(INDD) COUNT(1)
IDCAMS SYSTEM SERVICES
LISTING OF DATA SET -TSOCDAV.SPS261DP.R030.NEWACTY
IDC11462I REQUESTED RANGE END BEYOND END OF DATA SET.
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 4
IDCAMS SYSTEM SERVICES
IF LASTCC NE 0 THEN SET LASTCC=1
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 4
Thanks!! |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
There's nothing obvious that would cause the job to abend (unless, like so many software engineers, you are misusing "abend" to mean "unexpected result"). Show the JCL enclosed in Code tags. |
|
Back to top |
|
|
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
Sysin:
PRINT INFILE(INDD) COUNT(1)
IF LASTCC NE 0 THEN SET LASTCC=1
JCL:
//R030G EXEC PGM=CONDCODE,PARM=IDCAMS,COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//INDD DD DSN=JUY.UI,
// DISP=SHR
//SYSIN DD DSN=XXX.HJ(MY),
// DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=A
//CEEDUMP DD SYSOUT=A
// |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3077 Location: NYC,USA
|
|
|
|
Sample to set the rc = 2 for Empty File:
Code: |
//STEP010I EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//IN DD DISP=SHR,DSN=MY DATASET
//SYSIN DD *
PRINT INFILE(IN) COUNT(1)
IF LASTCC = 4 THEN
DO
SET MAXCC = 2
END |
|
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
You are actually running a program called CONDCODE. It appears CONDCODE runs the program specified in the PARM as a subroutine. When the program returns to CONDCODE, and the return code is non-zero, CONDCODE ABENDs. You can cure the ABEND by running IDCAMS directly (e.g., EXEC PGM=IDCAMS). |
|
Back to top |
|
|
|