Unable to view all records from sequential file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Unable to view all records from sequential file

Post by mac4rfree85 »

Hi guys,

I have a sequential file. The file has 2500 rows but when i processed the file using datastage using sequential file, the job is processing only 253 rows.

Even viewdata is showing only 253 rows. No error is occuring.

Can somebody help me to process the whole file.

Cheers!!!
Mac4rfree
sanjayS
Participant
Posts: 16
Joined: Mon Apr 18, 2011 10:56 pm

Post by sanjayS »

can you able to see all records in Source sequential file using View Data?

Thanks,
sanjay.
TPons
Participant
Posts: 18
Joined: Mon Jan 03, 2011 3:32 am
Location: India

Post by TPons »

There is option of limiting the number of rows to be processed at run time.
if it has been set, change it to no limit option.

Pons
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Check the detailed job log to see if the other rows are getting rejected.
Choose a job you love, and you will never have to work a day in your life. - Confucius
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Post by mac4rfree85 »

Yeah qt_ky. the Other rows are getting rejected saying delim=end is not available. But all the rows have same delimiter then how are those 253 rows are able to process.
Mac4rfree
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Your metadata doesn't match your file's data, nothing more than that. What settings are you using in the stage? What is different between a row it will process and one it rejects? Can you post an example of each?
-craig

"You can never have too many knives" -- Logan Nine Fingers
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Post by mac4rfree85 »

chulett wrote:Your metadata doesn't match your file's data, nothing more than that. What settings are you using in the stage? What is different between a row it will process and one it rejects? Can you post an example of each?
Following two records got loaded.

Code: Select all

2011-05-03Aveo                                              RETAIL US        12CHEVROLET CARS            ENTRY CAR
 2011-05-03Aveo                                              FLEET  US       250CHEVROLET CARS            ENTRY CAR
Following records are not loaded to the table.

Code: Select all

2011-05-03DTS                                               RETAIL US         0CADILLAC CARS             LUXURY CAR
 2011-05-03DTS                                               FLEET  US        59CADILLAC CARS             LUXURY CAR
Mac4rfree
kamtammystuff
Participant
Posts: 26
Joined: Fri Feb 19, 2010 2:08 am

Post by kamtammystuff »

What is the metadata in the sequential file stage?
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

perform cat -vte <filename> and filter out two loaded records and two records that are not loaded from the above command and list them.

Bascially the stage is unable to find the record delimiter.
- Zulfi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Maybe DataStage developers don't like Cadillacs? :lol:

Seriously, though, does the 253rd record or thereabouts contain an "end of file" character (Ctrl-D)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Post by mac4rfree85 »

This is what i got

Code: Select all

dsadm@catom-gmapdvl38:/appl/data/Input/US> cat -vte TESTING.txt
 2011-05-03DTS                                               RETAIL US         0CADILLAC CARS             LUXURY CAR$
 2011-05-03DTS                                               FLEET  US        59CADILLAC CARS             LUXURY CAR$
 2011-05-03HHR                                               RETAIL US         7CHEVROLET TRUCKS          VAN/MPV$
 2011-05-03HHR                                               FLEET  US       246CHEVROLET TRUCKS          VAN/MPV$
 2011-05-03STS                                               RETAIL US         2CADILLAC CARS             LUXURY CAR$
 2011-05-03Aveo                                              RETAIL US        12CHEVROLET CARS            ENTRY CAR$
 2011-05-03Aveo                                              FLEET  US       250CHEVROLET CARS            ENTRY CAR$
Mac4rfree
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Was this file sourced from a Windows system?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Post by mac4rfree85 »

Yes ray, i took the file from Windows and ftpped to Unix box, since my datastage is installed in Unix... Also just to answer your question, it is not processing first 253 rows, but random 253 rows from the file.
Mac4rfree
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Could it be that there's a Ctrl-M at the end of the lines (shows as ^M in vi) that is interfering with the parsing? That is, in what mode did you perform the FTP and does your FTP tool handle translating line terminators?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Post by mac4rfree85 »

That was the first thing i checked. i did not see any Ctrl-M characters..
Mac4rfree
Post Reply