In my day job I work in an environment where there are multiple PowerSystems servers, and many of them have multiple IBM i partitions. I was tasked to gather information from most of the partitions into one location. I decided to use SQL to fetch the information from the various sources.
I used the following two methods to connect to the other partitions using the partition name:
CONNECT TO SYSTEM2
or
SELECT * FROM SYSTEM2.OTHERLIB.RMTFILE
|
When debugging my program I found that when I tried to connect to some of the partitions I received a SQLCOD value of -950 and the following message: