I cannot get sql to work against any DDM file. When I use it straight from STRSQL I get:
CRTDDMF FILE(QTEMP/MYFILE) RMTFILE(SYSIBM/SYSDUMMY1) RMTLOCNAME(gdihq *IP)
STRSQL
select * from qtemp.myfile
SQL7011
MYFILE in QTEMP not table, view, or physical file.
Stop using DDM for SQL.
Instead:
Let's say you have FROMSYSTEM and TOSYSTEM.
On FROMSYSTEM:
ADDRDBDIRE RDB(TOSYSTEM) RMTLOCNAME(tosystem *IP)
ADDRDBDIRE RDB(FROMSYSTEM) RMTLOCNAME(*LOCAL)
ADDSVRAUTE USRPRF(ME) SERVER(TOSYSTEM) USRID(ME) PASSWORD(...) replacing ME with your userid
On TOSYSTEM
ADDRDBDIRE RDB(FROMSYSTEM) RMTLOCNAME(fromsystem *IP)
ADDRDBDIRE RDB(TOSYSTEM) RMTLOCNAME(*LOCAL)
ADDSVRAUTE USRPRF(ME) SERVER(FROMSYSTEM) USRID(ME) PASSWORD(...) replacing ME with your userid
Then on FROMSYSTEM it becomes easy to do:
STRSQL
SELECT * FROM TOSYSTEM.SYSIBM.SYSDUMMY1
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.