In a recent note, McKown, John said:

> Subject:      Re: SFTP Client for z/OS
> 
> > -----Original Message-----
> > [mailto:[EMAIL PROTECTED] On Behalf Of John P Kalinich
> > Sent: Wednesday, May 02, 2007 12:06 PM
> >
> > John Kington wrote on IBM Mainframe Discussion List
> > <[email protected]>
> > wrote on 05/02/2007 10:47:41 AM:
> >
> > > I misstated. I meant reading an mvs dataset directly
> > instead of having
> > > to copy the data to hfs file. I hate to duplicate data and effort.
> >
> > From my notes, one of these should work from Unix.
> >
> > //dd:ddname
> > "//'quoted mvs dsname'"
> > "//unquoted mvs dsname"
> >
> > Regards,
> 
> Sorry, but they won't. There are two types of "open" functions that can
> be used by a C program. The "fopen()" function does support the use of
> UNIX files, MVS dataset names, or DD names. However, the "open()"
> function only supports the use of UNIX files. I don't know the
> percentage of UNIX programs which use "open()" vs. "fopen()", but
> 
However, with a handful of exceptions, z/OS Unix applications don't
support DSNs and DDNs.  They may appear to work in some cases, but
if they fail in other cases you have no recourse to tech support.

And you have no control over binary versus text processing: newline
processing may not be as you desire.

And there's no hope of processing partitioned data sets or load
modules that way.

> "open()" seems to be more popular. It may be more popular because it
> returns a "file descriptor" (an integer) instead of a pointer to a FILE
> structure. Many things other than disk files can be accessed with a
> "file descriptor", such as pipe, sockets, et al.
> 
Will SFTP deal with file descriptors, pipes (named or not) or
file descriptor files ('/dev/fd/nn')?  (Some FTP clients do; some
do not).  Any of these constructs may be an alternative to using
a temporary file.

TSO TRANSMIT seems to be the modal choice for flattening Classic
data sets for network transmission.  And TRANSMIT will accept an
allocated UNIX file as its OUTDD() operand.  But I just tried
TRANSMIT with OUTDD allocated to a pipe: it seems to work in a
simple test.  At worst, you can do a TRANSMIT with OUTDD allocated
to a UNIX temporary file and SFTP that.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to