Uploading files with FTP to MVS data sets - Protocols

This is a discussion on Uploading files with FTP to MVS data sets - Protocols ; Hello there,
I'm trying to upload a file to an IBM MVS mainframe using K-95 V2.1.2, where the
file is stored as a "data set".
The full name of the data set (and hence, the file), is something like this:
...

Uploading files with FTP to MVS data sets

Hello there,

I'm trying to upload a file to an IBM MVS mainframe using K-95 V2.1.2, where the
file is stored as a "data set".
The full name of the data set (and hence, the file), is something like this:
D123.XXXXXX.YYYYYY.20071029.1

The little I understand of these data sets, is that the '.' characters denote
the equivalent of directory levels.

I log in with FTP, nothing special is reported:
---8
[C:\] K-95> ftp ftp.mvsserver.com
Connected to ftp.mvsserver.com.
D610TES is logged on. Working directory is "D123.".
Switching Locus to REMOTE for file management commands
such as CD, DIRECTORY, DELETE, RENAME. Type HELP SET
LOCUS at the K-95> prompt for further info. Use the
SET LOCUS command to disable automatic locus switching
or to disable these queries.
OK to switch Locus?y
Restart requires Block or Compressed transfer mode.
Remote system type is MVS.
Default transfer mode is TEXT ("ASCII")
[C:\] K-95>
---8
After that, I just run the put command to upload the file:
---8
[C:\] K-95> put D123.XXXXXX.YYYYYY.20071029.1
Kermit 95 2.1.2, 25 Nov 2002, pc [192.168.1.10]

If anyone has an idea how to solve this, I would gladly hear your suggestions.

Re: Uploading files with FTP to MVS data sets

In article , Maalobs says...
> I'm trying to upload a file to an IBM MVS mainframe using
> K-95 V2.1.2, where the file is stored as a "data set".
> The full name of the data set (and hence, the file), is
> something like this:
> D123.XXXXXX.YYYYYY.20071029.1
> The little I understand of these data sets, is that the '.'
> characters denote the equivalent of directory levels.

I think I figured out a part of the problem myself.
I learned that the filename is illegal if a digit appears directly after a '.'.
So I changed the filename to this:
D123.XXXXXX.YYYYYY.D071029.A1

And in fact, the home directory I arrive at when I login, is 'D123.', so the
name I must use is:
XXXXXX.YYYYYY.D071029.A1

With that knowledge I run 'put XXXXXX.YYYYYY.D071029.A1' in K95, but I still get
this error:
Invalid data set name "XXXXXX_YYYYYY_D071029.A1". Use MVS Dsname conventions.

Using this last method works with MS ftp.exe in Windows, but not with K95.

Why does K95 insist on changing the filename?

Re: Uploading files with FTP to MVS data sets

On 2007-10-29, Maalobs wrote:
: In article , Maalobs says...
:
:> I'm trying to upload a file to an IBM MVS mainframe using
:> K-95 V2.1.2, where the file is stored as a "data set".
:> The full name of the data set (and hence, the file), is
:> something like this:
:> D123.XXXXXX.YYYYYY.20071029.1
:
:> The little I understand of these data sets, is that the '.'
:> characters denote the equivalent of directory levels.
:
: I think I figured out a part of the problem myself. I learned that the
: filename is illegal if a digit appears directly after a '.'.
:
: So I changed the filename to this:
: D123.XXXXXX.YYYYYY.D071029.A1
:
: And in fact, the home directory I arrive at when I login, is 'D123.', so the
: name I must use is:
: XXXXXX.YYYYYY.D071029.A1
:
: With that knowledge I run 'put XXXXXX.YYYYYY.D071029.A1' in K95, but I still
: get this error: Invalid data set name "XXXXXX_YYYYYY_D071029.A1". Use MVS
: Dsname conventions.
:
: Using this last method works with MS ftp.exe in Windows, but not with K95.
:
: Why does K95 insist on changing the filename?
:
Because on many operating systems, filenames containing multiple dots
(periods) are illegal.

To get around this use:

ftp put /filenames:literal D123.XXXXXX.YYYYYY.20071029.1

or:

ftp mput /filenames:literal

- Frank

Re: Uploading files with FTP to MVS data sets

In article , Frank Da Cruz says...
>: With that knowledge I run 'put XXXXXX.YYYYYY.D071029.A1' in K95,
>: but I still get this error:
>: Invalid data set name "XXXXXX_YYYYYY_D071029.A1". Use MVS Dsname
>: conventions.
>: Using this last method works with MS ftp.exe in Windows, but not with K95.
>: Why does K95 insist on changing the filename?
> Because on many operating systems, filenames containing multiple
> dots (periods) are illegal.
> To get around this use:
> ftp put /filenames:literal D123.XXXXXX.YYYYYY.20071029.1
> or:
> ftp mput /filenames:literal