home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PowerPlay 1997 March
/
PowerPlay0397.iso
/
CSERVE
/
SCRIPTS.LIB
/
DATEXJ.SCR
< prev
next >
Wrap
Text File
|
1996-11-11
|
2KB
|
111 lines
!
! Copyright (c) 1996
! 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.
!
! Datex-J (BTX):
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "4.0"
!-V
Tries = 5;
count = 6;
Second_Time = %FALSE;
on cancel goto Return_Cancel;
show "Verbindungsaufbau mit Datex-J";
Resend_Response:
wait until 10;
send "." & %CR;
Wait_DatexJ:
if Tries = 0 goto DatexJ_Failure;
Tries = Tries - 1;
wait
"CET" goto Send_Response,
"AA" goto Send_Response,
"000000" goto Send_Kennung,
%mdm_Failure goto DatexJ_Failure
until 200;
Send_Response:
wait until 10;
send "." & %CR;
Wait_Kennung:
wait
"000000" goto Send_Kennung
until 200;
Send_Kennung:
wait until 10;
send "000327278259";
show "Datex-J Teilnehmernummer wird ⁿbertragen";
Wait_Connect:
if count = 0 goto DatexJ_Failure;
count = count - 1;
wait
"sicht" goto Send_CR,
"aufbau mit" goto Send_CR,
"gabeseite" goto Send_11,
"Host Name:" goto Match_Host_Name,
"User ID:" goto Match_Host_Name,
%mdm_Failure goto DatexJ_Failure
until 300;
if Second_Time = %TRUE goto Send_11;
Second_Time = %TRUE;
goto Send_CR;
Send_CR:
wait
%mdm_Failure goto DatexJ_Failure,
"User ID:" goto Match_Host_Name,
"Host Name:" goto Match_Host_Name
until 10;
send %CR;
goto Wait_Connect;
Send_11:
wait
%mdm_Failure goto DatexJ_Failure,
"User ID:" goto Match_Host_Name,
"Host Name:" goto Match_Host_Name
until 10;
Second_Time = %FALSE;
send "11";
goto Wait_Connect;
DatexJ_Failure:
define %FailureMsg = "Datex-J antwortet nicht";
exit %Failure;
Return_Cancel:
exit %Cancel;
Match_Host_Name:
wait
"Host Name:" goto Match_Host_Name
until 10;
Return_Success:
send %CR;
wait until 10;
exit %Success;