× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Darryl,

Here's a method I'm current using for a similar task.

From the local machine A

CPYF out the records you want to a temp file.
SAVRSTOBJ the temp file from LPAR A to LPAR B.

Or from the remote machine B
SBMRMTCMD CPYF out the records you want to a temp file.
SBMRMTCMD SAVRSTOBJ the temp file from LPAR A to LPAR B.

Paul



-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Darryl Freinkel
Sent: Monday, July 27, 2015 9:37 PM
To: Midrange Systems Technical Discussion
Subject: Using CONNECT to a remote system with RUNSQLSTM

I am trying to copy a subset of records from a file on a remote iSeries to the local iSeries. The remote file has over 50 million records.

I tried to copy using a DDM file with CPYF. It runs but takes forever. It seems that it is copying the whole file to the local system before doing the selection.

I added a entry in WRKRDBDIRE, used STRSQL to connect to run command CREATE TABLE ... with data. It ran is about 30 seconds.

I then tried to run the same SQL SCRIPT with RUNSQLSTM and found the CONNECT is invalid in that environment.

The local system is at V7.1. The remote system is V5R4.

Does anyone have any work arounds to this issue?

My alternative may be to use RMTCMDs with CPYF and then copy the resulting file to the local system with DDM or FTP.

TIA.

--
Darryl Freinkel
--
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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.