Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Append a file to another in AS400 via FTP

Posted on 2004-09-28
1
Medium Priority
?
917 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
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 …
Progress

604 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