View previous topic :: View next topic |
Author |
Message |
YVRAMJ Beginner
Joined: 18 Jan 2003 Posts: 12 Topics: 7
|
Posted: Sat Jan 18, 2003 3:40 pm Post subject: IEBCOMPR |
|
|
Hi,
I am using IEBCOMPR in JCL to check if the file
got changed from the previous run & if it is then
using IEBGENER copying it to another file. The IEBCOMPR step is giving return code of 12 if the files do not match or if there are more than 10 differences. This return code is ok with me. But I want to set the return code to 4. How can I do that.
Thanks,
Ramj. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Sat Jan 18, 2003 8:10 pm Post subject: |
|
|
Ram,
I don't think a return code of 12 from IEBCOMPR is due to the differences between 2 files.As per the manuals it is a unrecoverable error.check this link for
IEBCOMPR Return Codes
check the following documentation for IEBCOMPR
If you really want the return code to be set to 4 then you can use the IF/THEN/ELSE/ENDIF Statement Construct.
Code: |
//RCTEST IF (STEP1.RC = 12) THEN
//STEP2 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET LASTCC = 4
//*
//ENDTEST ENDIF
|
Hope this helps...
cheers
kolusu |
|
Back to top |
|
|
|
|