Previous Topic: Copy Test Streams and RulesetsNext Topic: Delete Test Streams and Their Rulesets


Reorganize the Data Set

The copy function can be used to migrate an existing data set to a larger data set or to reclaim unavailable control intervals. Usually reorganization is not required.

A data set cannot be reorganized in place.

Follow these steps:

  1. Define a new data set with IDCAMS.
  2. Run TCABATCH with TCADSIN allocated to the old data set and TCADSOUT (MVS) or TCADSOU (VSE) allocated to the new one. Use the following control cards to initialize and format the new data set and copy the test streams:
    INIT
    FORMAT
    COPY
    SELECT ========.========.===
    
  3. Delete the old data set and rename the new one.

Convert a Test Stream to REXX

Use the REXX function to convert a test stream from the data set allocated to TCADSIN to the REXX script file allocated to TCAREXX. The resulting REXX exec can be modified as necessary to meet user needs.

Note: The password security format used in the converted REXX script (that is token, code, or password) is determined by the password security option that is active for the userID that performs the conversion, at the time the test stream is converted to REXX. See the section Secure Data in a REXX Script for more information on the security options, including viewing or modifying the active security option for your userID.

Specify the REXX card in the SYSIN DD data set. The format is:

REXX APPLID(applid) SLINES(nn) [DELAY/NODELAY] [PROTECT/NOPROTECT]
APPLID(applid) (Optional)

Specifies the VTAM applid of the application to which the converted REXX exec should establish a session when it is executed. If APPLID is omitted, a "LOGON '????????'" statement will be generated by the conversion routine and the user must modify the exec to provide a valid applid before executing it.

SLINES(nn) (Optional)

Specifies the number of lines of an output screen to be included in the converted REXX exec. The default value is 3. The screen lines are included as comments to aid readability of the exec.

DELAY/NODELAY

Specifies whether DELAY commands should be added to the converted REXX exec, to reflect the think time associated with the original test stream. The default is DELAY.

PROTECT/NOPROTECT

Specifies whether the REXX script (indicated by the TCAREXX DD) should be overwritten if it already exists. If PROTECT is specified and the target script exists, the member will not be overwritten. Instead, a message will be written to SYSPRINT. If NOPROTECT is specified and the target member exists, it will be overwritten. The default is NOPROTECT.

A Select card should follow the REXX card. The Select card specifies the test stream to be converted. See the section, Select Test Streams for Copy, Convert, Print, and Delete in this chapter for details.

Sample JCL

Use JCL similar to the following example to convert a test stream to REXX in batch..

//TCABATCH	EXEC	PGM=TCABATCH,REGION=2048K
//STEPLIB	DD	DISP=SHR,DSN=yourHLQ.CATJLOAD
//TCADSIN	DD	DISP=SHR,DSN=hlq.TCADS
//TCADREXX	DD	DISP=SHR,DSN=userid.VERIFY.SCRIPT(ssssssss)
//SYSPRINT	DD	SYSOUT=A
//TCAPRINT	DD	SYSOUT=A
//SYSIN	DD	*
REXX APPLID(vtamappl) SLINES(24)
SELECT application.member.version
/*