Search code examples
vb.netmainframe

Uploading files to mainframe from VB.net


I am uploading file to mainframe and before uploading when I open it using notepad I am able to view it.

Once uploaded the administrator is complaining that he is not able to read the data in file and it appears as junk.

Is there anything else I need to do before uploading files to mainframes. I am using Chilkat component to upload the files to mainframes.

Any help greatly appreciated.

Thanks


Solution

  • It definitely sounds like an encoding issue. I had some files transferred from a mainframe earlier this morning that because I forgot to switch to ASCII were all rubbish.

    Try switching to ASCII and transferring it, if you are using ASCII, switch to binary.

    You also might check with the mainframe admin and ask him if there are any site commands you need to execute prior to sending so you set the record size and block type.