One variable type available is the data() type. This is not a single value but provides access to internal POS variables in a controlled way.
Information is broadly split into groups and subgroups
set data(workingsaleline.memory.TicketRef) = "ABC456"Example. Recalling the value 'TicketRef'
set tick = data(workingsaleline.memory.TicketRef)Example. Setting a value called 'MyFlag' on a sale
set data(activesale.memory.MyFlag) = 'milspec'Example. Recalling the value 'MyFlag'
set flags = data(activesale.memory.MyFlag)