Re: SFTP From Linux to z/OS

2017-05-04 Thread John McKown
On Thu, May 4, 2017 at 12:10 PM, Ron Thomas  wrote:

> Thanks for all the inputs , if we code as below is it possible to capture
> space related issues ? when i tried to give volume parameter it is not
> allowing , which made me think that script does not allow multi volume
> allocation . Correct me if i am wrong here ?
>

​That is very shop dependent. If the DSN is non-SMS, then most likely the
allocation will be to a single DASD volume. Which volume depends on mount
attributes and possibly the default esoteric name (we used to have
UNIT=FTPDA for files which came in via FTP). If the DSN is SMS managed,
then it depends on the ACS routines and the DATACLAS assigned. Our ftp DSNs
are SMS managed and assigned to a specific "ftp only" storage group. The
DSNs are assigned a DATACLAS which uses a DYNVOL value which allows for up
to 59 volumes to be allocated. 59 is the maximum possible in z/OS.​



>
> ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
>

​This may, or may not, help:

ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100,unit=(sysallda,5)

which should/might allow up to 5​ volumes to be used. Again, this depends
very much on your shop.



> put /sap/input/sample.txt //'KG99KVT.FXN.MXCROT.TOT(+1)'
> quit
>
> Thanks
> Ron T
>

-- 
Advertising is a valuable economic factor because it is the cheapest way of
selling goods, particularly if the goods are worthless. -- Sinclair Lewis


Maranatha! <><
John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-04 Thread Ron Thomas
Thanks for all the inputs , if we code as below is it possible to capture space 
related issues ? when i tried to give volume parameter it is not allowing , 
which made me think that script does not allow multi volume allocation . 
Correct me if i am wrong here ?

ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
put /sap/input/sample.txt //'KG99KVT.FXN.MXCROT.TOT(+1)'
quit

Thanks
Ron T

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Paul Gilmartin
On Tue, 2 May 2017 15:57:00 -0500, Tom Marchant wrote:
>From the JCL manual:
>
>If you omit the status subparameter, the default is NEW.
>
>If you omit the normal termination disposition subparameter, the 
>default is DELETE for a NEW data set or KEEP for an existing data 
>set.
> 
Ooooh!  This is confusing.  If I supply the status subparameter as
DISP=MOD and omit the disposition parameter and the data set is
not an existing data set but created by allocation, is it treated
as a new data set (DELETE) or an existing data set (KEEP)?

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Kirk Wolf
"ls" and "put" are not shell commands - they are subcommands to the sftp
(or cozsftp) shell command.
>From linux, you would typicall use a Unix "here" document to do this;
something like:

sftp   -b- u...@my.zos.host  Hi Kirk
>
> Here is the script  & the error message i am getting . Kindly let me know
> is there anything wrong here ?
>
>
> ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
> put /sap/input/sample.txt //'KG99KVT.FXN.MXCROT.TOT(+1)'
> quit
>
> ls: cannot access /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100: No
> such file or directory
> ./test1.sh: line 2: put: command not found
> ./test1.sh: line 3: quit: command not found
>
> Thanks
> Ron T
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Kirk Wolf
Gil,

Internally Co:Z uses BPXWDYN for dynamic allocation.  Many of the keywords
are surfaced as options.

