Page 1 of 1

Trash Stage

Posted: Tue Aug 16, 2005 12:09 pm
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.

Re: Trash Stage

Posted: Tue Aug 16, 2005 1:16 pm
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~

Posted: Tue Aug 16, 2005 1:29 pm
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

Posted: Tue Aug 16, 2005 2:50 pm
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

Posted: Tue Aug 16, 2005 2:52 pm
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.

Posted: Tue Aug 16, 2005 3:12 pm
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.

Posted: Tue Aug 16, 2005 3:29 pm
by kaps
Can you elabarate side effect purposes ?

Posted: Tue Aug 16, 2005 4:45 pm
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.

Posted: Tue Aug 16, 2005 5:45 pm
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.........

Posted: Tue Aug 16, 2005 5:51 pm
by kollurianu
:wink: Cannnot say in words , how great the forum is.......... :D

sorry for my typo.

Posted: Wed Aug 17, 2005 1:43 am
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.

Posted: Wed Aug 17, 2005 7:47 am
by kollurianu
Thank you very much and makes sense.