+-------------------------------IBM Extension--------------------------------+

VIRTUAL

Purpose

The VIRTUAL statement specifies the name and dimensions of an array. It is an alternative form of the DIMENSION statement, although there is no VIRTUAL attribute.

Syntax



>>-VIRTUAL--array_declarator_list------------------------------><
 
 

Rules

+-------------------------------IBM Extension--------------------------------+

You can specify arrays with a maximum of 20 dimensions

+----------------------------End of IBM Extension----------------------------+

Only one array specification for an array name can appear in a scoping unit.

Examples

VIRTUAL A(10), ARRAY(5,5,5), LIST(10,100)
VIRTUAL ARRAY2(1:5,1:5,1:5), LIST2(I,M)  ! adjustable array
VIRTUAL B(0:24), C(-4:2), DATA(0:9,-5:4,10)
VIRTUAL ARRAY (M*N*J,*)                       ! assumed-size array

Related Information

+----------------------------End of IBM Extension----------------------------+

IBM Copyright 2003