Skip to main content

Forgive me if this has been asked before.  We're running an emulation called BluVista and we're thinking of slowly migrating to Accuterm or wIntegrate. I see in Accuterm , using some emulations that I should be able to get an answerback.  I wrote a sample program to send a CHAR(5) to trigger the answerback and when I run the program I do in fact see the answerback string displayed on the screen but I cannot figure out how to capture that string programmatically.  I've tried input, inputif, etc and I never see the string in the input buffer.

Has anyone on here successfully used the answerback string in Accuterm?

Thanks in advance,

Harry



------------------------------
Harry Hambrick
Manager of UV Development
Rooms To Go Inc
Seffner FL US
------------------------------

Forgive me if this has been asked before.  We're running an emulation called BluVista and we're thinking of slowly migrating to Accuterm or wIntegrate. I see in Accuterm , using some emulations that I should be able to get an answerback.  I wrote a sample program to send a CHAR(5) to trigger the answerback and when I run the program I do in fact see the answerback string displayed on the screen but I cannot figure out how to capture that string programmatically.  I've tried input, inputif, etc and I never see the string in the input buffer.

Has anyone on here successfully used the answerback string in Accuterm?

Thanks in advance,

Harry



------------------------------
Harry Hambrick
Manager of UV Development
Rooms To Go Inc
Seffner FL US
------------------------------
Harry, what are you ultimately trying to accomplish with the answerback?


*Kevin King, President*
Precision Solutions, Inc.
Phone: 303-651-7050 Fax: 720-442-9204
Kevin@PrecisOnline.com | https://www.PrecisOnline.com


Forgive me if this has been asked before.  We're running an emulation called BluVista and we're thinking of slowly migrating to Accuterm or wIntegrate. I see in Accuterm , using some emulations that I should be able to get an answerback.  I wrote a sample program to send a CHAR(5) to trigger the answerback and when I run the program I do in fact see the answerback string displayed on the screen but I cannot figure out how to capture that string programmatically.  I've tried input, inputif, etc and I never see the string in the input buffer.

Has anyone on here successfully used the answerback string in Accuterm?

Thanks in advance,

Harry



------------------------------
Harry Hambrick
Manager of UV Development
Rooms To Go Inc
Seffner FL US
------------------------------

Hello Harry - 

Are you using one of the VT emulations? These will return the answerback string in response to the ENQ control code (CHAR(5)). To use an INPUT statement to receive the string, you will need to terminate the answerback setting with a CR. You can use ^M for a CR in this setting. For example:

HELLO^M

Here's a snippet of code for UniVerse:

* Get ANSWERBACK from emulator
ECHO OFF
CRT CHAR(5):
INPUT ANS: WAITING 5
ECHO ON
CRT 'Answerback=':ANS

This example is using a WAITING clause for the INPUT statement to ensure that if there is no answerback, or the emulator does not support answerback, the program won't hang. Other MV platforms have different forms of timed input.

Thanks, Pete




------------------------------
Peter Schellenbach
Rocket Internal - All Brands
------------------------------
Harry, what are you ultimately trying to accomplish with the answerback?


*Kevin King, President*
Precision Solutions, Inc.
Phone: 303-651-7050 Fax: 720-442-9204
Kevin@PrecisOnline.com | https://www.PrecisOnline.com

Trying to determine if the user's emulation is Accuterm or not.  BluVista does not do an answerback so by elimination if I get an answerback string they must be running Accuterm.



------------------------------
Harry Hambrick
Manager of UV Development
Rooms To Go Inc
Seffner FL US
------------------------------

Hello Harry - 

Are you using one of the VT emulations? These will return the answerback string in response to the ENQ control code (CHAR(5)). To use an INPUT statement to receive the string, you will need to terminate the answerback setting with a CR. You can use ^M for a CR in this setting. For example:

HELLO^M

Here's a snippet of code for UniVerse:

* Get ANSWERBACK from emulator
ECHO OFF
CRT CHAR(5):
INPUT ANS: WAITING 5
ECHO ON
CRT 'Answerback=':ANS

This example is using a WAITING clause for the INPUT statement to ensure that if there is no answerback, or the emulator does not support answerback, the program won't hang. Other MV platforms have different forms of timed input.

Thanks, Pete




------------------------------
Peter Schellenbach
Rocket Internal - All Brands
------------------------------

Thanks Peter!  I didn't even think of adding the CR to the answerback string.  I'll try that right now!



------------------------------
Harry Hambrick
Manager of UV Development
Rooms To Go Inc
Seffner FL US
------------------------------

Hello Harry - 

Are you using one of the VT emulations? These will return the answerback string in response to the ENQ control code (CHAR(5)). To use an INPUT statement to receive the string, you will need to terminate the answerback setting with a CR. You can use ^M for a CR in this setting. For example:

HELLO^M

Here's a snippet of code for UniVerse:

* Get ANSWERBACK from emulator
ECHO OFF
CRT CHAR(5):
INPUT ANS: WAITING 5
ECHO ON
CRT 'Answerback=':ANS

This example is using a WAITING clause for the INPUT statement to ensure that if there is no answerback, or the emulator does not support answerback, the program won't hang. Other MV platforms have different forms of timed input.

Thanks, Pete




------------------------------
Peter Schellenbach
Rocket Internal - All Brands
------------------------------

That worked!  Thanks Peter!



------------------------------
Harry Hambrick
Manager of UV Development
Rooms To Go Inc
Seffner FL US
------------------------------