You can use OVRDBF to override the file, this will allow you to call the file whatever you want in your RPG. You will need the OVRDBF in effect when you compile so your RPG can find the external definitions for your file. For example your file is called MYWORKFILE :-
OVRDBF FILE(ANYTHING) TOFILE(MYWORKFILE)
Then use ANYTHING as your file name in your RPG.
Alternatively, you could use ILE/RPG which will allow longer file names.
that’s right the ovrdbf is
OVRDBF FILE(SHORTNAM) TOFILE(SHORTNAME)
if the compile is interactive
issue the override
issue the compile
create a CL that
issues the override
issues the compile
and run it in batch
The override is issued before the call whenever you use this program
After the call issue the command DLTOVR SHORTNAM