View previous topic :: View next topic |
Author |
Message |
ramu_mohan21 Beginner
Joined: 29 Jun 2004 Posts: 106 Topics: 41 Location: Bangalore, INDIA
|
Posted: Mon Dec 20, 2004 4:32 am Post subject: VSAM Out of Sequence Error_Why MAXCC=12? Why NOT MAXCC=8? |
|
|
Hi Board,
I tried to copy the input data shown like below into VSAM Dataset using IDCAMS-REPRO.
VSAM DS has been created with: KEYS(006,0)
Input DS
----------------
100001AAA01
100002AAA02
100003AAA03
100004AAA04
100005AAA05
100006AAA06
100007AAA07
100008AAA08
100009AAA09
100010AAA10
It copied successfully and MAXCC=0
I tried to copy the input data which is like below:
Input DS
----------------
100001AAA01
100002AAA02
100003AAA03
100004AAA04
100005AAA05
100006AAA06
100007AAA07
100008AAA08
100019AAA09
100010AAA10
It has given MAXCC=8
And I tried to copy the input data like below:
Input DS
----------------
100001AAA01
100002AAA02
100003AAA03
100004AAA04
100005AAA05
100006AAA06
100007AAA07
100018AAA08
100009AAA09
100010AAA10
It has got abended with MAXCC=8
And I tried to copy the input data which is like below:
Input DS
----------------
100001AAA01
100002AAA02
100003AAA03
100004AAA04
100005AAA05
100006AAA06
100017AAA07
100008AAA08
100009AAA09
100010AAA10
It has got abended with MAXCC=8
I tried to copy the input data which is like below:
Input DS
----------------
100001AAA01
100002AAA02
100003AAA03
100004AAA04
100005AAA05
100016AAA06
100007AAA07
100008AAA08
100009AAA09
100010AAA10
It has got abended with MAXCC=12.
Can anyone tell why the MAXCC=12 came. Why I didn't get MAXCC=8.
If there are more than 3 records to be processed then it is abended with MAXCC=12. If it is <=3 then it has got abended with MAXCC=8. What could be reason?
PS: I know that it is out of sequence error. But I couldn't find WHY 12? WHY NOT 8. _________________ Best Regards,
----------------
Rammohan Pabba
Software Engineer |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12384 Topics: 75 Location: San Jose
|
Posted: Mon Dec 20, 2004 6:23 am Post subject: |
|
|
ramu_mohan21,
The reason for the different condition codes is the ERRORLIMIT('VALUE') parameter of REPRO.
ERRORLIMIT('VALUE') - specifies the number of errors REPRO copy data set will tolerate.
'VALUE' - Specifies the number of errors. The number range may range from 1 TO 2,147,483,647. The default value is 4.
once you cross that default limit , your job will abend.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ramu_mohan21 Beginner
Joined: 29 Jun 2004 Posts: 106 Topics: 41 Location: Bangalore, INDIA
|
Posted: Mon Dec 20, 2004 7:02 am Post subject: |
|
|
Hi Kolusu,
Thank you very much for the responce and detailed explanation. Where this "ERRORLIMIT('VALUE')" can be set. Right now I didn't specify this parameter in my JCL. Is this is a default(Internal) value for REPRO. _________________ Best Regards,
----------------
Rammohan Pabba
Software Engineer |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12384 Topics: 75 Location: San Jose
|
Posted: Mon Dec 20, 2004 8:32 am Post subject: |
|
|
Ramu_mohan21,
4 is the default limit for the errorlimit parm on repro. You can overide it as you like .
Code: |
REPRO INFILE(XXX) OUTFILE(YYY) NOREPLACE ERRORLIMIT(10)
|
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ramu_mohan21 Beginner
Joined: 29 Jun 2004 Posts: 106 Topics: 41 Location: Bangalore, INDIA
|
Posted: Mon Dec 20, 2004 9:28 am Post subject: |
|
|
Hi Kolusu,
Thank you. I got the sufficient information I needed. _________________ Best Regards,
----------------
Rammohan Pabba
Software Engineer |
|
Back to top |
|
 |
|
|