I'm not sure if this is your question, but for GDG allocation relative
generation references are affected by the "GDGNT" option, which by default
is off.   See the BPXWDYN documentation for more information, but I believe
that this simply maps to the equivalent SVC99 option that controls whether
GDG relative numbers are frozen to the start of the job or float (NT="New
Table").

So, if you want to have (+1) be a new generation (more than once), you need:

ls /+gdgnt

Of course, we often suggest that this be configured as a default option in
the config file.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Tue, May 2, 2017 at 2:32 PM, Paul Gilmartin <
000433f07816-dmarc-requ...@listserv.ua.edu> wrote:

> On Tue, 2 May 2017 13:59:54 -0500, Kirk Wolf wrote:
>
> >Hi John,
> >
> >To mount tapes with Co:Z SFTP, you have to enable the "mount" dynamic
> >allocation option:
> >
> >ls /+mount
> >
> (This may also require administrative configuration action.)
>
> >(And you also need mount authority)
> >
> I assume that if it's a GDG it's catalogued.
>
> How does GDG(+1) work outside JCL?
>
> Will each SVC 99 create a new generation?
>
> Is (+1) allocated to a new volume or a new data set or the volume of (+0)?
> Can the programmer control this?  I don't believe DYNALLOC supports
> VOL=REF.
>
> Does Co:Z support DD:?
>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Tom Marchant
On Tue, 2 May 2017 14:51:59 -0500, John McKown wrote:

>​The default disp, I think, for all data sets is NEW,CATLG . 

I don't know if it's different for dynamic allocation, but in JCL if you 
don't specify any disp, the default is (new,delete)
From the JCL manual:

If you omit the status subparameter, the default is NEW.

If you omit the normal termination disposition subparameter, the 
default is DELETE for a NEW data set or KEEP for an existing data 
set.

If you omit the abnormal termination disposition subparameter, the 
default is the disposition specified or implied by the second 
subparameter. However, if the second subparameter specified PASS, 
the default abnormal termination disposition is DELETE for a NEW 
data set or KEEP for an existing data set.

If you omit the DISP parameter, the default is a NEW data set with 
a disposition of DELETE for both normal and abnormal termination 
disposition. Thus, you can omit the DISP parameter for a data set 
that is created and deleted during a step.


-- 
Tom Marchant

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread John McKown
On Tue, May 2, 2017 at 3:51 PM, Ron Thomas  wrote:

> Hi Kirk
>
> Here is the script  & the error message i am getting . Kindly let me know
> is there anything wrong here ?
>
>
> ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
> put /sap/input/sample.txt //'KG99KVT.FXN.MXCROT.TOT(+1)'
> quit
>
> ls: cannot access /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100: No
> such file or directory
> ./test1.sh: line 2: put: command not found
> ./test1.sh: line 3: quit: command not found
>
> Thanks
> Ron T
>

​That indicates that you are only running the IBM standard sftp server.
​The Dovetailed Technologies ssh/sftp enhancement is not installed
properly, if you supposed to have it. You need to ask the z/OS sysprog in
charge of TCPIP, I would guess.

ref: http://www.dovetail.com/products/sftp.html​


-- 
Advertising is a valuable economic factor because it is the cheapest way of
selling goods, particularly if the goods are worthless. -- Sinclair Lewis


Maranatha! <><
John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Ron Thomas
Hi Kirk

Here is the script  & the error message i am getting . Kindly let me know is 
there anything wrong here ?


ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
put /sap/input/sample.txt //'KG99KVT.FXN.MXCROT.TOT(+1)'
quit

ls: cannot access /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100: No such 
file or directory
./test1.sh: line 2: put: command not found
./test1.sh: line 3: quit: command not found

Thanks
Ron T

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Paul Gilmartin
On Tue, 2 May 2017 14:40:49 -0500, Steve Beaver wrote:
>
>How does GDG(+1) work outside JCL? (NO)
>
>Will each SVC 99 create a new generation? YES
> 
Those two statements seem to contradict each other.  The first says you can't 
create
a new generation; the second says you can't.  (Perhaps it can be done, but not 
in
the DSN= key.)

>Can the programmer control this?  DYNALLOC supports everything you can do in a 
>DD Statement  (It’s a lot of work but yes you can)
> 
I know I've failed with BPXWDYN attempting to allocate two data sets (different
position on the same tape volume), but I do it readily in JCL.

VOL=REF?  I suppose I could do an INFO to get the volser then use that 
explicitly.
But see above.

In an IKJEFT01 step, how would I go about accessing a temp DSN passed from an
earlier step.  Chasing control blocks?  Yes, that's a lot of work.

My recent experience is with BPXWDYN.  It's been decades since I used SVC 99
in assembler.

OK.  Here's the list from  SA23-1371-05 z/OS MVS Programming:
Authorized Assembler Services Guide iea3a812.pdf

JCL DD statement facilities not supported by dynamic allocation
Table 69 lists JCL DD statement facilities that cannot be used in dynamic 
allocation.
  Table 69. JCL DD Statement Facilities Not Supported by Dynamic Allocation
