Previous Topic: #LINK—establishes linkage with a programNext Topic: #LINK Parameters


#LINK Syntax

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

 ►─── #LINK ─┬─ PGM=program-name-pointer ───┬─────────────────────────────────►
             └─ EPADDR=entry-point-address ─┘

 ►─┬─────────────────────────────────────────────┬────────────────────────────►
   └─ ,PLIST= ─┬─ SYSPLIST ◄ ───────────────────┬┘
               └─ parameter-value-list-pointer ─┘
 ►─┬──────────────────────────────────────────────┬───────────────────────────►
   └─ ,PARMS= ─┬─ NO ◄ ──────────────────────────┬┘
               │     ┌──────── , ──────────┐     │
               └─ ( ─▼─ parameter-pointer ─┴─ ) ─┘

 ►─┬────────────────────┬─────────────────────────────────────────────────────►
   └─ ,COND= ─┬─ NO ◄ ─┬┘
              └─ YES ──┘

 ►─┬────────────────────────────────────────┬─────────────────────────────────►
   └─ ,PGNAXIT=program-not-available-label ─┘

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