The CREATE_STRUCT function creates a structure given pairs of tag names and values. CREATE_STRUCT can also be used to concatenate structures.
To create the anonymous structure { A: 1, B: `xxx'} in the variable P , enter:
p = CREATE_STRUCT('A', 1, 'B', 'xxx')
To add the fields "FIRST" and "LAST" to the structure, enter the following:
p = CREATE_STRUCT('FIRST', 0, p, 'LAST', 3)
The resulting structure contains { FIRST: 0, A: 1, B: 'xxx', LAST: 3}.