MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IEBCOMPR

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
YVRAMJ
Beginner


Joined: 18 Jan 2003
Posts: 12
Topics: 7

PostPosted: Sat Jan 18, 2003 3:40 pm    Post subject: IEBCOMPR Reply with quote

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. Question

Thanks,
Ramj.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Sat Jan 18, 2003 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group