Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Accessing S variables

&pagelevel(6)&pagelevel

The string (*LIST) appears only if you output the S variable with the SHOW-VARIABLE command (if the element number #i is displayed instead of (*LIST), the LIST-INDEX-NUMBER=*YES operand must be specified). Access to specific items of information is achieved with the string #i, where i is the i-th element of the list.

Example 3
/show-var out#3.sec-alloc ----------------------------------------------------(1)
OUT(*LIST).SEC-ALLOC = 24
/show-var out#3.ext#1.vol ----------------------------------------------------(2)
OUT#3.EXT#1.VOL = GVS2.0
/show-var out#3.ext#.vol -----------------------------------------------------(3)
OUT#3.EXT#1.VOL = GVS2.0 


Key to Example 3

Example 3 is based on the structured output of Example 2.

(1)

out#3.sec-alloc directly accesses the “Secondary Allocation” item which is an attribute of file JOBC. The attributes of JOBC form the third element in the output list.

(2)

out#3.ext#1.vol causes the first element of list variable EXT to be output.

(3)

Has the same effect as (2). To refer to the first list element it is sufficient to specify out#3.ext#.vol.