Welcome to MSDN Blogs Sign in | Join | Help

File Transfer from Windows Server to AS400

Microsft Host Integration Server's File Transfer control allows to copy / overwrite / append files to and from AS/400 , Mainframe and AS/36

 Samples  can be found at :

C:\Program Files\Microsoft Host Integration Server 2006\SDK\Samples\DataIntegration\FileTransfer

1) someone wants to create file on AS400 or mainframe through the c # application ,  they should be able to use  file transefer control.

2)  This however needs a source file  to be predefined on the Windows Client.

And then use call Putfile as below  :

FileTransfer.CreateIfNonExisting = eigAnswerYesNoEnum.eigAnswerNo;

FileTransfer.AppendToEnd = eigAnswerYesNoEnum.eigAnswerYes;

FileTransfer.OverwriteHostFile = eigAnswerYesNoEnum.eigAnswerNo;

FileTransfer.AppendToEnd = eigAnswerYesNoEnum.eigAnswerYes;

FileTransfer.PutFile(hostpath, "C:\\Samples\APPEND.TXT");

 

Published Monday, March 05, 2007 2:43 PM by asmitaw

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker