Startup Program for MIMIX
Here’s a command for your startup program for MIMIX to determine if you are on the source or target:
MIMIX/RTVSYSDFN SYSDFN(*LOCAL) RTNSYSDFN(&LCLSYS)
When you are running MIMIX, you want to have two startup programs for your source and target. You do not want to start all your applications on your target but certainly do on your source.
You can use one program with the command above and then it will determine which system and will run the correct startup program automatically. This MIMIX command will give you the local system name defined MIMIX, so it will know if you are switched and run the correct startup program.
You can then run your startup program once you are switched and it will start all the applications you have in the startup program. This will also stop MIMIX from replacing your startup program since they will always be the same on both sides and then will execute the correct program.