Archives of the TeradataForum
Message Posted: Thu, 21 May 2009 @ 19:06:32 GMT
I'm trying to create a named pipe and write to it using BTEQ. I'm using the export command.
.EXPORT REPORT FILE = '\\.\pipe\myNamedPipe'
Is this the correct syntax? I don't believe I need to use the Named Pipe Access Module because I've created the pipe myself.
I'm opening the "reader" and I'm getting a valid handle to the pipe. It appears to be blocking waiting for the pipe to get fed, but when I run my BTEQ I'm getting a return code of zero, but the pipe doesn't seem to be getting any data so the reader continues to block waiting for data (at least that's what I think is going on).
This is my first time working with Windows named pipes so although I'm checking to see if the pipe connection is successful I'm not sure my parameters are set up correctly.
clientPipeHandle = CreateNamedPipe(PIPE_NAME, DUPLEX, 4 Or 2 Or 0, 255, BUFFER_SIZE, BUFFER_SIZE, 0, IntPtr.Zero)
This explains the parameters.
(pipe name, read/write access, message type pipe or message-read mode or blocking mode, max. instances, output buffer size, input buffer size, client time-out, 'default security attribute)
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|