|
Slay the CL beast! Yes we do use RUNSQL on occasion here. However, you've outgrown it. You need to do the following - WRKRDBDIRE and make sure local and remote systems are defined on each other. - Convert the CL to a HLL, (my preference is RPG) - Instead of using DDM do a CONNECT TO... first - Then do the desired SQL Understand? Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin "Stone, Joel" <StoneJ@xxxxxxxxxxxxxxxx> Sent by: midrange-l-bounces@xxxxxxxxxxxx 10/20/2003 04:39 PM Please respond to Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx> To "'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx> cc Subject SQL from one AS/400 to another using a DDM file Can I the the following SQL statements: runsql 'select * from LIB1/DDMfile1 ' if DDMfile1 is a DDM file pointing to another AS/400? I thought that DDM files allow a remote file appear to be a local file to a program. Any ideas on a work-around?? Thanks! I receive the following error: Additional Message Information Message ID . . . . . . : SQL7001 Date sent . . . . . . : 10/20/03 Time sent . . . . . . : 17:46:20 Message . . . . : File DDMfile1 in LIB1 not database file. Cause . . . . . : SQL processing is only valid for a database file. All other file types are not allowed. Recovery . . . : Make certain that the file and library names are correct. _______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.