Re: SFTP in a batch job

2015-02-10 Thread Phil Sidler
On Mon, 9 Feb 2015 14:21:38 -0600, Kirk Wolf wrote: >Here is a table comparing various BPXBATCH-like utilities: >https://www.dovetail.com/products/cozbatch.html Using AOPBATCH with PARM='//bin/sh -L' allows you to run a login shell, then the STDIN is any valid shell commands, including setting/

Re: SFTP in a batch job

2015-02-09 Thread Kirk Wolf
Sorry, I forgot to include the URL: Here is a table comparing various BPXBATCH-like utilities: https://www.dovetail.com/products/cozbatch.html Kirk Wolf Dovetailed Technologies http://dovetail.com On Mon, Feb 9, 2015 at 2:19 PM, Kirk Wolf wrote: > > On Mon, Feb 9, 2015 at 9:34 AM, Paul Gilmar

Re: SFTP in a batch job

2015-02-09 Thread Kirk Wolf
On Mon, Feb 9, 2015 at 9:34 AM, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Mon, 9 Feb 2015 09:58:08 -0500, Kurt Quackenbush wrote: > > >> ... One change I'd like to make > >> to it, to make it easier for our developers, would be to have the > >> sftp subcommand

Re: SFTP in a batch job

2015-02-09 Thread Paul Gilmartin
On Mon, 9 Feb 2015 09:58:08 -0500, Kurt Quackenbush wrote: >> ... One change I'd like to make >> to it, to make it easier for our developers, would be to have the >> sftp subcommands coded instream in the JCL like they had with the >> previous ftp implementation. Any pointers on how to accompl

Re: SFTP in a batch job

2015-02-09 Thread Dana Mitchell
On Fri, 6 Feb 2015 16:25:16 +, Imhauser Breton - bimhau wrote: > >However, regardless of the subject line, I'm surprised no one has mentioned >scp for text file transfers. Most folks go directly from ftp to sftp, >thinking it's >the only way to replace existing transfer work with a ssh >

Re: SFTP in a batch job

2015-02-09 Thread Kurt Quackenbush
... One change I'd like to make to it, to make it easier for our developers, would be to have the sftp subcommands coded instream in the JCL like they had with the previous ftp implementation. Any pointers on how to accomplish that? Use an IEBGENER step to copy instream commands to a tempora

Re: SFTP in a batch job

2015-02-06 Thread Mullen, Patrick
MAIN@LISTSERV.UA.EDU] On Behalf Of Staller, Allan Sent: Friday, February 06, 2015 12:13 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SFTP in a batch job So pay for the support license, Agreed, CoZ looks really handy, but our rules do not allow 'free' software in production. SCP is a ve

Re: SFTP in a batch job

2015-02-06 Thread Dana Mitchell
Unfortunately, that won't happen here either... Dana On Fri, 6 Feb 2015 18:13:10 +, Staller, Allan wrote: >So pay for the support license, -- For IBM-MAIN subscribe / signoff / archive access instructions, send email

Re: SFTP in a batch job

2015-02-06 Thread Staller, Allan
So pay for the support license, Agreed, CoZ looks really handy, but our rules do not allow 'free' software in production. SCP is a very interesting idea, its also true that most of what I'm working on replacing are single file, text data transfers. I'll explore that possibility with the rem

Re: SFTP in a batch job

2015-02-06 Thread Paul Gilmartin
On Fri, 6 Feb 2015 10:45:21 -0600, Dana Mitchell wrote: > >Agreed, CoZ looks really handy, but our rules do not allow 'free' software in >production. > Dovetailed willl let you pay for it, if you wish, or at least for a service contract. I suppose they could offer a Pro version for $1.00 to meet

Re: SFTP in a batch job

2015-02-06 Thread Dana Mitchell
On Fri, 6 Feb 2015 16:25:16 +, Imhauser Breton - bimhau wrote: >There should be no argument, that the CoZ toolkit is AWESOME! It has been a >favorite for many of us systems guys, for quite some time. > >However, regardless of the subject line, I'm surprised no one has mentioned >scp for t

Re: SFTP in a batch job

2015-02-06 Thread Dana Mitchell
Many thanks to Don and Kirk, I now have a sftp working in a BPXBATCH step, using a script as they suggested. One change I'd like to make to it, to make it easier for our developers, would be to have the sftp subcommands coded instream in the JCL like they had with the previous ftp implementat

Re: SFTP in a batch job

2015-02-06 Thread Imhauser Breton - bimhau
There should be no argument, that the CoZ toolkit is AWESOME! It has been a favorite for many of us systems guys, for quite some time. However, regardless of the subject line, I'm surprised no one has mentioned scp for text file transfers. Most folks go directly from ftp to sftp, thinking it'

Re: SFTP in a batch job

2015-02-05 Thread Paul Gilmartin
On Thu, 5 Feb 2015 13:10:15 -0600, Kirk Wolf wrote: >... (If they can customize it that much, why >> can't they make it work from 3270 OMVS? Or at least >> as long as there's no prompting needed?) >> >Hey, that's a great idea :-) > I thought an APAR was created for me about OMVS password masking

Re: SFTP in a batch job

2015-02-05 Thread Kirk Wolf
On Thu, Feb 5, 2015 at 12:33 PM, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Thu, 5 Feb 2015 09:35:25 -0600, Kirk Wolf wrote: > > >On Thu, Feb 5, 2015 at 8:39 AM, Paul Gilmartin wrote: > > > >> I thought "sftp" has no ASCII mode. Kirk? > >> > >> IBM's sftp in Port

