Operands, Return codes, Example – IBM SC34-5764-01 User Manual

Page 300: Note, Vardrop, Varget

Advertising
background image

Operands

listname

specifies the list identifier.

stem.

specifies the name of a stem. (A stem must end in a period.) See section “Stems” on page 123 for
more information. The default stem is DATA..

UPD

is a keyword that enqueues on a file for update.

Return Codes

See the RLS command, section “RLS” on page 366.

Example

'RLS READ \USERS\USER1\TEST.DATA DATA.'

This example stores the entire contents of the RLS list \USERS\USER1\TEST.DATA in the DATA. REXX
compound variable.

Note

DATA.0 is set to the number of records read from the list. DATA.n contains the nth record read from the
list.

VARDROP

RLS

VARDROP

varname

dirid

VARDROP deletes an RLS saved variable.

Operands

varname

specifies a simple REXX variable name. It does not end in a period, distinguishing a variable name
from a stem name.

dirid

specifies a REXX List System directory level identifier. This is partially or fully qualified. See the CLD
command, section “CLD” on page 325, for more information.

Return Codes

See the RLS command, section “RLS” on page 366.

Example

'RLS VARDROP VAR1'

This example deletes variable VAR1 from the current directory.

VARGET

RLS

VARGET

varname

dirid

VARGET takes an RLS saved variable and copies it into a REXX variable of the same name.

List System

278

CICS TS for VSE/ESA: REXX Guide

Advertising