× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




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.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.