Reset Condition Code.

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

pratik Ranjan
Member
Posts: 21
Joined: Wed Jan 21, 2009 2:21 pm
Location: Hyderabad

Post by pratik Ranjan » Thu May 14, 2009 3:06 pm

You are welcome Natarajan.

Anyway i have identified the problem with the previous SYSIN card also now (It's really silly, but one can easily miss those kind of things.)
Actually there must be statement continuation i.e. the SYSIN card must have looked something like

//SYSIN DD DATA
PRINT INFILE(CURRINV) COUNT(1)
IF LASTCC NE 0 THEN -
REPRO INFILE(PREVINV) OUTFILE(CURRINV)
SET MAXCC=0
/*


Thanks.
Pratik Ranjan.

maheshvamsi
Active Member
Posts: 52
Joined: Wed Mar 25, 2009 11:56 pm
Location: Banglore

Post by maheshvamsi » Thu May 14, 2009 3:15 pm

Pratik, Just put hi-phen at the end of if statement. It will work fine.
Then only job will consider that Repro Statement is in IF loop. else it wont.

Code: Select all

//SYSIN DD DATA                               
  PRINT INFILE(CURRINV) COUNT(1)              
  IF LASTCC NE 0 THEN                   -     
  REPRO INFILE(PREVINV) OUTFILE(CURRINV)      
  SET MAXCC=0                                 
/*
I tested it & able to bipass repro statement if we have data in current generation.

Code: Select all

IDC0005I NUMBER OF RECORDS PROCESSED WAS 1                 
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0  
IDCAMS  SYSTEM SERVICES                                    
                                                           
  IF LASTCC NE 0 THEN                   -                  
  REPRO INFILE(PREVINV) OUTFILE(CURRINV)                   
IDC0204I PRECEDING COMMAND BYPASSED DUE TO CONDITION CODES 
Thanks

MaheshVamsi

pratik Ranjan
Member
Posts: 21
Joined: Wed Jan 21, 2009 2:21 pm
Location: Hyderabad

Post by pratik Ranjan » Thu May 14, 2009 4:51 pm

Thanks a lot Mahesh for u bothered to go into mainframes and find the solution for me.
Pratik Ranjan.

maheshvamsi
Active Member
Posts: 52
Joined: Wed Mar 25, 2009 11:56 pm
Location: Banglore

Post by maheshvamsi » Thu May 14, 2009 5:44 pm

No Problem. I also learnt new thing.
Thanks

MaheshVamsi

academyindia4

Topic deleted by Admin

Post by academyindia4 » Thu Jan 21, 2016 10:12 am

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 10:51 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others