Product Site

5.4.18.1. new

Returns a new RexxQueue instance associated with the Rexx external data queue named name.

If name is omitted, the SESSION queue is used. If name is specified as .nil the new RexxQueue instance is associated with a newly created Rexx external data queue with a system-generated name. If name is specified and an external data queue named name exists, it is opened. If such a data queue does not exist, it is created.

Example 5.309. RexxQueue class — new method
q = .RexxQueue~new
q~queue("line")
q~push("header")
say q~queued q~pull    -- 2 header
q~delete