Hi Folks, I couldn't get the cat to run but got sed working and I'm not sure it'll work every time but I'd like to know I can make sed default to print the entire file since this is what I'm using now;
sed -n '1,99999p' /TEST/list1.txt | rfile -wQ qsys/qsysprt
Thanks, Frank



-----Original Message-----
From: bdietz400 <bdietz400@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Wed, Jan 4, 2012 3:30 pm
Subject: Re: Re: How to print an IFS file from a batch pgm


Based on the Info center, and some testing, you may have to not use the "b"
ption of rfile
-b
rocess binary data. This option prevents normal processing for newline
haracters in the input or output stream. When -b is omitted, newline
haracters are removed from standard input lines written to a record file,
nd newline characters are inserted at the end of records written to
tandard output.
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzahz%2Frzahzrfile.htm


n , Dennis <iseries@xxxxxxxxxxxx> wrote:
Try:
cat /fbtest/BIL092423_(etc) | rfile -wbQ -c "ovrprtf qprint
splfname(my_print)" qprint
(Of course, replace (etc). I got lazy.) (All of the above on one line.)
++
Dennis
-
his is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
o post a message email: MIDRANGE-L@xxxxxxxxxxxx
o subscribe, unsubscribe, or change list options,
isit: http://lists.midrange.com/mailman/listinfo/midrange-l
r email: MIDRANGE-L-request@xxxxxxxxxxxx
efore posting, please take a moment to review the archives
t http://archive.midrange.com/midrange-l.


This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].