Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us