named pipes

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
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

named pipes

Post by kollurianu »

i would like know the purpose of name pipes sequential stage , i read the
help , did not get and an how to use it or where it exactly used.

any examples appreciated.

Thank you all.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Kollu,

a named pipe is rather like a sequential file, with the exception that the data is never actually written to disk. You have one writer and one reader (which are usually different processes) and a buffer which is in actuality the "pipe". Since the data is only found in memory it is not persistent and both processes get read or write errors when the other is no longer attached to the pipe.

There are a lot of places where pipes are used to great enhancements in speed. Just think of two separate DS jobs, where the output of one is used as the input of another; and the data is never needed again. Assuming 1 million rows using a table or sequential file would incur 2 million + Disk I/O operations whilst changing that to a pipe would just mean that the CPU has to process the actual data amount plus a bit of overhead for buffer management. The math is easy to do in this case.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You need to create the pipe before using it.
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

how to create a pipe? any example jobs of named pipes ., iam not getting
clear picture of how this going to work.

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

Post by ray.wurlod »

Depending on your UNIX, a named pipe is created with a command such as mknod or mkfifo - check with your UNIX man pages.

(There's a lot of peripheral stuff you need to know to be a DataStage consultant, isn't there?!!)
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 »

Yes there is alot of peripheral stuff to be know Ray , thanks a lot for ur reply.

Thank you all,
Post Reply