×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




so here is where my query finally landed to try and help me detect
new/changed DDS since 2006 and all new DDL that may contain sensitive data
columns.
of course my keyword search list will grow but this is the jist of it...

I know this is just going to scrape the surface, but it is a start.
any suggestions would be appreciated on enhancing this query to identify
sensitive data columns .


elect a.sys_dname, a.sys_tname, a.sys_cname, a.column_text
from qsys2.syscolumns a
,qsys2.syspartitionstat b
where a.sys_dname = 'xxxxxxxxxx'
and b.system_table_schema = 'xxxxxxxxxx'
and b.system_table_member = a.sys_tname
and (b.source_type = 'SQLTABL'
or (case when b.source_type = 'PF'
and b.last_source_update_timestamp >
date('2006-01-01')
then 1
else 0
end) = 1)
and (upper(a.column_text) like '%SS#%'
or upper(a.column_text) like '%ADDR%'
or upper(a.column_text) like '%ACCT%')







On Wed, Oct 9, 2019 at 3:01 PM Rob Berendt <rob@xxxxxxxxx> wrote:

You're welcome.

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jay
Vaughn
Sent: Wednesday, October 9, 2019 2:54 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: sql to obtain date shown in PDM for member (f14)

CAUTION: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.


beautiful Rob - that identified the date in PDM!

thanks!

On Wed, Oct 9, 2019 at 2:48 PM Rob Berendt <rob@xxxxxxxxx> wrote:

Keeping in mind that a member is called a partition in database parlance
then study the following and see if you can explain the difference
between
the two timestamps and if either matches what you are seeing in PDM:
SELECT system_table_schema, system_table_name, system_table_member,
Source_type,
last_change_timestamp, last_source_update_timestamp,
partition_text
FROM QSYS2.SYSPARTITIONSTAT
WHERE SYSTEM_TABLE_SCHEMA = 'ROUTINES'
AND SYSTEM_TABLE_NAME = 'QRPGLESRC';

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Jay
Vaughn
Sent: Wednesday, October 9, 2019 2:40 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>;
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: sql to obtain date shown in PDM for member (f14)

CAUTION: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.


I've tried to do a dspfd type(*mbrlist) but the last changed date does
not
correspond to what I find in pdm when i press f14.

I need to know the last time the file/member (source) changed.

anyone know?

Jay
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


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