Previous PageNext Page

Chapter 7 - Application Programming Interfaces

LLAPI (Low-level Language Application Programming Interface)
HLLAPI (High-Level Language Application Programming Interface)

LLAPI

Configuration

Installing LLAPI

RA3270
LLAPI
E3270 configfile

LLAPI Application Startup

1. Load the Advanced 3270 software. If you are using a batch file, be sure that the LLAPI command is loaded between RA3270 and E3270 of your emulator software.

2. Once the emulator software is running, use the Hotkey to switch to DOS.

3. Run the LLAPI application by entering the name of the application at the DOS prompt.

Runtime Option

LLAPI -NOMSG

The -NOMSG parameter suppresses all program load error messages directed to the display.

LLAPI Supported Calls

Table 7-1. Supported LLAPI calls

Value in AL Service Description
00 Name Resolution Request
01 Query Session ID
Connect to Keyboard Services
Copy String
02 Query Session Parameters
Disconnect from Keyboard
Read Operator Information Area Group
04 Write Keystroke
05 Disable Input Service
06 Enable Input Service
08 Query Session Cursor

Buffer Code-to-ASCII Translation Support

BLDTABLE inputfile outputfile

LLAPI Error Messages

Table 7-2. LLAPI Error Messages

ErrorLevel Error Description
0 LLAPI is now memory-resident
10 RA3270 is not resident
20 Invalid option specified: only -NOMSG allowed
30 Duplicate option specified
210 LLAPI already resident: no action taken
215 LLAPI interrupt number already in use
255 Internal loading error in LLAPI

HLLAPI

Configuration

Installing HLLAPI

RA3270
HLLAPI
E3270 %1

HLLAPI Application Startup

1. Load the Advanced 3270 software. If you are using a batch file, be sure that the HLLAPI command is loaded in the proper sequence.

2. Once the emulator software is running, use the Hotkey to switch to DOS.

3. Run the HLLAPI application by entering its name at the DOS prompt. If you choose to assign Session Short Names, follow the instructions in the following section.

Note: Banyan does not support HLLAPI multitasking either through the /R command line switch or through the <ALT-R> keyboard key sequence.

Session Short Names

3270 Emulation Session # Session Short Name
 1   E
  2   F
  3   G
  4   H
  5   I

HLLAPI /1:letter /2:letter

HLLAPI /1:letter

RA3270
HLLAPI /1:Z /2:Y
E3270 %1

HLLAPI Error Messages

RA3270 not resident. No action taken.

HLLAPI already running. No action taken.

Error in specifying session short names. Program terminated.

Must use PC-DOS version 3.XX or higher.

INDHL001 HLLAPI is loaded. INDHLL002 HLLAPI is ready.

HLLAPI Supported Calls

Table 7-3. Supported HLLAPI calls

HLLAPI Function Function Name
01 Connect
02 Disconnect
03 Send Key
04 Wait
05 Copy presentation to buffer
06 Search presentation
07 Query cursor location
08 Copy presentation to string
09 Set session parameter
10 Query sessions
11 Reserve
12 Release
13 Copy OIA
14 Query field attribute
15 Copy string to presentation
17 Storage manager
18 Pause
20 Query system
21 Reset system
22 Query session status
23 Start host notification
24 Query host update
25 Stop host notification
30 Search field
31 Find field position
32 Find field length
33 Copy string to field
34 Copy field to string
90 Send file
91 Receive file
99 Convert row and column
1701 Get storage
1702 Free storage
1704 Free all storage

Programming Considerations

HLLAPI LIM Support

Storage Manager Calls (Function 17)

Customizing HLLAPI SendKey

A Long Example

Character requested by Send Key (EBCDIC) 6C
EBCDIC to ASCII translation DD
ASCII to ASCII translation DD
Description of Character Split Bar
 
Character requested by Send Key (EBCDIC) 4F
EBCDIC to ASCII translation 7C
ASCII to ASCII translation 7C
Description of Character Short Vertical Bar
 

1. Run GENX.

2. At the Program to be Customized prompt, enter HLLAPI.EXE.

3. At the Symbol Table Name prompt, enter HLLAPI.MAP.

4. At the Customization Menu Name prompt, enter HLLAPI.LAN.

5. At the New Program Name prompt, enter HLLAPI.EXE.

6. Press <ENTER> after specifying the New Program Name. The screen in Figure 7-3 appears:

Figure 7-3. HLLAPI SendKey Customization Menu

HLLAPI SendKey (function 3) Customization Menu Version 1.00  
 
Language/DOS Code Page 
 
1 - English (US) / 437 2
2 - English (US) / 850
 
 
98 = Selection Completed 99 = Exit GENX program 

7. Enter either 1 or 2 to select the Code Set that is loaded on your PC. The message "Language (1 or 2) Selected" appears on the screen.

8. Enter 98 to modify the HLLAPI.EXE ASCII-to-ASCII table with your chosen table.

9. Press 99 to exit to DOS.

Unsupported Keyboard Mnemonics

@A@C - Test @A@f - Change Format A
@D - Word Delete @A@m - Cursor Position A
@I - Alt + Insert A
@d - Doc Mode A
@e - Wrap

Unloading APIs from Memory

1. Press the Hotkey to switch back to the emulator.

2. Log off from any host sessions that are still active.

3. Press <F10>, then press <F9>.

 

Previous PageTop Of PageNext Page