IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Unlaod from VSAM to flat file using IDCAMS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gileshpg

New User


Joined: 22 May 2008
Posts: 27
Location: Bangaluru

PostPosted: Thu Sep 30, 2010 10:52 am
Reply with quote

Hi,

I am getting an error as below when I Unlaod records from VSAM to flat file using IDCAMS.

REPRO INFILE(FILEI) OUTFILE(FILEO)
IDC3302I ACTION ERROR ON BDLT.CICE.XXXXXXX.DP4600
IDC3309I ** RECORD X'0000000000' NOT WRITTEN. LENGTH INVALID
IDC0005I NUMBER OF RECORDS PROCESSED WAS 27588410

IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 8


The VSAM has extended addresibility, with around 27 million records and the first record is a null record. Could anyone please help me on this....
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Sep 30, 2010 10:59 am
Reply with quote

Quote:
... and the first record is a null record ...

explain please!

did You look at the manual for the meaning of the messages and the actions to be taken?

seems that about 27 millions records were processed, did You look at the output dataset?

could be one of the occasions where the sort counting capability might be handy!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Sep 30, 2010 7:11 pm
Reply with quote

Hello,

Or simply use the sort to copy the data. . .

Maybe this will provide a diagnostic that you don't need to look up.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 30, 2010 7:38 pm
Reply with quote

1. TS has not bothered to respond - add him to the list of those who post and then think (or ignore their problem)

2. since it is a vsam to qsam repro (we think) the obvious place to start looking is the defined DCB for the qsam file. qsam record length apparently does not jive with the vsam file. but that is to be expected by silly posts like these. That would have required the TS to do a listcat on the vsam file and determine the record length range.

3. and typical of ignorant posters:
Quote:
...the first record is a null record.

as Enrico asked, what does that mean? there is no such thing as a null record in a vsam file.
Back to top
View user's profile Send private message
gileshpg

New User


Joined: 22 May 2008
Posts: 27
Location: Bangaluru

PostPosted: Fri Oct 01, 2010 10:25 am
Reply with quote

What i meant by null record is the low value record that we add to the VSAM after delete defining, so that other jobs can open the VSAM in I/O mode., else the jobs might not be able to open the VSAM as its empty.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 01, 2010 11:28 am
Reply with quote

I usually use a VB output from REPRO, makes life so much easier
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top