Solved

Append a file to another in AS400 via FTP

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
strCopies  challenge 17 87
Magic Software info 18 130
Installed softare without GUID 6 73
control image tags in a string ? 12 128
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

816 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

8 Experts available now in Live!

Get 1:1 Help Now