I'm just the unfortunate sole debugging an iSeries/RPG/SQL issue... (I'm not an RPG expert)
I have a program which contains temporary tables declared on DB2 on the iSeries. The temporary tables are declared in a session, so when I run the application and debug the RPG via a terminal on the iSeries (I presume this is the right terminology?) Anyway, I'm effectively in two different sessions.
The SQL I am looking at does something like this...
select blah from SESSION/#temp_table left join #real_table left join _to_many_other_tables
While I can query the "real table" fine, I can't see the contents of the SESSION table... so how would I go about querying a table in a different session ?? Presumably SESSION/#temp_table is something I could query by doing something like select * from 123123/#temp_table, but how would I know what the other session id/name/variable/access token looks like?