Skip to main content

Hi,

I have a very simple program to upload a file from the PC to Linux host.  I'm trying to use FTS and the seems to go through the process of uploading but the routine never exits it just hangs once it gets to 100% transfered.

Here is my routine.

0001:       REMOTE.PATH = "C:USBANK"
0002:       REMOTE.FILE = "USBANK.txt"
0003:       MODE = 'R,A,T'
0004:       RECORD='' ; STAT=''
0005:       CALL FTS(MODE,REMOTE.PATH,REMOTE.FILE,RECORD,STAT)
0006:       PRINT STAT
0007:       PRINT RECORD
0008:       STOP
0009:    END

I'm expecting the routine to finish uploading the print the value of STAT and RECORD.  

But it never happens it just hangs.

Any ideas?

Sam

Hi,

I have a very simple program to upload a file from the PC to Linux host.  I'm trying to use FTS and the seems to go through the process of uploading but the routine never exits it just hangs once it gets to 100% transfered.

Here is my routine.

0001:       REMOTE.PATH = "C:USBANK"
0002:       REMOTE.FILE = "USBANK.txt"
0003:       MODE = 'R,A,T'
0004:       RECORD='' ; STAT=''
0005:       CALL FTS(MODE,REMOTE.PATH,REMOTE.FILE,RECORD,STAT)
0006:       PRINT STAT
0007:       PRINT RECORD
0008:       STOP
0009:    END

I'm expecting the routine to finish uploading the print the value of STAT and RECORD.  

But it never happens it just hangs.

Any ideas?

Sam

You are using modes:  "Receive, Ascii, Text"

I would have thought that you should be trying to "Send".

Cheers,

Brian


Hi,

I have a very simple program to upload a file from the PC to Linux host.  I'm trying to use FTS and the seems to go through the process of uploading but the routine never exits it just hangs once it gets to 100% transfered.

Here is my routine.

0001:       REMOTE.PATH = "C:USBANK"
0002:       REMOTE.FILE = "USBANK.txt"
0003:       MODE = 'R,A,T'
0004:       RECORD='' ; STAT=''
0005:       CALL FTS(MODE,REMOTE.PATH,REMOTE.FILE,RECORD,STAT)
0006:       PRINT STAT
0007:       PRINT RECORD
0008:       STOP
0009:    END

I'm expecting the routine to finish uploading the print the value of STAT and RECORD.  

But it never happens it just hangs.

Any ideas?

Sam

Hi Brian:

I'm trying to upload a file from the user's PC to the linux server.  It's set as R,A,T because it's a Tab Delimited file.

Regards, Sam