PA API (8.5)
PA: Profile Access
This API can be used to retrieve or update an individual field from a configuration file such as EL850S.CFG or EL850U.CFG.
Screen Parameters: PA,FN,Section
Input:
FN = RD to read, UP to update
Section = Configuration file section (required) -- Note: You must include path information.
Screen-Menu = file, e.g., M:\Elliott8\Bin85\EL850.CFG (required - maximum of 80 characters)
Screen-Literal = Key name for the section (required)
Screen-Alpha-Field = update value (for FN=UP only)
Output:
Screen-Alpha-Field = Key value if successful
Screen-Answer = “Y” if successful, “N” if not
If not successful, Screen-Alpha-Field will contain spaces.
Note: The file name must include path information, even if it is just ".\filename.ext". This is because the Windows APIs used will read from and write to a system directory (instead of the current directory) if the filename does not include any path information.
JEG