Example: CL command to create the data area

This example requests the functions indicated in the table.

CRTDTAARA DTAARA(QGPL/QRWOPTIONS) TYPE(*CHAR) LEN(48)
          VALUE('9.5.114.107    :MYUSERID  AAUIU TN    INILIBRARY')
          TEXT('DRDA TCP SERVER DIAGNOSTIC OPTIONS'
Note: Because the proper spacing in the example is critical, the contents of the VALUE parameter are repeated in table form.
Table 1. Explanation of data elements in VALUE parameter of CRTDTAARA example
Columns Contents Explanation
1–11 9.5.114.107 IP address for use with switch in column 30.
16 : Character to mark the end of the IP address field.
17–24 MYUSERID User ID for use with switches in columns 29 and 31.
27 A Spool the server job log (for QRWTSRVR) for all users.
28 A Spool the DSPJOB output for all uses of the server.
29 U Trace the job with the (TRCJOB) command if the user ID on the connect request matches what is specified in columns 17 through 26 ('MYUSERID' in this example) of the data area.
30 I Start debug with the Start Debug (STRDBG) command (specifying no program) if the client IP address ('9.5.114.107' in this example) matches what is specified in columns 1 through 15 of the data area.
31 U Invoke the command Change Query Attributes (CHGQRYA) QRYOPTLIB(INILIBRARY) if the user ID on the connect request matches what is specified in columns 17 through 26 ('MYUSERID' in this example) of the data area.
Note: The library name is taken from columns 39 through 48 of the data area.
32   Do not shadow client debug options to server.
33 T Use the old TRCJOB facility for job traces.
34 N Do not place CPI3E34 messages in the history log.
35   Do not initiate a subroutine trace.
39–48 INILIBRARY Library used with switch 31.
Related information
Change Query Attributes (CHGQRYA) command
Start Debug (STRDBG) command