Previous Topic: #GETSTG—acquires variable storage from a storage poolNext Topic: #GETSTG Parameters


#GETSTG Syntax

►►─┬─────────┬────────────────────────────────────────────────────────────────►
   └─ label ─┘

 ►─── #GETSTG TYPE= ( ─┬─ USER ───┬─ , ─┬─ LONG ──┬──┬─────────┬─ ) ──────────►
                       └─ SHARED ─┘     └─ SHORT ─┘  └─ ,KEEP ─┘

 ►─┬─────────────────────────────────────────────┬────────────────────────────►
   └─ ,PLIST= ─┬─ SYSPLIST ◄ ───────────────────┬┘
               └─ parameter-value-list-pointer ─┘

 ►─┬───────────────────────┬──────────────────────────────────────────────────►
   └─ ,LEN=storage-length ─┘
 ►─┬───────────────────────┬──────────────────────────────────────────────────►
   └─ ,INIT=initial-value ─┘

 ►─┬───────────────────────────────┬──────────────────────────────────────────►
   └─ ,ADDR= ─┬─ (1) ◄ ───────────┬┘
              └─ storage-address ─┘

 ►─┬─────────────────────┬────────────────────────────────────────────────────►
   └─ ,STGID=storage-id ─┘

 ►─┬─────────────────────┬────────────────────────────────────────────────────►
   └─ ,LOC= ─┬─ ANY ◄ ──┬┘
             ├─ BELOW ──┤
             └─ XA ─────┘
 ►─┬───────────────────────────────┬──────────────────────────────────────────►
   └─ ,COND= ─┬── NO ◄ ───────────┬┘
              ├── ALL ────────────┤
              │   ┌─── , ─────┐   │
              └─(─▼─┬─ NOST ─┬┴─)─┘
                    ├─ INVP ─┤
                    ├─ DEAD ─┤
                    └─ XAST ─┘

 ►─┬───────────────────────────────────────┬──────────────────────────────────►
   └─ ,NOSTXIT=insufficient-storage-label ─┘

 ►─┬─────────────────────────────────────────┬────────────────────────────────►
   └─ ,INVPXIT=invalid-parameter-list-label ─┘

 ►─┬───────────────────────────┬──────────────────────────────────────────────►
   └─ ,DEADXIT=deadlock-label ─┘
 ►─┬──────────────────────────────────────────────┬───────────────────────────►
   └─ ,XASTXIT=extended-addressing-storage-label ─┘

 ►─┬──────────────────────────────┬───────────────────────────────────────────►
   └─ ,NWSTXIT=new-storage-label ─┘

 ►─┬──────────────────────┬───────────────────────────────────────────────────►◄
   └─ ,ERROR=error-label ─┘