AP API

AP API

AP API

This API returns various values from the Shared Memory Area. For example:

    MOVE "AP" TO SCREEN-PARAMETERS
    MOVE "EDITOR" TO SCREEN-LITERAL
    PERFORM SCREEN-ROUTINE

This returns the user’s preferred Editor in SCREEN-ALPHA-FIELD.

The following values can be obtained with this API:
AUTOSKIP
COMPANY-NAME
COMPANY-NO (1st two digits in Screen-Alpha-Field)
DOS-USER-ID
EDITOR
LOGIN-DATE
LOGIN-TIME
LOG-PATH
HELP-PATH
MACRO-PATH
MANIFEST
MCMD
MCNTRY
MDATA
MDRIVE
MHELP
MPROG
MROOT
MSYSTEM
NSI-CFG-PATH
NWSM-CFG-PATH
NWSMUSER-CFG-PATH
MAX-USERS
PROCESS-EVENTS
PROCESS-ID (Unique nine-digit number identifying the running .EXE)
REG-ADDR-1
REG-ADDR-2
REG-ADDR-3
REG-COBOL-DEVELOPER
REG-Elliott
REG-LIC-NO
REG-NAME
ROOT-DIR
SET-COMPANY-NO (Use 1st two digits in Screen-Alpha-Field to set the current Company No and to be returned by the COMPANY-NO API call)
SHUTDOWN-FLAG
STARTUP-PATH
SUPPORT-SEGMENTED-KEYS
SYSTEM-VERSION
USE-ED
USER-FONT
VERSION
WAVE-PATH
WIN-USER-ID
WIN-VERSION
EXENAME (Find the name of the current EXE, like EL850, EL850P or EL850RP, etc.)

Prior to Elliott V8.5, all values are returned in SCREEN-ALPHA-FIELD.  For Elliott V8.5 and newer, all values are returned in SCREEN-ALPHA-FIELD except the following, which are returned in SCREEN-AREA because they are longer than 80 characters:
NSI-CFG-PATH
NWSM-CFG-PATH
NWSMUSER-CFG-PATH
STARTUP-PATH
JEG


    • Related Articles

    • CV API

      Release Date: 10/31/2019 This API allows the programmer to determine whether or not thie current company's .DAT files have been converted to .BTR files. Screen-Parameters: CV Check the converted status for the current company. CV,nn Check the ...
    • Avalara Source Code Integration - AV API Call

      Release Date: 11/16/21 Revised: 05/23/22 Version: 8.6 and Above This article is intended for Elliott Business Software developers. This API call will allow the programmer to pass a value to indicate which Avalara function is to be performed. The ...
    • EM API - Create and Send an Email

      Release Date: 12/23/20 Version: 7.0 and Higher This is a set of API calls introduced after Elliott 6.X.060. Use them collectively. They will send out emails through the SMTP or MAPI interface. Developers who use these API calls do not need to know ...
    • DD API Changes (V9.0)

      DD: Drill Down The Drill Down API allows the developer to drill down to another Elliott application. The information provided in SCREEN-PARAMETERS will give the system the correct information to determine if the user has rights to the application ...
    • FA API Changes (V9.0)

      FA: File Access (Without File Handling) This API can be used to retrieve an individual field from a specific record in a file without specifying the file in the program and without opening and closing the file. In its simplest form, one can, for ...