I have 2 large work files I need to read as one work file concatenated together. Seems like Unix named pipes are the way to go. But when I try to read a work file that is a named pipe, I get this error:
NAT6220 Internal error when reading work file.
My Unix script is:
mkfifo $PWD/catpipe cat File1.txt File2.txt >$PWD/catpipe & echo ONE-WAY,BERGESL,passwd >cmobjin.txt echo LBRDWK >cmsynin.txt echo FIN >>cmsynin.txt natural parm=nputeb33 bp=bpteuuat etid=$$ BATCHMODE auto=off\ CMSYNIN=cmsynin.txt CMOBJIN=cmobjin.txt natlog=all\ CMPRINT=cmprint.txt CMWRK01=$PWD/catpipe
The Natural program LBRDWK is:
DEFINE DATA LOCAL 1 #IN (A50) END-DEFINE READ WORK FILE 1 #IN WRITE #IN END-WORK END
We’re running Natural 8.3.7 on AIX 126.96.36.199
Anyone have any ideas on how to get this to work?