View previous topic :: View next topic
|
Author |
Message |
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
while i tried to copy one flat file to one VSAM file, the only few of the record get copied not all, giviing error
IDC3302I ACTION ERROR ON <VASAM FILE NAME>
IDC3314I **RECORD OUT OF SEQUENCE - KEY FOLLOWS:
000000 1919456C 03
whe i tried with fileaid copy then also it is copying only few record.JCL i have submitted is
//JOB1 JOB (T,B0,SUB),'KANAK',CLASS=M,MSGCLASS=0,
// REGION=0M
//PS010 EXEC PGM=IDCAMS
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//DDIN DD DSN=INPUT.FILE,DISP=SHR
//DDOUT DD DSN=VSAM.OUT.FILE,
// DISP=OLD
//SYSIN DD *
REPRO INFILE (DDIN) OUTFILE (DDOUT)
//*
//*-------------------------------------------------------------------*
I have defined the property of VSAM in other JCL, AND I AM USING THE SAME HERE HENCE I HAVE GIVEN DISPOSITION FOR THAT VSAM AS OLD.
Total number of record in input file is 90,000 where as while copying it is copying only 71 record, through this jcl giving above mentioend error.Even when i tried with filed it said logical erro and copied only 71 records.
thanks in advance |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Sounds to me like the VSAM dataset is KSDS and the sequential QSAM dataset has not been properly sorted in ascending order by key. |
|
Back to top |
|
|
squid_rocks
New User
Joined: 21 Mar 2005 Posts: 15 Location: Pune, INDIA
|
|
|
|
Hi,
I guess it is because a record from flat file is already present in VSAM file.
I had got a smiliar error once.
Hope it helps. |
|
Back to top |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
Hi
If this is because of the duplicate records ,then you have to increase the error limit in the IDCAMS. The default is 4. So when it encounter 4 duplicates IDCAMS aborts.
Try to change your REPRO to something like
REPRO INFILE(DDIN) OUTFILE(DDOUT) NOREPLACE ERRORLIMIT(1000)
So this will abort only when it encounter 1000 duplicates.
hth
-Som |
|
Back to top |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
To add up ERRORLIMIT will capture the out of sequence erros and other errors too..(like the records are not in the sorted order etc..). So I think specifying this option will solve your problem. You can increase/decrease the value in the ERRORLIMIT(nnnnn) to your needs.
hth
-Som |
|
Back to top |
|
|
|