Solved

Append a file to another in AS400 via FTP

Posted on 2004-09-28
1
814 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
strDist challenge 35 84
wordcount challenge 11 78
tvirtualstringtree freeze when load too manny images 10 30
C# Error - Add Failed 12 52
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
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 …

760 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

18 Experts available now in Live!

Get 1:1 Help Now