ALCOBJ (Allocate Object) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: Conditional; See Restrictions.
>>-ALCOBJ--OBJ(------------------------------------------------->
 
   .------------------------------------------------------------------------------------------.
   V .-*LIBL/--------.                           (1)               (2)   .-*FIRST------. (3)  |
>----+---------------+--object-name--object-type-------+-*SHRRD--+-------+-member-name-+------+-->
     +-*CURLIB/------+                                 +-*SHRUPD-+
     '-library-name/-'                                 +-*SHRNUP-+
                                                       +-*EXCLRD-+
                                                       '-*EXCL---'
 
                                        (4)
>--)--+-------------------------------+------------------------->
      |        .-*CLS------------.    |
      '-WAIT(--+-seconds-to-wait-+--)-'
 
>--+-----------------------------+------------------------------>
   |         .-*JOB----.    (5)  |
   '-SCOPE(--+-*LCKSPC-+--)------'
             '-*THREAD-'
 
>--+-----------------------------+-----------------------------><
   |            .-*NORQSRLS-.    |
   '-CONFLICT(--+-*RQSRLS---+--)-'
 
 

Notes:

  1. For a list of the valid OS/400 object types for this command see the Object Information table in the command description.

  2. Refer to the Object Information table in the command description for the lock states that are valid for each object type.

  3. A maximum of 50 repetitions.

  4. All parameters preceding this point can be specified in positional form.

  5. To determine if an object type supports thread-scoped locks refer to the Object Information table in the command description for the lock states that are valid for each object type.