Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FTP of an AS/400-file with a . (dot) in the filename

1,236 views
Skip to first unread message

Herman Koopmanschap

unread,
Feb 1, 1999, 3:00:00 AM2/1/99
to
We are trying to get an AS/400-file which has a . (dot) in it's
filename. Is there a way in which we can get this file by FTP from one
AS/400 to another AS/400?
We use the next command: get ana01d10/vdc.s031.vdc.s031
For library ana01d10 file vdc.s031 member vdc.s031
We get errormessage: 501 Specified object name too long, limit is 10
characters,

Herman.


Steve Brazzell

unread,
Feb 1, 1999, 3:00:00 AM2/1/99
to
You can use NAMEFMT 1, in which case the get command would be:

get qsys.lib/ana01d10.lib/vdc.s031.file/vdc.s031.mbr

hth...

Steve

Charles Wilt

unread,
Feb 1, 1999, 3:00:00 AM2/1/99
to
In article <36B5DB9D...@randstad.nl>,
Herman_Ko...@randstad.nl says...

> We are trying to get an AS/400-file which has a . (dot) in it's
> filename. Is there a way in which we can get this file by FTP from one
> AS/400 to another AS/400?
> We use the next command: get ana01d10/vdc.s031.vdc.s031
> For library ana01d10 file vdc.s031 member vdc.s031
> We get errormessage: 501 Specified object name too long, limit is 10
> characters,
>
> Herman.
>
>

Rename the file or create a logical file without the dot, or copy the
file to another file with out the dot.

As you can see, you can't have a dot in the filename of a file you want
to FTP. Note: You may be able to copy the file using Windows Explorer.
Or since you are going from AS/400 to AS/400. save the file to a save
file, FTP the save file in binary format to a empty save file on the
destination AS/400 and restore the file there.
--
Charles Wilt
Miami Luken, Inc.
e-mail: charle...@worldnet.no.spam.att.net
--->remove the no.spam.

boo...@ibm.net

unread,
Feb 1, 1999, 3:00:00 AM2/1/99
to
Do a cd first and change the current library to ana01d10.

In <36B5DB9D...@randstad.nl>, on 02/01/99

at 05:51 PM, Herman Koopmanschap <Herman_Ko...@randstad.nl> said:

>We are trying to get an AS/400-file which has a . (dot) in it's filename.
>Is there a way in which we can get this file by FTP from one AS/400 to
>another AS/400?
>We use the next command: get ana01d10/vdc.s031.vdc.s031
>For library ana01d10 file vdc.s031 member vdc.s031
>We get errormessage: 501 Specified object name too long, limit is 10
>characters,

>Herman.

--
-----------------------------------------------------------
boo...@ibm.net
Booth Martin
-----------------------------------------------------------


Chuck Luttor

unread,
Feb 2, 1999, 3:00:00 AM2/2/99
to
Herman,

The correct syntax is:-

get /QSYS.LIB/ANA01D10.LIB/VDC.S031.FILE/VDC.S031.MBR

Chuck Luttor

Herman Koopmanschap

unread,
Feb 2, 1999, 3:00:00 AM2/2/99
to
This works great,

thank you,

Herman Koopmanschap.

Steve Brazzell wrote:

> You can use NAMEFMT 1, in which case the get command would be:
>
> get qsys.lib/ana01d10.lib/vdc.s031.file/vdc.s031.mbr
>
> hth...
>
> Steve
>

Charles R. Pence

unread,
Feb 2, 1999, 3:00:00 AM2/2/99
to
Herman Koopmanschap wrote:

> We are trying to get an AS/400-file which has a . (dot) in it's
> filename. Is there a way in which we can get this file by FTP from one
> AS/400 to another AS/400?
> We use the next command: get ana01d10/vdc.s031.vdc.s031
> For library ana01d10 file vdc.s031 member vdc.s031
> We get errormessage: 501 Specified object name too long, limit is 10
> characters

I realize there are other valid responses, but FWiW...If available, the
following FTP command request prior to the GET should work: QUOTE RCMD OVRDBF
NewName TOFILE(A01D10/VDC.S031)
MBR(VDC.S031) OVRSCOPE(*JOB)

Then use instead: GET NewName

Regards, Chuck
All comments provided "as is" with no warranties of any kind whatsoever.

0 new messages