A better way to find which file an Alias was built for

Earlier this year I described a way I could retrieve the schema/library and table/file that a SQL Alias had been built over. over the last few months I have discovered several other ways that will allow me to easily get to that information, and even the member too.

I tend to use SQL Alias for coping with SQL’s inability to easily handle multi member files. I could use the Override Database command, OVRDBF, too but I prefer the ease of using the Alias as I can create, use, and then delete the alias all within the same program.

Before I start showing examples, I am going to need to create an Alias, ALIAS_3. Here I am going to create an Alias that will based on the source file DEVSRC, in my library MYLIB, and the source member TESTRPG:

CREATE OR REPLACE ALIAS MYLIB.ALIAS_3 FOR MYLIB.DEVSRC (TESTRPG)
Read more »

Did you know you can work with your IBM i (AS/400) directly from VS Code? Neither did we! Liam Allan from @IBM is here this week to walk us through modernizing #developer tools! Set a reminder and join us ⏰ #COBOL #RPGLE #IBMi @notesofbarry

Did you know you can work with your IBM i (AS/400) directly from VS Code? Neither did we! Liam Allan from @IBM is here this week to walk us through modernizing #developer tools! Set a reminder and join us ⏰ aka.ms/code-livestrea…
#vscode #COBOL #RPGLE #IBMi @notesofbarry pic.twitter.com/KWW9SEGO9s

– Visual Studio Code (@code)12:39 – Aug 09, 2022

Verified by MonsterInsights