Sequential file stage strange behaviour

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

Post Reply
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Sequential file stage strange behaviour

Post by jpraveen »

Hi

I am facing a strange issue with sequential file stage.

I have a file with 2 columns with only one records.
Date: varchar(10)
seqno:char(3).

I am using the above file as a lookup reference.

ISSUE:-

When ever i compile the job or run after 2- 3 hrs later, the data from file is not importing and it shows as

"src_Date_Counter,0: Import complete; 0 records imported successfully, 0 rejected."

but the record is there when i check in file.


is anything i am missing basics.
Jaypee
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Does that mean if you compile and run the job immediately, it processes 1 record but if you repeat after a period of time then it doesn't read that record?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, a little unclear. Can you clarify - does this ever work and if so, when? Or does it always import zero records?
-craig

"You can never have too many knives" -- Logan Nine Fingers
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Hi Chullet,

This will work if i ran the job 4-5 times continuously..

If the job is compiled, then the record is not imported, though there will be 1 record and i am able to see the record in file in unix directory.

"Dt_Counter,0: Import complete; 0 records imported successfully, 0 rejected"
Jaypee
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is this file re-created between runs? If so might there be occasions when the data in the file do not match the defined record schema (metadata)?

Add a reject link to the Sequential File stage. Direct the reject link to a Peek stage so that you can see what the Sequential File stage attempted to read.

Another possibility is that the First Line is Column Headings property was set to True before the job was compiled. This will cause DataStage to skip the first (and only) line.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Yes this file will overwrite on every run and i have put the reject link also.

But still i can see the same issue that after a gap of 2-3 hours, the record is not imported.
Jaypee
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What did you get on the reject link?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply