| Here is an example of a sophisticated command ".CMD" file which takes advantage of both the Async and Sync capabilities within the FastSync® 3780 BSC protocol. In addition, the command file is used in conjunction with a separate control ("CTL") file. |
This sample command file and control file capability is not meant for general distribution. It obviously requires an understanding of commands within the FastSync 3780 program.
Here is the actual CMD file:
.OPEN,(1) PCT.CTL (READ)
.$SCREEN READ,1
.READ,1 $PORTNUM
.READ,1 $ASYNCPHONE
.READ,1 $LOGON
.READ,1 $DATAFILE
.CLOSE,(1)
.DOS,DEL @$SCREEN.0*
.CD_CHECK,OFF
.ASYNC,COM @$PORTNUM BAUD 2400 DATA 7
.DELAY,2
.CALL,@$ASYNCPHONE
.IF,NOT ANSWERTONE THEN .GOTO 80
.ASYNC,PARITY EVEN
.RCVE,@$SCREEN
.LABEL,OFF
@$LOGON
.RCVE,@$SCREEN
2
.RCVE,@$SCREEN
T
.RCVE,@$SCREEN
Y
.RCVE,@$SCREEN
.DELAY,1
7
.LABEL,ON
.BISYNC
.DELAY,10
.SHELL,IDP.EXE @$LAST_FILE
.IF,SHELL = 1 THEN .GOTO 30
.BISYNC
.PROMPT, Moneymaker Automated RJE System & Did Not Return A Phone Number & PRESS ANY KEY TO CONTINUE
.GOTO 99
30.OPEN,(1) PHONE.NUM (READ)
.READ,1 $PHONE
.CLOSE,(1)
32.CALL,@$PHONE
.IF,NOT ANSWERTONE THEN .GOTO 80
.RCVE,@$DATAFILE
.IF,RCV_ERROR THEN .GOTO 70
.GOTO 90
70.PROMPT File Was NOT Received Properly & PRESS ANY KEY TO CONTINUE
.GOTO 99
80.BISYNC
.IF,BUSY THEN .GOTO 82
.IF,NOT DIALTONE THEN .GOTO 84
.IF,NOT ANSWERTONE THEN .GOTO 86
.GOTO 88
82.PROMPT Busy Signal Detected & Try Again Later & PRESS ANY KEY TO CONTINUE
.GOTO 99
84.PROMPT Unable To Detect Dial Tone & Please Check The Phone Line & PRESS ANY KEY TO CONTINUE
.GOTO 99
86.PROMPT No Answer Back Tone Detected At Remote & Try Again Later & PRESS ANY KEY TO CONTINUE
.GOTO 99
88.PROMPT Failure Due To Undiagnosed Problem & Please Call Your Supplier & PRESS ANY KEY TO CONTINUE
.GOTO 99
90.DTR,OFF
.PROMPT, You Have Received The File & & @$LAST_FILE & & PRESS ANY KEY TO CONTINUE
.GOTO 99
99.EXIT