Re: SFTP in a batch job

2015-02-05 Thread Paul Gilmartin
On Thu, 5 Feb 2015 09:35:25 -0600, Kirk Wolf wrote: >On Thu, Feb 5, 2015 at 8:39 AM, Paul Gilmartin wrote: > >> I thought "sftp" has no ASCII mode. Kirk? >> >> IBM's sftp in Ported Tools for z/OS does have ascii enablement (for >IBM-1047 <-> ISO8859-1 only): > >- the sftp client has added an "asc

Re: SFTP in a batch job

2015-02-05 Thread Kirk Wolf
e I can connect to the > remote sftp server on another platform and transfer files like a boss. > What I need to be able to do is transfer files via sftp in a batch job. I > can't figure out how to pass the user/password from a batch job. I see > examples such as: > > //* >

Re: SFTP in a batch job

2015-02-05 Thread Kirk Wolf
On Thu, Feb 5, 2015 at 8:39 AM, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > I thought "sftp" has no ASCII mode. Kirk? > > IBM's sftp in Ported Tools for z/OS does have ascii enablement (for IBM-1047 <-> ISO8859-1 only): - the sftp client has added an "ascii" subcom

Re: SFTP in a batch job

2015-02-05 Thread Elardus Engelbrecht
Paul Gilmartin wrote: >I thought "sftp" has no ASCII mode. Kirk? It depends where Dana used that sftp client. >>I tried that but it didn't work. "pwd" didn't show me as being in >>/home/, instead it showed that I was in /tmp. So I created a .ssh >>directory and authorized_keys file in /t

Re: SFTP in a batch job

2015-02-05 Thread Dana Mitchell
On Thu, 5 Feb 2015 08:39:55 -0600, Paul Gilmartin wrote: >> >That shouldn't be. Is it possible that your target user ID is defined >in RACF with a default OMVS segment with HOME="/tmp"? This could >cause other problems; can you get it changed? > In my RACF OMVS segment, HOME="/u/myuserid", wh

Re: SFTP in a batch job

2015-02-05 Thread Paul Gilmartin
On Thu, 5 Feb 2015 07:50:29 -0600, Dana Mitchell wrote: >>> >>Use .ssh. That's what it's for. > >If by that you mean, utilizing these steps from a 2009 Dovetailed presentation: > >(zoshost's sftp client still connected to remote host) >sftp> pwd >Remote working directory: /home/kirk/ >sftp> mkdir

Re: SFTP in a batch job

2015-02-05 Thread Dana Mitchell
On Wed, 4 Feb 2015 22:08:04 +, Grinsell, Don wrote: > >This is what I use: > Thanks Don, I'll give that a try Dana -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.ed

Re: SFTP in a batch job

2015-02-05 Thread Dana Mitchell
On Wed, 4 Feb 2015 15:03:17 -0700, Paul Gilmartin wrote: >> >Use .ssh. That's what it's for. > Gil, If by that you mean, utilizing these steps from a 2009 Dovetailed presentation: (zoshost's sftp client still connected to remote host) sftp> pwd Remote working directory: /home/kirk/ sftp> mkdi

Re: SFTP in a batch job

2015-02-04 Thread Paul Gilmartin
On Wed, 4 Feb 2015 23:33:13 -0500, Rob Schramm wrote: > >Where did the ASKPASS come from? > It appears to be a member of a PDS allocated to STDENV. (I trimmed the OP considerably to what I was commenting on.) Can you clarify/expand your question? >On Wed, Feb 4, 2015 at 5:34 PM, Paul Gilmartin wr

Re: SFTP in a batch job

2015-02-04 Thread Rob Schramm
Don, Where did the ASKPASS come from? Rob Rob Schramm Senior Systems Consultant On Wed, Feb 4, 2015 at 5:34 PM, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Wed, 4 Feb 2015 17:11:12 -0500, Mark Jacobs - Listserv wrote: > > >You should really, really use public

Re: SFTP in a batch job

2015-02-04 Thread Paul Gilmartin
On Wed, 4 Feb 2015 17:11:12 -0500, Mark Jacobs - Listserv wrote: >You should really, really use public key authentication instead of >user/passwords. > I suggested that initially. But now I think of one utility my employer supplies which requires user/password. The admins are shirking the chor

Re: SFTP in a batch job

2015-02-04 Thread Mark Jacobs - Listserv
Tools OpenSSH, and can successfully use putty to log into my z/OS system (1.13). From there I can connect to the remote sftp server on another platform and transfer files like a boss. What I need to be able to do is transfer files via sftp in a batch job. I can't figure out how to pass the us

Re: SFTP in a batch job

2015-02-04 Thread Grinsell, Don
PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: SFTP in a batch job Hello All, We have a need to implement sftp transfers in place of some ftp batch jobs. I have installed IBM Ported Tools OpenSSH, and can successfully use putty to log into my z/OS system (1.13). From there I can connect to the rem

Re: SFTP in a batch job

2015-02-04 Thread Paul Gilmartin
On 2015-02-04 14:42, Dana Mitchell wrote: > Hello All, > > We have a need to implement sftp transfers in place of some ftp batch jobs ... > ... > Also it would be a bonus if we could store userid/password in a seperate file > like NETRC so that could be racf secured to only authorized users o

SFTP in a batch job

2015-02-04 Thread Dana Mitchell
boss. What I need to be able to do is transfer files via sftp in a batch job. I can't figure out how to pass the user/password from a batch job. I see examples such as: //* //STEPNAME EXEC PGM=BPXBATCH,REGION=8M //STDERR DD S