Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

This API sets data into an IBM i data area.

Parameters
  1. Field - Reference to a field that is declared with the 'dataArea' configuration option 
  2. Remain locked (Boolean, optional) - default value is false

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' });
pjs.define("C", { type: 'char', length: 12 });
 
C = 'DIFFERENCE';
DAT = C;

pjs.setDataArea(DAT);
pjs.unlockDataArea(DAT);

 

RPG Equivalent

OUT

  • No labels