?
Solved

Append a file to another in AS400 via FTP

Posted on 2004-09-28
1
Medium Priority
?
893 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
jcrumble earned 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …
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…
Starting up a Project
Suggested Courses

777 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