Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

5.3.10.4 Variable-Length Tables



Variable-length tables are specified using the OCCURS DEPENDING ON clause.


    ___ Format 2--Variable-Length Tables ___________________________________ 
   |                                                                        |
   |                       (1)                                              |
   | >>__OCCURS__integer-1_____TO__integer-2__ _______ __DEPENDING________> |
   |                                          |_TIMES_|                     |
   |                                                                        |
   | >__ ____ __data-name-1_______________________________________________> |
   |    |_ON_|                                                              |
   |                                                                        |
   |    <______________________________________________________             |
   | >____ __________________________________________________ _|__________> |
   |      |                                  <_____________  |              |
   |      |_ _ASCENDING__ __ _____ __ ____ ____data-name-2_|_|              |
   |        |_DESCENDING_|  |_KEY_|  |_IS_|                                 |
   |                                                                        |
   | >__ ___________________________________ ____________________________>< |
   |    |                  <______________  |                               |
   |    |_INDEXED__ ____ ____index-name-1_|_|                               |
   |               |_BY_|                                                   |
   |                                                                        |
   | Note:                                                                  |
 X | (1)  Integer-1 is optional as an IBM extension.  If integer-1 is       |
 X |      omitted, a value of 1 is assumed and the key word TO must also be |
 X |      omitted.                                                          |
   |                                                                        |
   |________________________________________________________________________|

integer-1
The minimum number of occurrences.

The value of integer-1 must be greater than or equal to zero; it must also be less than the value of integer-2.

integer-2
The maximum number of occurrences.

Integer-2 must be greater than integer-1.

The length of the subject item is fixed; it is only the number of repetitions of the subject item that is variable.

Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.