home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1998 September
/
VPR9809B.ISO
/
TERMINAL
/
NIFTY95
/
DATA.Z
/
SFENICS4.SCR
< prev
next >
Wrap
Text File
|
1998-06-24
|
2KB
|
84 lines
!
! Copyright (c) 1996
! by NIFTY Corporation, Tokyo, Japan
! by CompuServe Incorporated, Columbus, Ohio
!
! The information in this software is subject to change without
! notice and should not be construed as a commitment by CompuServe.
!
! FENICS-ROAD 4:
! Connect to FENICS-ROAD 4
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.5"
!-V
guide "FENICS-ROAD 4 に接続されました";
Tries = 5;
wait until 20;
Wait_HOST:
if Tries = 0 goto Return_Failure;
Tries = Tries - 1;
wait
"*" goto Send_NIF,
%mdm_Failure goto Return_Failure
until 100;
! send %CR;
goto Wait_HOST;
Send_NIF:
send "C NIF" & %CR;
Tries = 5;
Wait_FENICS4:
if Tries = 0 goto Return_Failure;
Tries = Tries - 1;
wait
"Enter Connection-ID" goto Send_FENICS4_Host,
%mdm_Failure goto Return_Failure
until 80;
goto Wait_FENICS4;
Send_FENICS4_Host:
wait until 10;
guide "サインアップを開始します";
send "PSG" & %CR;
Tries = 5;
Wait_ENQ:
if Tries = 0 goto Return_Failure;
Tries = Tries - 1;
wait
%ENQ goto Send_SIGNUP,
%NAK goto Return_Failure
%mdm_Failure goto Return_Failure
until 80;
goto Wait_ENQ;
Send_SIGNUP:
wait until 10;
guide "登録データを送信しています";
signup : Result;
guide "登録データの送信が終了しました";
if Result = %Success goto Return_Success;
if Result = %Cancel goto Return_Cancel;
Return_Failure:
define %FailureMsg = "FENICS-ROAD 4 が反応しません";
%ErrorCode = 2050;
exit %ErrorCode;
Return_Cancel:
exit %Cancel;
Return_Success:
wait until 10;
exit %Success;