DB2 UDB Load stage

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
ashwin141
Participant
Posts: 95
Joined: Wed Aug 24, 2005 2:26 am
Location: London, UK

DB2 UDB Load stage

Post by ashwin141 »

Hi

I am trying to load some data from a sequential file to a DB2/UDB load stage after doing some transformations. After specifying the properties for the DB2 stage. It's giving an error "requires a minimum of '1' stream outputs"

Can anybody help me on this.

Thanks
Ashwin
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is the link between the Sequential File stage and the DB2 Enterprise stage a solid line or a dashed line? If it is a dashed line this means that it is a reference or reject link. You need to select the link, right click, and choose "Convert to Stream" from the menu.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ashwin141
Participant
Posts: 95
Joined: Wed Aug 24, 2005 2:26 am
Location: London, UK

DB2 UDB Load stage

Post by ashwin141 »

No it's a solid link. Not a reference or Reject link.


Thanks
Ashwin
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I suspect that you might have specified a "reject link" in the stage, which does require an output stream.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

But the error is "requires a minimum of '1' stream outputs". Does the menu show a "Convert to Stream" option?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ashwin141
Participant
Posts: 95
Joined: Wed Aug 24, 2005 2:26 am
Location: London, UK

DB2 UDB Load stage

Post by ashwin141 »

Hi

No there is no reject link from the stage.
And it's not showing the convert to stream enabled.
It's just showing
Convert to reject and reference enabled.

Thanks
Ashwin
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

Is this error occurring at compile time or is it a runtime error?

I have noticed that you can draw links in DataStage Designer that 'look' like they connected to the target stage, but may not and that could produce a similar error message at compile time.

Brad.



It's okay to admit stupid mistakes, right? :roll:
daniel0623
Charter Member
Charter Member
Posts: 34
Joined: Tue May 31, 2005 8:17 pm
Location: ShangHai,China

The same problem puzzled me.

Post by daniel0623 »

I also can't use DB2 Load Stage with same error in Parallel Job.But I can use it in server job.I think it is may be a bug.
ashwin141
Participant
Posts: 95
Joined: Wed Aug 24, 2005 2:26 am
Location: London, UK

DB2 UDB Load stage

Post by ashwin141 »

Hii

Carlson it's not a stupid mistake. :D
It's not working. You can try it out. :)
May be it's a bug. I am not sure. That's why I am here.

Anyway thanks :)

Regards
Ashwin
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

Have you tried using the DB2/UDB Enterprise stage instead of the DB2 Load stage? I have always used the Enterprise stage and have not had any issues. You can choose a write method of load, delete, write or upsert. The load option uses DB2's load utililty.

Brad.
bikan
Premium Member
Premium Member
Posts: 128
Joined: Thu Jun 08, 2006 5:27 am

Post by bikan »

Hi,

I am facing the same problem. Iguess Db2/UDB load stage does not work properly in 7.5.1
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I wouldn't make any such guess. You've resurrected a two year old thread with basically a post that just says 'Me too!'. :wink:

Suggestion: For times like this start a new thread and document exactly what problem you are having. Provide a link back to the old thread if you feel it would be helpful. Include your job design and error(s) encountered. You could also report this to your support provider, if there is indeed a problem with the stage then I would surely think that by now a patch would be available to correct it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply