× 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.



This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Scott Klement wrote:
<What are you going to do with the resulting data?   Presumably, process
<it with a program that you're writing?   Why not just read the stream
<file directly in that program, and deal with the tilde's as record
<delimiters?

This data is being copied from the IFS with the  CPYFRMIMPF command into a
database file and is being processed by an RPG program.
I only recently became aware that you could process an IFS file from within
RPG.
If you could provide me with or point me to an example that would be great!

In my first post I wrote : Question 2: Can I use CL variables for STDIN and
STOUT?

Scott Klement wrote:

<I don't understand what you mean by that.

<If you mean you want to use variables for "infile" and "outfile",
<you can use variables and just concatenate them to make the string before
<you send it to Qshell... similar to the way I did the &LF, above.
<
<If you mean you want to store the data that will be read on sed's stdin
<in a variable, and put the stdout that it sends back into another
<variable, then...  well, I guess it's possible, but not really practical.
<
<At that point, it would be easier to just process the file in your RPGIV
<or C or whatever language program in the first place.

I'm sorry I wasn't very clear on that. Your example is exactly what I
needed.

Thank you for you help!

Karl Keller
Information Systems
Girling Health Care, Inc.

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information.  Any unauthorized review, use, disclosure or
distribution is prohibited.  If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
--



As an Amazon Associate we earn from qualifying purchases.

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-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.