× 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.



As a temporary measure, I did the following.

- create a SQL script on the local machine.
- DDM it across to the remote system.
- using SBMRMTCMD I ran RUNSQLSTM on the remote using the script sent over.
- used DDM to copy the file to the local machine.

The job ran in total for less than 60 seconds, compared to CPYF on a DDM file which ran for more than 3 hours before being cancelled.

Thanks.

Sent from my iPad

On Jul 28, 2015, at 3:10 PM, Steinmetz, Paul <PSteinmetz@xxxxxxxxxx> wrote:

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.

--
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 ...

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.