× 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/2023 3:18 PM, Steve McKay wrote:

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

I am not saying this is a good idea; if I needed this in production I would write a UDF.

-- files after a certain date
-- finds the last slash and splits there
select
path_name,
substr(path_name, 1, (regexp_instr(path_name, '/(?:.(?!/))+$') - 1)) as "Path name",
substr(path_name, (regexp_instr(path_name, '/(?:.(?!/))+$') + 1), length(path_name) - (regexp_instr(path_name, '/(?:.(?!/))+$'))) as "File name"
from table (
qsys2.ifs_object_statistics(
start_path_name => '/dir/dir/dir',
subtree_directories => 'YES'
)
)
where object_type = '*STMF'
and Create_Timestamp > '2023-08-01';


On Thu, Aug 31, 2023 at 1:55 PM Bryan Dietz wrote:

and SQL

select * from table (qsys2.ifs_object_statistics(
start_path_name => '/your/Dir',
subtree_directories => 'YES' ) )
where Create_Timestamp > current_timestamp - XX days ;


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.