[progress Communities] [progress Openedge Abl] Forum Post: Re: Input From Named Pipe

Status
Not open for further replies.
G

Garry Hall

Guest
IMPORT with CHARACTER vars is line-oriented. Each IMPORT will stop at the end of a line. If your line is longer than the max size of a CHARACTER, then the IMPORT will fail with a message that might not be obvious, but basically means you have exceeded the size of a variable. Easy enough to test: DEFINE VARIABLE cline AS CHARACTER NO-UNDO. OUTPUT TO "longdata.txt". PUT UNFORMATTED FILL("x",30000). PUT UNFORMATTED FILL("y",2000). PUT UNFORMATTED SKIP. OUTPUT CLOSE. INPUT FROM "longdata.txt". IMPORT UNFORMATTED cline. INPUT CLOSE. As far as I can tell, reading from a named pipe on unix/linux is the same as reading from a file.

Continue reading...
 
Status
Not open for further replies.
Top