Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

Example

&pagelevel(4)&pagelevel
/declare-var var-name=out-1(type=*structure),multiple-elements=*list
/execute-cmd cmd=(show-file-attr file-name=job*,inf=*par(alloc=*yes)),-
/                 text-output=*none,structure-output=out-1
/show-var out-1,inf=*par(value=*c-lit,list-index-number=*yes)
OUT-1#1.F-NAME = ':2OSG:$USER1.JOBA' 
OUT-1#1.CAT-ID = '2OSG'
OUT-1#1.USER-ID = 'USER1'
OUT-1#1.SHORT-F-NAME = 'JOBA'
OUT-1#1.F-SIZE = 3
OUT-1#1.SUP = '*PUB'
OUT-1#1.HIGHEST-USED-PAGES = 1
OUT-1#1.SEC-ALLOC = 24
OUT-1#1.BLOCK-COUNT = 0
OUT-1#1.EXT#1.VOL = 'GVS2.2'
OUT-1#1.EXT#1.DEV = 'D3435'
OUT-1#1.EXT#1.NUM-OF-EXT = 1
*END-OF-VAR
OUT-1#1.NUM-OF-EXT = 1
*END-OF-VAR
OUT-1#2.F-NAME = ':2OSG:$USER1.JOBB' 
OUT-1#2.CAT-ID = '2OSG'
OUT-1#2.USER-ID = 'USER1'
OUT-1#2.SHORT-F-NAME = 'JOBB'
OUT-1#2.F-SIZE = 3
OUT-1#2.SUP = '*PUB'
OUT-1#2.HIGHEST-USED-PAGES = 1
OUT-1#2.SEC-ALLOC = 24
OUT-1#2.BLOCK-COUNT = 0
OUT-1#2.EXT#1.VOL = 'GVS2.3'
OUT-1#2.EXT#1.DEV = 'D3435'
OUT-1#2.EXT#1.NUM-OF-EXT = 1
*END-OF-VAR
OUT-1#2.NUM-OF-EXT = 1
*END-OF-VAR
OUT-1#3.F-NAME = ':2OSG:$USER1.JOBC'
OUT-1#3.CAT-ID = '2OSG'
OUT-1#3.USER-ID = 'USER1'
OUT-1#3.SHORT-F-NAME = 'JOBC'
OUT-1#3.F-SIZE = 3
OUT-1#3.SUP = '*PUB'
OUT-1#3.HIGHEST-USED-PAGES = 1
OUT-1#3.SEC-ALLOC = 24
OUT-1#3.BLOCK-COUNT = 0
OUT-1#3.EXT#1.VOL = 'GVS2.0'
OUT-1#3.EXT#1.DEV = 'D3435'
OUT-1#3.EXT#1.NUM-OF-EXT = 1
*END-OF-VAR
OUT-1#3.NUM-OF-EXT = 1
*END-OF-VAR

Explanation:

The user-defined list variable VAR contains three elements.

The specification inf=*par(alloc=*yes) causes all file attributes of the selected files to be output that are relevant for memory allocation. The file attributes F-NAME, CAT-ID, USER-ID,....,EXT form the structure elements. The element EXT is again a list consisting of the elements VOL, DEV and NUM-OF-EXT.

If the information about an object can be organized in a hierarchical structure as for element EXT, a complex S variable is defined as an element of the superordinate structure. The subordinate S variable can be a simple S variable (as for VOL, DEV, NUM-OF-EXT), a structure of a list of simple S variables and/or structures.

The names of the list elements (e.g. F-NAME, F-SIZE) are command-specific and predefined for each SHOW command. They are appended to the names of the S variables as declared by the user. For each further hierarchical level of information, another name is appended, separated by a period.