Restricted DDnames
Keyword Parameters
Positional Parameters
Selected Subparameters of Keywords
JOBCAT, STEPCAT, JOBLIB, and STEPLIB
CHKPT, DDNAME, DLM, and DSID
*, DATA, and DYNAM
Keyword Subparameter Not Supported
DCB reference to ddname of a previous step CYLOFL
NTM RKP
DISPPASS specification DSN  reference to ddname (as in *.ddname) 
ISAM area
name SPACE  ABSTR specification
UNITAFF
VOLUME
RETAIN specification REF=ddname

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread John McKown
On Tue, May 2, 2017 at 2:32 PM, Paul Gilmartin <
000433f07816-dmarc-requ...@listserv.ua.edu> wrote:

> On Tue, 2 May 2017 13:59:54 -0500, Kirk Wolf wrote:
>
> >Hi John,
> >
> >To mount tapes with Co:Z SFTP, you have to enable the "mount" dynamic
> >allocation option:
> >
> >ls /+mount
> >
> (This may also require administrative configuration action.)
>

​Thanks. That works for me. ​



>
> >(And you also need mount authority)
> >
> I assume that if it's a GDG it's catalogued.
>

​The default disp, I think, for all data sets is NEW,CATLG . And, of
course, GDGs are catalogued.​



>
> How does GDG(+1) work outside JCL?
>

​Nothing like they do in JCL. That is, suppose you have GDG.G0001V00
already. You then allocate GDG(+1). You now have GDG.G0002V00. You allocate
GDG(+1) again, you end up with GDG.G0003V00.​

Actually, since the GDG is cataloged at allocate time (SMS) or step end
(non-SMS), the initiator has what I recall being called a "GDG bias table".
I remember a zap back in the MVT days which would disable this. The logic
for this was that "the relative generation number should stay the same in
all the JCL statements in all the steps". So that GDG(+1) was the same
generation all steps after the one in which it was created (and cataloged).
This is one reason why restart is difficult without something like CA-11.
When you restart a job, you must modify all the relative GDG numbers in the
DD statements. Which is very labor intensive and error prone.



>
> Will each SVC 99 create a new generation?
>
> Is (+1) allocated to a new volume or a new data set or the volume of (+0)?
> Can the programmer control this?  I don't believe DYNALLOC supports
> VOL=REF.
>
> Does Co:Z support DD:?
>

​Only their sftp client when it is running on z/OS. So you can do a "get"
to a z/OS DD statement.
ref: https://dovetail.com/docs/sftp/client.html​



>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>



-- 
Advertising is a valuable economic factor because it is the cheapest way of
selling goods, particularly if the goods are worthless. -- Sinclair Lewis


Maranatha! <><
John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Steve Beaver
I assume that if it's a GDG it's catalogued (It must be catalogued on your 
system or you get to fill out the fullname)

How does GDG(+1) work outside JCL? (NO)

Will each SVC 99 create a new generation? YES

Is (+1) allocated to a new volume or a new data set or the volume of (+0)? 
Depends on SMS, etc

Can the programmer control this?  DYNALLOC supports everything you can do in a 
DD Statement  (It’s a lot of work but yes you can)

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Paul Gilmartin
Sent: Tuesday, May 2, 2017 2:33 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: SFTP From Linux to z/OS

On Tue, 2 May 2017 13:59:54 -0500, Kirk Wolf wrote:

>Hi John,
>
>To mount tapes with Co:Z SFTP, you have to enable the "mount" dynamic 
>allocation option:
>
>ls /+mount
>
(This may also require administrative configuration action.)

>(And you also need mount authority)
> 
I assume that if it's a GDG it's catalogued.

How does GDG(+1) work outside JCL?

Will each SVC 99 create a new generation?

Is (+1) allocated to a new volume or a new data set or the volume of (+0)?
Can the programmer control this?  I don't believe DYNALLOC supports VOL=REF.

Does Co:Z support DD:?

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Paul Gilmartin
On Tue, 2 May 2017 13:59:54 -0500, Kirk Wolf wrote:

>Hi John,
>
>To mount tapes with Co:Z SFTP, you have to enable the "mount" dynamic
>allocation option:
>
>ls /+mount
>
(This may also require administrative configuration action.)

>(And you also need mount authority)
> 
I assume that if it's a GDG it's catalogued.

How does GDG(+1) work outside JCL?

Will each SVC 99 create a new generation?

Is (+1) allocated to a new volume or a new data set or the volume of (+0)?
Can the programmer control this?  I don't believe DYNALLOC supports VOL=REF.

