You can run COPYTRC by entering the subcommand or using the panels on option 5.3 of the IPCS dialog.
The main function of the COPYTRC subcommand is to aid in processing multiple trace sources. Suppose you have multiple GTF data sets from a run on a single system. Before using GTFTRACE to process all of the trace data, you must combine all GTF trace records into a single data set using COPYTRC.
COPYTRC does not have a default input or output data set name or ddname.
COPYTRC [ TYPE(GTF|CTRACE) ]
{ INDATASET(dslist)|INDSNAME(dslist)|IDS(dslist) }
{ INFILE(ddlist)|INDDNAME(ddlist) }
{ OUTDATASET(dsname)|OUTDSNAME(dsname)|ODS(dsname) }
{ OUTFILE(ddname)|OUTDDNAME(ddname) }
[ SPACE(pppp[,ssss]|50,50) ]
-------- Data Selection Parameters -------------------------
[ OPTIONS((ALL|filters)) ]
[ START(mm/dd/yy,hh.mm.ss.dddddd) ]
[ STOP(mm/dd/yy,hh.mm.ss.dddddd) ]
[ SYSNAME(sysname[,sysname]...) ]
-------- SETDEF-Defined Parameters -------------------------
Note: You can override the following SETDEF parameters.
See SETDEF subcommand — set defaults.
[ FLAG(severity) ]
[ PRINT | NOPRINT ]
[ TERMINAL | NOTERMINAL ]
[ TEST | NOTEST ]
COMMAND ===> COPYTRC INFILE(GTFDINDD) INDATASET(MY.GTFDATA1,MY.GTFDATA2) ...
INDATASET, INDSNAME, or IDS specifies the input data set or sets. When specifying more than one data set name, separate the names with commas or blanks. IPCS dynamically allocates each input data set. If a data set is not open, COPYTRC opens the data set after it is dynamically allocated.
Each designated data set must exist and must be cataloged to allow the system to locate it. If a data set resides on a volume that is not mounted as RESIDENT, MVS™ MOUNT authorization is required.
After copying, IPCS closes and deallocates each data set. When the SETDEF-defined default source is specified as an input data set, IPCS does not close or deallocate the data set.
INFILE or INDDNAME specifies the ddname of the input data set or sets. Before using INFILE or INDDNAME, you must allocate each data set using JCL or the TSO/E ALLOCATE command. IPCS opens the data sets.
When specifying more than one ddname, separate the names with commas or blanks.
When IPCS finishes copying, it closes the data set, but does not directly deallocate it. You can use the JCL FREE=CLOSE to release each data set. When the SETDEF-defined default source is specified as an input data set, IPCS does not close or deallocate it.
OUTDATASET, OUTDSNAME, or ODS specifies the output data set. If the designated data set exists, it is dynamically allocated and used by COPYTRC. The data set must be cataloged. If the data set resides on a volume that is not mounted as RESIDENT or RESERVED, MVS MOUNT authorization is required.
If the designated data set does not exist, the system allocates a new data set with the specified name. Use the SPACE parameter to indicate the amount of space to be allocated. If the SPACE parameter is omitted, COPYTRC uses default amounts.
After the copying, IPCS closes and deallocates the data set.
OUTFILE or OUTDDNAME specifies the ddname of the output data set. Before using COPYTRC, you must allocate this data set using JCL or the TSO/E ALLOCATE command.
After the copying, IPCS closes the data set but does not directly deallocate it.
COPYTRC processing might open and close the output data set more than once. Do not use options on the DD statement, such as RLSE or FREE=CLOSE that conflict with the multiple open and close operations.
IBM® recommends to use the same BLOCKSIZE for the output data set as for the input data set. Using different BLOCKSIZE may cause some data not to be captured when START or STOP times are specified.
All data selection parameters are optional. If specified, COPYTRC copies only trace entries or records that meet the specified data selection requirement.
COMP(name) [SUB(name[.name]...)][,...]
You may specify complete trace names or partial trace names. Separate each partial or complete trace name by a comma. If you specify a partial trace name, COPYTRC copies each trace that matches the partial trace name.
Table 1 shows examples of valid date and time formats.
Valid date formats | Valid time formats |
---|---|
|
|
Code | Explanation |
---|---|
00 | End of file reached. The input data set has been closed and all trace entries or records have been copied to the output data set. |
04 | No valid trace entries or records meeting the selection criteria were found. No trace data was copied to the output data set. |
08 | A processing error occurred. Some, but not all trace entries or records were copied to the output data set. |
12 | An error occurred in COPYTRC processing. No trace entries or records were copied to the output data set. |
16 | Dynamic allocation of the output data set failed. No trace entries or records were copied to the output data set. |
20 | The COPYTRC subcommand has a syntax error. |
24 | The COPYTRC subcommand has a semantic error. |