6 Dec 2005 14:19
split output file with tn5250d
Hello-
Recently we have started using lp5250d to output as400 spool files to
text, which we then process for use in another manner. Since the Linux
process does not know whent the complete spool file has been received, it
checks the end of the file for specific content. If the content exists
(*** END OF REPORT ***) then it assumes the document has been spooled and
is ready for further processing.
What we have found is that for some reason lp5250d sometimes does a
newfile on a page break. This happens both with small three page reports,
as well as 1000 page reports.
The config we use is:
prlit03-f {
host = rtb48.baltic
env.DEVNAME = prlit03
env.IBMMFRTYPMDL = *WSCST
env.IBMWSCSTNAME = QWPDEFAULT
env.IBMWSCSTLIB = *LIBL
outputcommand = scs2ascii >
/var/spool/lp5250d/prlit03/prlit03-`date +%y%m%d.%H`-$$.txt
}
This gives the generated file the date and hour when the file was created,
as well as the process number. In the split file cases, the first half of
the file is with one process number and the second half of the file is
with another process number.
(Continue reading)
--
Jack J. Woehr # "I never played fast and loose with the
PO Box 51, Golden, CO 80402 # Constitution. Never did and never will."
RSS Feed