Does Co:Z support DD:?

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Kirk Wolf
Hi John,

To mount tapes with Co:Z SFTP, you have to enable the "mount" dynamic
allocation option:

ls /+mount

(And you also need mount authority)

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Tue, May 2, 2017 at 1:56 PM, John McKown 
wrote:

> On Tue, May 2, 2017 at 1:07 PM, Ron Thomas  wrote:
>
> > Hi . One of my colleagues told me from Linux script ,we can do SFTP using
> > the below file allocation . Just wanted to know whether this possible ?
> As
> > per my understanding this has no significance ? Also, whether from
> virtual
> > machine we can put to a tape GDG file ?
> >
> > ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
> >
>
> ​The above makes me think that you have installed Dovetailed Technologies's
> SSH/SFTP enhancements.​
>
>
>
> > put /pas/input/rtb/one.txt //'PCICST.FXIN.MAXRTCRO.OT(+1)'
> >
>
> ​I was able to send to a +1 generation on disk, but not tape.​ When I tried
> tape, I got:
>
> ZosSettings[I]: Transfer options:
> clientcp=ISO8859-1,lrecl=1500,mode=text,recfm=fb,servercp=
> IBM-1047,space=trk.5.5,trim,unit=vts2
> ZosDataset[I]: Opening dataset TSH009.LISTCAT(+1) for write with options:
> lrecl(1500) recfm(f,b) tracks space(5,5) unit(vts2) new catalog
> IKJ56221I DATA SET TSH009.LISTCAT NOT ALLOCATED, VOLUME NOT AVAILABLE+
> IKJ56221I VOLUME  NECESSARY TO SATISFY YOUR REQUEST NOT ON SYSTEM, AND
> CANNOT BE MOUNTED
> DatasetHandler[E]: BPXWDYN allocation failed S99ERROR=0x0218 S99INFO=0x
> DatasetHandler[E]: BPXWDYN command was: "alloc fi(SYS5) reuse msg(2)
> da('TSH009.LISTCAT(+1)') lrecl(1500) recfm(f,b) tracks space(5,5)
> unit(vts2) new catalog"
> DatasetHandler[E]: Dataset TSH009.LISTCAT(+1) open error: EDC5000I No error
> occurred. (errno2=0xC4070044)
> DatasetHandler[E]:   __amrc last_op=604, error=0x5620062, msg=
>
> ​I think that this is because BPXWDYN, which is apparently what is used to
> do the dynamic allocation rather than SVC 99 directly, requires that the
> caller use the MOUNT option​. There may be some sftp server option that I
> have missed, however.
>
>
>
> >
> > Thanks
> > Ron T
> >
>
>
> --
> Advertising is a valuable economic factor because it is the cheapest way of
> selling goods, particularly if the goods are worthless. -- Sinclair Lewis
>
>
> Maranatha! <><
> John McKown
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Kirk Wolf
Hi Ron,

This works from a remote SFTP client if the server is running CO:Z SFTP in
conjunction with IBM OpenSSH.
The IBM supplied SFTP programs with z/OS OpenSSH do not support data sets..

For more information, see our website.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Tue, May 2, 2017 at 1:07 PM, Ron Thomas  wrote:

> Hi . One of my colleagues told me from Linux script ,we can do SFTP using
> the below file allocation . Just wanted to know whether this possible ? As
> per my understanding this has no significance ? Also, whether from virtual
> machine we can put to a tape GDG file ?
>
> ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
> put /pas/input/rtb/one.txt //'PCICST.FXIN.MAXRTCRO.OT(+1)'
>
> Thanks
> Ron T
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread John McKown
On Tue, May 2, 2017 at 1:07 PM, Ron Thomas  wrote:

> Hi . One of my colleagues told me from Linux script ,we can do SFTP using
> the below file allocation . Just wanted to know whether this possible ? As
> per my understanding this has no significance ? Also, whether from virtual
> machine we can put to a tape GDG file ?
>
> ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
>

​The above makes me think that you have installed Dovetailed Technologies's
SSH/SFTP enhancements.​



> put /pas/input/rtb/one.txt //'PCICST.FXIN.MAXRTCRO.OT(+1)'
>

​I was able to send to a +1 generation on disk, but not tape.​ When I tried
tape, I got:

