Trash Stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
gsherry1
Charter Member
Charter Member
Posts: 173
Joined: Fri Jun 17, 2005 8:31 am
Location: Canada

Trash Stage

Post by gsherry1 »

In Server, is there a method of ending a flow of logic without writing to a file? Ie. Something equivalent to Ab Initio Trash component? I have situation where I was running a stage for side effect purposes and don't really want to write any output.
kris
Participant
Posts: 160
Joined: Tue Dec 09, 2003 2:45 pm
Location: virginia, usa

Re: Trash Stage

Post by kris »

gsherry1 wrote:In Server, is there a method of ending a flow of logic without writing to a file? Ie. Something equivalent to Ab Initio Trash component? I have situation where I was running a stage for side effect purposes and don't really want to write any output.
I don't undesrstand what side effects you are looking for.....

but if you want see the counts on the link but do not want to write the data,

Use Sequential file stage with file name

Code: Select all

/dev/null
.

That will do it.

Kris~
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Hi Kris,

Have you used /dev/null and tried job , was it not giving you any error.

Please let me know.

Any inputs are most welcome,

Thank you all
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Hi All,


Have any one used /dev/null and tried job , was it not giving you any error.

Please let me know.

Any inputs are most welcome,

Thank you all
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You can limit the number of rows read at job start up. You can also limit the number of rows written with a constraint.
Mamu Kim
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Hi Duke ,

Thank very much for ur quick response, but i didnot get what u are saying, that means by limiting the number of rows /dev/null can be used in the sequential stage as file name with out any errors???


Thank you all once again and any help would be greatly appreciated.
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

Can you elabarate side effect purposes ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

/dev/null is a "black hole" - it can accept any number of rows. I usually make the output rule "append" when writing to /dev/null.

On Windows you can use .\NUL since there is a NUL file in every folder.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Thank you Ray very much !!!!! for ur answer and one more point i want to
get clarified is do i need use "append" in order make use of /dev/null.

Thanks once Again ur are really great!!!!!!!!!!

Can say words for a nice forum like this.........
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

:wink: Cannnot say in words , how great the forum is.......... :D

sorry for my typo.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I'm never really certain what attempting to overwrite /dev/null implies, and it may be different on different variants of UNIX. That's why I always choose "append". YMMV.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Thank you very much and makes sense.
Post Reply