pjs.getDSValue()
This API returns a data structure value. All data structure subfields are combined into the character-based return value.
Parameter
Data structure
Return value
Character string
pjs.define("nameDS", { type: 'data structure', elements: {
"firstName": { type: 'char', length: 10 },
"lastName": { type: 'char', length: 10 },
}});
pjs.define("fullName", { type: 'char', length: 20 });
Â
firstName = "John";
lastName = "Doe";
Â
fullName = pjs.getDSValue(nameDS); // fullName is now "John Doe"