ZosSettings[I]: Transfer options:
clientcp=ISO8859-1,lrecl=1500,mode=text,recfm=fb,servercp=IBM-1047,space=trk.5.5,trim,unit=vts2
ZosDataset[I]: Opening dataset TSH009.LISTCAT(+1) for write with options:
lrecl(1500) recfm(f,b) tracks space(5,5) unit(vts2) new catalog
IKJ56221I DATA SET TSH009.LISTCAT NOT ALLOCATED, VOLUME NOT AVAILABLE+
IKJ56221I VOLUME  NECESSARY TO SATISFY YOUR REQUEST NOT ON SYSTEM, AND
CANNOT BE MOUNTED
DatasetHandler[E]: BPXWDYN allocation failed S99ERROR=0x0218 S99INFO=0x
DatasetHandler[E]: BPXWDYN command was: "alloc fi(SYS5) reuse msg(2)
da('TSH009.LISTCAT(+1)') lrecl(1500) recfm(f,b) tracks space(5,5)
unit(vts2) new catalog"
DatasetHandler[E]: Dataset TSH009.LISTCAT(+1) open error: EDC5000I No error
occurred. (errno2=0xC4070044)
DatasetHandler[E]:   __amrc last_op=604, error=0x5620062, msg=

​I think that this is because BPXWDYN, which is apparently what is used to
do the dynamic allocation rather than SVC 99 directly, requires that the
caller use the MOUNT option​. There may be some sftp server option that I
have missed, however.



>
> Thanks
> Ron T
>


-- 
Advertising is a valuable economic factor because it is the cheapest way of
selling goods, particularly if the goods are worthless. -- Sinclair Lewis


Maranatha! <><
John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: [EXTERNAL] Re: SFTP From Linux to z/OS

2017-05-02 Thread Craig Pace
It appears that the mainframe is running Dovetails Co:Z SFTP product (open 
source) that allows sftp into native MVS without having to create back in 
scripts to copy from USS to MVS after going into IBM native SSH.

Coz FTP runs on top of IBM native openSSH to allow this.  The commands look 
good and should work, if the above is the case.

https://dovetail.com/products/sftp.html



Thanks,


Craig Pace
Director Business Solutions, Information Technology
Fruit of the Loom, Inc.®

Direct: (270) 935-4397
Main:   (270) 781-6400 ext 4397
Cell:   (270) 991-7452
Fax:(270) 438-4430
E-mail:  craig.p...@fotlinc.com

Mailing Address:
One Fruit of the Loom Drive
PO Box 90015
Bowling Green, KY 42102-9015

Physical Address:
675 Hennessy Way
Bowling Green, KY 42101-7122

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Roach, Dennis
Sent: Tuesday, May 2, 2017 13:33
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: [EXTERNAL] Re: SFTP From Linux to z/OS

This makes no sense.
ls lists the directory at the remote end.
The ls command you provided looks like it should be a site command, providing 
lrecl, recfm, and space information.
The // in the put command directs the output to an MVS file instead of USS.


Dennis Roach, CISSP, PMP
AIG

IAM Platform Administration | Identity & Access Management

2929 Allen Parkway, America Building, 3rd Floor | Houston, TX 77019
Phone:  713-831-8799

dennis.ro...@aig.com | 
https://na01.safelinks.protection.outlook.com/?url=www.aig.com&data=02%7C01%7CCraig.Pace%40FOTLINC.COM%7Cd0b1a80e098847b4ec0908d49189ab32%7C0d32279fb86a46bcaf3c48ad3cf3caf9%7C0%7C0%7C636293467850898806&sdata=UvRJUaf2p51bAfHHWqzfksLgivN92RVAzforQ7L99cM%3D&reserved=0

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Ron Thomas
Sent: Tuesday, May 02, 2017 1:07 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: SFTP From Linux to z/OS

Hi . One of my colleagues told me from Linux script ,we can do SFTP using the 
below file allocation . Just wanted to know whether this possible ? As per my 
understanding this has no significance ? Also, whether from virtual machine we 
can put to a tape GDG file ?

ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
put /pas/input/rtb/one.txt //'PCICST.FXIN.MAXRTCRO.OT(+1)'

Thanks
Ron T

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN


