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.
Reset Condition Code.
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 21
- Joined: Wed Jan 21, 2009 2:21 pm
- Location: Hyderabad
-
- Active Member
- Posts: 52
- Joined: Wed Mar 25, 2009 11:56 pm
- Location: Banglore
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.
I tested it & able to bipass repro statement if we have data in current generation.
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
/*
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
MaheshVamsi
-
- Member
- Posts: 21
- Joined: Wed Jan 21, 2009 2:21 pm
- Location: Hyderabad
-
- Active Member
- Posts: 52
- Joined: Wed Mar 25, 2009 11:56 pm
- Location: Banglore
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page