Ever wanted to see a quick list of everything that is checked out for a Turnover Project? Lets imagine that Project has many subprojects? We can use the Turnover V100 plugin for RDI, or we can use the good old green screen to poke around but it’s much easier to peek into the Turnover Database itself using SQL.
Very easy to see with one simple SQL command:
select * from softturnd/toutlgll where coref# like 'PROJ0099%' This will show you every object that is checked out for that 'PROJ0099' and all subsequent 'PROJ009901' '02' '03' etc.. projects
If you want to exclude specific levels (on our system Level=’20’ is production) just use the colev field. ie:
select * from softturnd/toutlgll where coref# like 'PROJ0099%' and colev <> '20'
IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.
Encrypt IBM i File (Table) Data with no RPGLE changes using SQL
IBM i SQL – Using SUBST to insert data into a string
Funky IBM i Email Validation Program using SQL Regex
Simple email validation SQL RPG ILE program
IBM i SQL statement to convert or compare hundred year date format
Use IBM i SQL to validate email addresses in Customer Master File
Copying iSeries fields from numeric to Alpha – aka using SQL to change column data type
Varying Length fields in DDS and IBM i SQL
How to change a Files alternative name using IBM i SQL