Page tree
Skip to end of metadata
Go to start of metadata

This API retrieves data from an IBM i data area into a local field.

Parameters
  1. Field - Reference to a field that is declared with the 'dataArea' configuration option

Exception Handling

If there is a problem retrieving the data, an Error will be thrown with the following properties:

  • message - The IBM i message text.
  • error - The message id.
  • help - The message help text.
Examples

 

pjs.define("DAT", { type: 'char', length: 12, dataArea: 'DAT' });

DAT = 'DIFFERENCE';
pjs.setDataArea(DAT);

pjs.unlockDataArea(DAT);

 

RPG Equivalent 

UNLOCK


Requirements

This API requires the Profound.js Connector module.