Previous Topic: RECORD NOT FOUND ErrorNext Topic: Delete Users and Profiles


Example: Copying a User Session

An administrator wants to add sessions named TSO-3 and TSO-4 to a user with a user ID of USER2. The administrator wants the new sessions to have the same user session values as an existing session named TSO-1 that is assigned to a user named USER5. The administrator executes the following statement in a batch job:

COPY TPX USERSESSION USER5 TSO-1 (USER2 TSO-3 USER2 TSO-4)

When the COPY statement is executed, USER2 has two new sessions with session IDs of TSO-3 and TSO-4. The new sessions have the same user session values as the session named TSO-1 assigned to USER5.