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



On 8/31/23 12:18 PM, Steve McKay wrote:
Bryan -

Is there a way to get a meaningful path and object name from your SQL?

Indeed. If I set up a new directory, "/foo," with a single stream file in it, "bar," and try

select * from table (qsys2.ifs_object_statistics(
start_path_name => '/foo',
subtree_directories => 'NO' ) )
where Create_Timestamp > current_timestamp - 1 days

from a STRSQL session, on our V7R5 cloud box, I get:

PATH_NAME OBJEC00001
*POINTER *DIR
*POINTER *STMF

If I follow Patrik's idea, and start a QShell session on that same box, CD to /foo, and do

find * -mtime -1

I get the expected result of

bar

But if I do the same thing on the box where I'll be wanting to look for recently created files, I get:

find * -mtime -1
/QOpenSys/usr/bin/-sh: /QOpenSys/usr/bin/find: 0403-027 The parameter list is too long.
$

regardless of whether I do it from QSH, or from CALL QP2TERM.

--
JHHL


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.