×
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.
I send a list of every library to be restored over to the target machine at
the beginning of the process. I have one program that reads this file, and
it attempts a RSTLIB &libname from a single save file name. If the save file
contains the library name, I'm good to go. If not, the program loops until
it gets a hit.
Doing a RSTLIB as a remote command is almost certain to time out on you.
Paul Nelson
Office 512-392-2577
Cell 708-670-6978
nelsonp@xxxxxxxxxxxxx
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jim Essinger
Sent: Monday, September 28, 2009 2:50 PM
To: Midrange Systems Technical Discussion
Subject: FTP and long SYSCMD question
Greetings IT GURUs,
Background:
V5R4 on both i5/os machines/partitions.
I have a process that uses FTP to get save files of libraries from one i
partition to another, and I want to submit a restore job after each library
is successfully transferred. I have "get LibOne (R' to get the save file
and replace the existing file. I want to do a 'syscmd sbmjob cmd rstobj
obj(*all) savelib(LibOne) dev(*safv) objtype(*file) savf(backup/LibOne)
mbropt(*all) alwobjdif(*all) job(JobName) jobd(myjobd) jobq(*jobd)
jobpty(*jobd)' (extra parms added for clarity and to make the command
longer).
Questions:
If the command is too long for the FTP line, is there a continuation
indicator like the plus sign (+) in CL source that will recognize the
following line as part of the command from the previous line?
What is the max length of a record that FTP can process? The record length
of the current script file is 132.
Is there another way to run a submit job command (other than writing a
program for each of 50 libraries) to get the submit job command to process?
Thanks!
Jim
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.