Skip to main content
Question

FTS or FTRECV on Accuterm 8

  • Feb 16, 2024 9:20 PM UTC
  • 2 replies
  • 20 views

Sam Powell

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

2 replies

Brian Speirs
Forum|alt.badge.img
  • Participating Frequently
  • Feb 18, 2024 2:06 PM UTC

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


Sam Powell
  • Author
  • Participating Frequently
  • Feb 19, 2024 10:24 AM UTC

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