This API uploads data from a jsonDB table that has been previously downloaded from IBM i back to the physical database file on IBM i.
The table is placed into a modules subdirectory that matches the database file's library name. The data is stored in files named as follows: FILE.db.json, where FILE is the name of the original physical or logical file. If files already exist, they are replaced by the API.
Both the file's data and the definition is downloaded.
Parameters
...
data records are appended to the file. Existing records are not replaced.
Parameters
- Table name - the name can be qualified with a library; if a library the name is not specifiedqualified, the library list pathlist is used to locate the jsonDB table
Example
Code Block | ||||
---|---|---|---|---|
| ||||
function putorders() { pjs.uploadTable("ORDERSHP"); // upload Order Header data pjs.uploadTable("ORDERSDP"); // upload Order Detail data } exports.run = putorders; |
...