|
Putty? I used EDTF to edit the shell script. As in
EDTF STMF('/rob/testshell')
Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From:
John McKee <jmmckee@xxxxxxxxxxxxxx>
To:
midrange-l@xxxxxxxxxxxx
Date:
05/08/2009 04:41 PM
Subject:
RE: QSH setting a variable
Sent by:
midrange-l-bounces@xxxxxxxxxxxx
I tried copying just the relevant lines to the clipboard. Having some
issues
with PuTTY.
I did use $syscmd. Here is the code segment:
do
echo $i
get_file $i | sftp_session
eval syscmd = 'CPYFRMIMPF FROMSTMF($i) TOFILE(SPBAHCP4) \
RCDDLM(*CRLF) FLDDLM(''|'')'
echo $syscmd
# system $syscmd
With system command uncommented, I get an error of a left parenthesis
encountered. So, I inserted the echo $syscmd. Nothing shows up.
John McKee
Quoting Michael Bolland <Michael.Bolland@xxxxxxxxxxxxxxxxx>:
This might be crazy but can you try £syscmdlist of
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John McKee
Sent: 08 May 2009 21:09
To: Midrange Systems Technical Discussion
Subject: QSH setting a variable
This is so stupid. I can generate a list of files and retrieve that
files just fine. But, for each file I rertieve using sftp, I need tousing
send the
content through the CPYFRMIMPF command.
My thinking was that all i needed to do was this:
eval syscmd = 'CPYFRMIMPF FRMSTMF($i) TOFILS(X).....'
system $syscmd
The above is not working. I put in echo $syscmd, and I see nothing.
The $i is being set by a for loop. It is being populated. I trued not
eval as well. Tried including export syscmd. Just not seeinglist
anything for the
command.
Gotta be something wrong. Something obvious.
John McKee
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxlist
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 electronic message contains information that is confidential and
may be privileged. This electronic message is intended for the use
of the addressee(s) only. If you are not the intended addressee, any
disclosure, copying, distribution or use of the contents of this
message is prohibited and may be unlawful. Disclosure to any party
other than the addressee, whether inadvertent or otherwise is not
intended to waive privilege or confidentiality.
Although this electronic message and any attachments are believed to
be free from any virus or other defect which might affect any system
into which they are received or upon which they are opened, it is the
responsibility of the recipient to ensure that they are virus free
and to check that they will not adversely affect its systems and
data. No responsibility is accepted by Northern Foods PLC (or any
member of its group) for any loss or damage arising in any way from
their receipt, opening or use.
Northern Foods Plc is registered in England with company number
471864. Registered office: 2180 Century Way, Thorpe Park, Leeds LS15
8ZB.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
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.
--
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-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.