FA API Changes (V9.0)

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 example, retrieve a specific customer’s name in a single RD API call.  Using more API options and multiple API calls, one can list all the customer names in the file.  This API is only available for the files that are available using DDF names.

The changes displayed in bold below are changes to the API for V9.0.

Screen Parameters: FA,RD,id,rc Read file and return field value

Input:

Id = package id (optional, SY is default)

rc = Return pointer to record

Passing-Note-File-Name = file, e.g., ARCUSFIL

Passing-Note-File-Ref-Number = primary key, e.g., 000100

Screen-Alpha-Field = DDF field name, e.g., CUS_NAME

Output:

Screen-Alpha-Field = field value if successful and field is not numeric

Screen-Numeric-Field = field value if successful and field is numeric

Screen-Answer = “Y” if successful, “N” if not

If not successful, Screen-Alpha-Field contains the file status code.

Note: If the file is not already opened by a FA,OP call, it will be opened and closed automatically.

Screen Parameters: FA,OP,id,md - Open the file

Input:

Id = package id (optional, SY is default)

md=Mode (optional, Input is default, IO is supported)

Passing-Note-File-Name = file, e.g., ARCUSFIL

Output:

Screen-Answer = “Y” if successful. “N” if not

If not successful, Screen-Alpha-Field contains the file status code. 

Screen Parameters: FA,RW (New) - Rewrite a record

Input:

Passing-Note-File-Name = file, e.g., ARCUSFIL

Screen-Ptr =Address of record to be updated

  Output:

Screen-Answer = “Y” if successful, “N” if not

If not successful, Screen-Alpha-Field contains the file status code.

Note:

An OP with IO for the mode is required before this call can be made. An RD (read), RN (read next) or RP (read previous) is required before this call can be made. 

CLS

   




    • Related Articles

    • VA API Changes (V9.0)

      VA: Verify Access Elliott V9.0 supports a series of 999 security flags to control access by users to specific features in the software. At runtime, the VA,nnn API is sent (where nnn is a number identifying the security flag) and either “Y” or “N” is ...
    • 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 ...
    • Preliminary Programming Changes for Elliott 8.6

      Eliminate DAT Files Users will have the option to eliminate DAT files in Elliott V8.6 so the only files that will be in the Elliott DATA directory will be the BTR files. Some of the known DAT files are control files like ARCTLFIL.DAT, ARPCTLFIL.DAT, ...
    • LF API

      Release Date: 9/7/2021 Versions: 8.0 and higher This API takes a filespec, like C:\WINDOWS\*.*, and returns the next file in the specified directory for each successive call. Screen Parameters Comment LF,nn Input: SCREEN-LITERAL contains the ...
    • DM API Changes - Use DM,99 to Display Long Messages

      Release Date: 02/05/2024 Version: 8.2 & Up The DM API call is limited to display a message up to 80 digits. For example, you can use the following message to display a message up to 80 digits: MOVE SHORT-MESSAGE TO SCREEN-LITERAL MOVE "DM" TO ...