Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Copy FLAT File to VSAM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Fri Apr 29, 2005 3:58 pm    Post subject: Copy FLAT File to VSAM
Reply with quote

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
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Apr 29, 2005 4:08 pm    Post subject: Re: Copy FLAT File to VSAM
Reply with quote

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
View user's profile Send private message
squid_rocks

New User


Joined: 21 Mar 2005
Posts: 15
Location: Pune, INDIA

PostPosted: Fri Apr 29, 2005 6:58 pm    Post subject:
Reply with quote

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
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Fri Apr 29, 2005 7:37 pm    Post subject:
Reply with quote

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
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Sat Apr 30, 2005 9:38 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us