Hi Folks, thanks I settled on using this;
SBMJOB CMD(QSH CMD('pr /fbtest/test.txt')) JOB(myjob)
-----Original Message-----
From: fbocch2595 <fbocch2595@xxxxxxx>
To: midrange-l <midrange-l@xxxxxxxxxxxx>
Sent: Thu, May 24, 2012 1:15 pm
Subject: Re: How to print an IFS file from a batch pgm
i Folks, I couldn't get the cat to run but got sed working and I'm not sure
t'll work every time but I'd like to know I can make sed default to print the
ntire file since this is what I'm using now;
ed -n '1,99999p' /TEST/list1.txt | rfile -wQ qsys/qsysprt
hanks, Frank
-----Original Message-----
rom: bdietz400 <bdietz400@xxxxxxxxx>
o: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
ent: Wed, Jan 4, 2012 3:30 pm
ubject: Re: Re: How to print an IFS file from a batch pgm
ased on the Info center, and some testing, you may have to not use the "b"
tion of rfile
b
ocess binary data. This option prevents normal processing for newline
aracters in the input or output stream. When -b is omitted, newline
aracters are removed from standard input lines written to a record file,
d newline characters are inserted at the end of records written to
andard output.
ttp://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzahz%2Frzahzrfile.htm
, 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
is is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
post a message email: MIDRANGE-L@xxxxxxxxxxxx
subscribe, unsubscribe, or change list options,
sit:
http://lists.midrange.com/mailman/listinfo/midrange-l
email: MIDRANGE-L-request@xxxxxxxxxxxx
fore posting, please take a moment to review the archives
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.