[b]shall we use the peek stage as a target[/b]
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you like. It's a good technique when incrementally developing a job. The Peek stage will eat all the rows you send to it, and send a sample of them to events in the job log.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The Peek stage is intended to capture a sample of rows. If used as a target with no output link, all it can do is to capture that sample. It will write those few records into entries in the job log.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Re: not getting exactly
There isn't really antyhing that needs to be added to Ray's posts, but let me try from a newbie perspective...fareeda_b wrote:not getting exactly.
I just started using DataStage and finding the Peek stage very helpfull when developing jobs in steps. Say, if you start from left and don't know what will be exactly to the right, just use a Peek stage and the data will get 'dumped' into it. Then add more, and you can still continue to utilize the Peek stage until at some point you will replace it with the actual target, or targets if you use several Peek stages. It is only a development 'utility' and you don't need to worry about columns/datatypes or anything like that. You can check what was 'dumped' in a Director log.
It works well, although I prefer to use a DataSet instead. I like staying always in the Designer and using view data....but it (Peek) is nice, and easy to "drop in" to the job anywhere.
Ernie
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
While still developing I prefer a sequential file stage if I need View Data capability - they're easier to dispose of afterwards.
As a stub I often use a Copy stage with no outputs - it eats rows beautifully and makes zero copies of them.
As a stub I often use a Copy stage with no outputs - it eats rows beautifully and makes zero copies of them.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.