This communication contains information which is confidential and may also be 
privileged. It is for the exclusive use of the intended recipient(s). If you 
are not the intended recipient(s), please note that any distribution, copying 
or use of this communication or the information in it is strictly prohibited. 
If you have received this communication in error, please notify the sender 
immediately and then destroy any copies of it.



--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Mark Jacobs - Listserv
That's a command when you're using the Co:Z Toolkit's sftp server. No 
zOS shop should be without it.


Mark Jacobs


Roach, Dennis <mailto:dennis.ro...@aig.com>
May 2, 2017 at 2:32 PM
This makes no sense.
ls lists the directory at the remote end.
The ls command you provided looks like it should be a site command, 
providing lrecl, recfm, and space information.
The // in the put command directs the output to an MVS file instead of 
USS.



Dennis Roach, CISSP, PMP
AIG

IAM Platform Administration | Identity & Access Management

2929 Allen Parkway, America Building, 3rd Floor | Houston, TX 77019
Phone: 713-831-8799

dennis.ro...@aig.com | www.aig.com

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
On Behalf Of Ron Thomas

Sent: Tuesday, May 02, 2017 1:07 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: SFTP From Linux to z/OS

Hi . One of my colleagues told me from Linux script ,we can do SFTP 
using the below file allocation . Just wanted to know whether this 
possible ? As per my understanding this has no significance ? Also, 
whether from virtual machine we can put to a tape GDG file ?


ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
put /pas/input/rtb/one.txt //'PCICST.FXIN.MAXRTCRO.OT(+1)'

Thanks
Ron T

--
For IBM-MAIN subscribe / signoff / archive access instructions, send 
email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Please be alert for any emails that may ask you for login information 
or directs you to login via a link. If you believe this message is a 
phish or aren't sure whether this message is trustworthy, please send 
the original message as an attachment to 'phish...@timeinc.com'.


Ron Thomas <mailto:ron5...@gmail.com>
May 2, 2017 at 2:07 PM
Hi . One of my colleagues told me from Linux script ,we can do SFTP 
using the below file allocation . Just wanted to know whether this 
possible ? As per my understanding this has no significance ? Also, 
whether from virtual machine we can put to a tape GDG file ?


ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
put /pas/input/rtb/one.txt //'PCICST.FXIN.MAXRTCRO.OT(+1)'

Thanks
Ron T

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Please be alert for any emails that may ask you for login information 
or directs you to login via a link. If you believe this message is a 
phish or aren't sure whether this message is trustworthy, please send 
the original message as an attachment to 'phish...@timeinc.com'.




--

Mark Jacobs
Time Customer Service
Global Technology Services

The standard you walk past is the standard you accept.
Lt. Gen. David Morrison


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SFTP From Linux to z/OS

2017-05-02 Thread Roach, Dennis
This makes no sense. 
ls lists the directory at the remote end. 
The ls command you provided looks like it should be a site command, providing 
lrecl, recfm, and space information.
The // in the put command directs the output to an MVS file instead of USS.


Dennis Roach, CISSP, PMP
AIG

IAM Platform Administration | Identity & Access Management

2929 Allen Parkway, America Building, 3rd Floor | Houston, TX 77019
Phone:  713-831-8799

dennis.ro...@aig.com | www.aig.com 

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Ron Thomas
Sent: Tuesday, May 02, 2017 1:07 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: SFTP From Linux to z/OS

Hi . One of my colleagues told me from Linux script ,we can do SFTP using the 
below file allocation . Just wanted to know whether this possible ? As per my 
understanding this has no significance ? Also, whether from virtual machine we 
can put to a tape GDG file ? 

ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
put /pas/input/rtb/one.txt //'PCICST.FXIN.MAXRTCRO.OT(+1)'

Thanks
Ron T

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


SFTP From Linux to z/OS

2017-05-02 Thread Ron Thomas
Hi . One of my colleagues told me from Linux script ,we can do SFTP using the 
below file allocation . Just wanted to know whether this possible ? As per my 
understanding this has no significance ? Also, whether from virtual machine we 
can put to a tape GDG file ? 

ls /+mode=text,lrecl=3000,recfm=vb,space=cyl.100.100
put /pas/input/rtb/one.txt //'PCICST.FXIN.MAXRTCRO.OT(+1)'

Thanks
Ron T

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN