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");