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



Hello,

Not so crazy.. But how to write records to a iSeries Database from
within that shell script?

I don't know if a shell script is the right tool for you or not. Personally, I find HLLs using the APIs to perform better and be more robust than a shell script. But on the other hand, the shell scripts tend to be much easier to write!

But I wanted to specifically address the "can't write to a file" point.

QShell has three different ways of writing to a PF.

1) It can redirect it's output to a flat file via the standard > and >> operators.

2) It has a rfile utility that can perform some limited record I/O operations.

3) It has a db2 utility that can run SQL statements.

Surely one of these would work?



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.