The file which is transferred by 1st FTP method below comes as a blank file.Can anybody suggest where I am going wrong.This file is an outfile which has been created by DSPUSRPRF command and when I run the query runqry command I can see the data in it.
 
But when I download this file thru FTP the file gets downloaded with no data.
 
Also please let me know if there is any way to download this file thru i Series Access. 
 
Sneha 

--- On Thu, 25/3/10, Scott Klement <midrange-l@xxxxxxxxxxxxxxxx> wrote:


From: Scott Klement <midrange-l@xxxxxxxxxxxxxxxx>
Subject: Re: FTP file from AS400 Library to PC
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date: Thursday, 25 March, 2010, 5:29 AM


Log on with FTP, just as you would when transferring a file from a
directory.

Then type:

    cd /qsys.lib/your-library.lib

Replace 'your-library', above, with the name of the library.  But
remember to have the .lib at the end.

Then type:

    get myfile.file/mymbr.mbr

(replace 'myfile' with your filename, and 'mymbr' with your member name)

Please be aware that this just TRANSFERS the file.  IT does not change
the format of the file... so if there are any packed numeric fields in
the file, they will likely be corrupt.

A better alternative might be to use CPYTOIMPF to convert the file.
This'll convert it, and place the output in a directory in your IFS as a
text file.  Then you can FTP that text file using the procedure you
already know how to use.

A third method would be to forget about FTP, and use an SQL tool based
on ODBC or JDBC, which would get the database file in the proper format.

Or a fourth method would be to use the file transfer tool in IBM i Access.

I could go on and on with different options -- there are a million ways
to transfer a file.


Sneha Verma wrote:
Hi,
I am looking for the FTP command which I can run from DOS Prompt.
The outfile which I created from  DSPUSRPRF resides in one library.Now,I want to ftp this outfile onto my pc.
I know the FTP command for  FTPing a file from AS400 directory to PC.But I do not know how to FTP in case this file resides in a library on AS400  and I have to FTP this to my PC.
Please can anyone help me with this command as a matter of urgency.
Sneha

--- On Wed, 24/3/10, Vinay Gavankar <vinaygav@xxxxxxxxx> wrote:

From: Vinay Gavankar <vinaygav@xxxxxxxxx>
Subject: Re: FTP file from AS400 Library to PC
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date: Wednesday, 24 March, 2010, 10:23 PM

Maybe you can FTP to your AS400 from your PC and use a GET command.

On Wed, Mar 24, 2010 at 4:25 PM, Simon Coulter <shc@xxxxxxxxxxxxxxxxx>wrote:

On 25/03/2010, at 3:25 AM, Sneha Verma wrote:

I need to FTP a file from AS400 Library onto my PC.This file on
AS400 was an outfile created thru DSPUSRPRF and has attribute PF.

Please can anyone send me the FTP command to do this as I am not
allowed to use any tool here

If you're "not allowed to use any tool here" why would you be allowed
to extract a list of user profiles to your PC? Ask your security
officer how to accomplish this task.

Regards,
Simon Coulter.
--------------------------------------------------------------------
     FlyByNight Software         OS/400, i5/OS Technical Specialists

     http://www.flybynight.com.au/
     Phone: +61 2 6657 8251   Mobile: +61 0411 091 400        /"\
     Fax:   +61 2 6657 8251                                   \ /
                                                               X
                   ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.