Solved

Append a file to another in AS400 via FTP

Posted on 2004-09-28
1
819 Views
Last Modified: 2008-03-10
Hi,

I would like to FTP an EBCDIC file from Windows server to AS400 and append it to a master file already existing in the system. I want to do this through the same FTP script by calling command at AS400.

How can I do that??

What is the append command exact format in AS400 that will allow me to append an EBCDIC file to another EBCDIC file (both files contains Packed Decimal fields)??

Appreciating your usual quick support.

Thanks,
0
Comment
Question by:Jablif
1 Comment
 
LVL 4

Accepted Solution

by:
jcrumble earned 500 total points
ID: 12172009
I would have to recommend that you experiment but I would think that the command are similar to what is found on this site http://www.michael-thomas.com/tech/ftp/dosftpnotes.htm even going from an AS400 (I know they are for a OS390).

Another possiblility might be to FTP the file to the server and have a secondary process kicked off by a daemon (JCL, etc) that does the AS400 version of an append (copy file1 file2 file3 -- which is an APPEND in DOS -- sorry it's been awhile since I was on an AS400) which should server the same purpose.  I would also think this would be a safer method of doing this as an FTP stream can be cut off in mid upload which might make recoving the data to a correct point difficult or impossible.  Doing it as a secondary process you could FTP up two files one that contains the information you want to append, followed by an indicator file (I usually use something containing statistics and information I can log with a .done extension in Unix and DOS) that the Daemon process/JCL can use to confirm that the file transfer has been completed correctly.  Just another thought you might consider.

Good Luck,
Jeff
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now