A few little bits-and-bobs that might come in handy to other SITS:Vision developers.
A little (Oracle) SQL script to quickly determine the build order (and therefor almost certainly the intended release order) for a list of projects.
(Oracle) SQL script to find duplicate PBI records across all active and in-use projects. Menu options XPRJ2 and friends help find duplicate PRI records, but fail to account for what is actually built when project templates are used.
- The first
WITH
clause attaches a row number to all PRB records within their own PRJ when sorted by build date/time - The second
WITH
clause uses that to get a list of all PBI records from the latest builds of all active and in-use projects- Excludes build items from
MENSYS.PRT
andMENSYS.SLV
to reduce some noise
- Excludes build items from
- The root
SELECT
uses that to return all build items with the same dictionary + entity + primary key that appear in more than one active project
Content of SRL which renders the output of duplicate_pri_records.sql
.
- Pop the SQL into an RQH/RQI
- Set RQI "Output Mode" (
RQI_MODE
) to "List" (MODE1
) - Create an SRL with the content of
duplicate_pri_records.html
and tweak as required, especially the call toPSRS_YRQH.RUN
on line 19. - The usual POD/POP and COP stuff from there