Xchange IMS Transaction IDs
Xchange can be initiated with either of two separate IMS transactions:
- To invoke standard Xchange IMS Message Level Support, type XGTM, plus the usual trailing space, on a blank IMS screen and press Enter.
- To invoke Xchange as an administrative user, type XGTS, plus the usual trailing space, on a blank IMS screen and press Enter.
Administrative users can view and delete Xchange requests for all users or LTERMs in the IMS region. An administrative user can also completely inactivate all Xchange requests by entering the INACTIVATE primary command and activate them by entering the ACTIVATE primary command. Access to the XGTS transaction can be restricted to selected users with your site's existing security package.
IMS Simulated Date Time Settings Screen
Command ===>________________ Xchange Subsystem ID XG34 UP Active===> YES
Line Commands: H - Set and Hold R - Reset P - Permanent D - Delete
J - Jobname A - Activate I - Inactivate
Status Codes: Request Type or * - Error
-------IOPCB------- ------MVS/HLL------
C A S Owner Req ID Program YYYY/MM/DD HH:MM:SS YYYY/MM/DD HH:MM:SS
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
_ _ _ ________ ________ ________ ____ __ __ __ __ __ =___ __ __ __ __ __
PF1 HELP PF2 COPYRIGHT/TRADE SECRET NOTICE CLEAR EXIT PF7 BWD PF8 FWD
Specifying Requests
The IMS Simulated Date Time Settings screen lets you specify requests for simulated system date and time scenarios for your IMS applications.
Each line is an entry where you can type information defining which portions of your IMS application or applications are to be tested using Xchange. Each individual entry that you create is called a request. All the entries together constitute the request table, which is stored in the Xchange request file. When you press Enter, any line commands you put in the C field are executed for each corresponding request.
The remainder of this section discusses five aspects of using the IMS Simulated Date Time Settings screen:
- primary commands
- line commands
- status codes
- fields
- PF keys
Primary Commands
Under Xchange IMS Message Level Support, an administrative user can enter the ACTIVATE, INACTIVATE, and PREFIX primary commands, and all other users can enter the ADVANCE, OFFSET, PRIMARY, and RELEASE primary commands.
Type primary commands in the Command field at the top of the Xchange screen.
Primary Commands for Administrative User
The following primary commands are available to the administrative user on the IMS Simulated Date Time Settings screen:
ACTIVATE
The ACTIVATE command globally enables Xchange date/time simulation for every active request. Using the ACTIVATE command does not change the activation status of individual requests as displayed in the A field.
INACTIVATE
The INACTIVATE command globally disables Xchange date/time simulation for every active request. Using the INACTIVATE command does not change the activation status of individual requests as displayed in the A field.
PREFIX
The PREFIX command allows an administrative user — one who invoked Xchange IMS Message Level Support with the XGTS transaction — to view the requests associated with other user IDs or logical terminals (LTERMs). Type PREFIX userID in the COMMAND field and press Enter to display all Xchange requests for the specified user ID. An asterisk (*) can be used as a wildcard character. Enter PREFIX * to view all requests in the Xchange request file. Enter *PREFIX abc* , where abc is a partial user ID or LTERM, to view all the requests of users or terminals that start with that string. Enter PREFIX ? to display the current prefix status.
Primary Commands for All Users
The following primary commands are available to all users on the IMS Simulated Date Time Settings screen:
ADVANCE
Use the ADVANCE command to display the Advance Request Settings screen for IMS message level support. For more information, see Advancing-Xchange-Requests-Using-IMS-Message-Level-Support.
OFFSET
Use the OFFSET command to display the IMS Simulated Date Time Settings screen in offset format. This command is available to all users. For more information, see Using-IMS-Message-Level-Support-with-Date-Time-Offset.
PRIMARY
Display the list of valid primary commands.
RELEASE
The RELEASE command displays the release number of Xchange IMS Message Level Support you are using. If you type RELEASE in the COMMAND field and press Enter, Xchange will display the release number at the bottom of the IMS Simulated Date Time Settings screen.
Line Commands
A line command must be entered to create, modify, or delete an Xchange request. Type line commands in the C field (see Fields) and press Enter to execute them. The following line commands are available on the IMS Simulated Date Time Settings screen:
H | Sets and holds a request for the program specified in the Program field by adding it to the request table. A running time clock for the program will be started at the moment the request is first used and will run parallel to real time. This allows you to test the way your program will behave when an event such as the first second of the year 2000 occurs during processing. The request, including its displacement from the real time and date, is retained until you delete it with the D (Delete) line command or reset it with the R (Reset) line command. H requests are intended for use with programs that run in MPRs. |
P | Sets and holds a permanent-time request for the program specified in the Program field by adding it to the request table. This command is similar to the H line command, except that the time specified is used as the starting point for a running clock on a program by program basis. Each time the request is used by each instance of a program, Xchange provides the request’s specified time and starts its running clock. This differs from H requests which start a running clock the first time the request is used and maintain the request’s time on that single running clock. P requests are intended for use with programs that run in MPRs. |
J | Sets and holds a permanent-time request for the job specified in the Req ID field by adding it to the request table. A running time clock for the job will be started at the moment the request is first used and will run parallel to real time. Each time the request is used by each instance of a job, Xchange provides the request’s specified time and starts its running clock. Only an administrative user can use an asterisk (*) wildcard character as part of the program name specified in the Program field. J requests are intended for use with programs that run in BMPs, IFPs, and WFIs. |
A | Activates the corresponding request so that Xchange date/time simulation will occur. The A field of activated requests displays a Y (yes). You can also overtype the A field with a Y or an N to activate or inactivate a request. The activated status of all requests can be globally overridden by an administrative user with the INACTIVATE command. |
I | Inactivates the corresponding request so that Xchange date/time simulation will not occur. The A field of inactivated requests displays an N (no). You can also overtype the A field with a Y or an N to activate or inactivate a request. |
R | Resets a request after new values have been entered under the IOPCB or MVS/HLL headings in the YYYY/MM/DD and/or HH:MM:SS fields. This allows you to change the date and time for the request without having to re-enter the other fields. None of the other fields can be modified with the R command. |
D | Deletes an existing request. Only administrative users can delete requests associated with user IDs or LTERMs other than their own. |
The following line command is available on the IMS Advance Request Settings screen:
V | Advances the requested IOPCB and MVS/HLL date and time or offset of all IMS message level support requests that match the Advance request by the time interval specified in the Advance IOPCB and Advance MVS/HLL fields forward or backward. This command deletes all matching IMS message level support requests, then adds the requests back. A request owned by a different user ID can only be advanced by an Xchange administrator. For information on designating Xchange administrators, see Task-8-3-5-Designating-Xchange-administrators. |
Status Codes-Xchange IMS Transaction IDs
Status codes are displayed in the S field next to each Xchange request (see Fields). Any of the following status codes can be displayed:
H | The request was set and held with the H line command. |
P | The request is permanent and was set with the P line command. |
J | The request was set for the jobname in the Req ID field with the J line command. |
* | The request contains an error. |
Fields
Command
The field for entry of Xchange primary commands. For a listing and description of primary commands, see Primary-Commands.
Xchange Subsystem ID
Displays the MVS ID of the Xchange subsystem and indicates whether the subsystem is up.
Active
Displays YES or NO to indicate whether active Xchange requests are enabled for date/time simulation. YES is displayed after an ACTIVATE command is entered, and NO is displayed after an INACTIVATE command is entered.
C
The field for entry of line commands for each Xchange request. For a listing and description of valid line commands, see Line-Commands.
A
Displays the activation status of each Xchange request. The letter Y (yes) indicates that the request is active and, if YES is displayed in the ACTIVE field, date/time simulation will occur when the specified program or job is executed. The letter N (no) indicates that the request is inactive. The activated status of all requests can be globally overridden by an administrative user with the INACTIVATE command.
S
Displays the status of each Xchange request. The letters H, P, or J indicate the request type based on the line command that was used to create it. An asterisk (*) indicates that the request contains an error.
Owner
Displays the user ID of the person who created the request, if logged onto IMS by user ID, or the LTERM on which the request was created. A user who accessed Xchange with the XGTM transaction can only view requests for which they are the owner. An administrative user can enter the PREFIX primary command to view the requests of any or all Xchange users. See Primary Commands for Administrative User.
Req ID
Displays the user ID, LTERM, or jobname that identifies the request. This field is also used to enter the jobname of requests set with the J line command. For requests set with the H or P line commands, this field defaults to the current user ID or LTERM. An administrative user can also enter the user ID or LTERM of any Xchange user.
Program
The field for entering the name of the program for which date/time simulation is to be performed. In requests created with the H or P line commands, an asterisk wildcard character can be used to specify multiple programs. For example, entering ABC* in the Program field will create a request for all programs whose names begin with ABC that are run under the user ID or LTERM in the Req ID field. If no program name — or a single asterisk — is entered in the Program field, the request will affect every program of the user ID or LTERM in the Req ID field. For requests created with the J line command, only an administrative user can include an asterisk in the Program field.
YYYY/MM/DD
The year, month, and day that you want Xchange to simulate. The same fields are provided under two headings, IOPCB and MVS/HLL. The date values under the IOPCB heading are substituted for the IOPCB values of the specified program or job. Those under the MVS/HLL heading are used to exchange other MVS and high-level language TIME services calls. The MVS/HLL fields default to the corresponding values entered in the IOPCB fields, as indicated by the equal sign (=) in the first position of the YYYY column. The following entries are valid:
YYYY | 1900 to 2041 (2099 if POSTEPOC parameter is set to YES) |
MM | 01 to 12 |
DD | 01 to 28 (Feb.) |
If you enter a value for the day (DD), the month and year are required. If you enter a value for the month (MM), the year is required. You can enter just the year. This field defaults to the current year, month, and day.
HH:MM:SS
The hour, minute, and second that you want Xchange to simulate for the specified date. The same fields are provided under two headings, IOPCB and MVS/HLL. The time values under the IOPCB heading are substituted for the IOPCB values of the specified program or job. Those under the MVS/HLL heading are used to exchange other MVS and high-level language TIME services calls. The MVS/HLL fields default to the corresponding values entered in the IOPCB fields, as indicated by the equal sign (=) in the first position of the YYYY column. The following entries are valid:
HH | 00 to 23 |
MM | 00 to 59 |
SS | 00 to 59 |
If you enter a value for seconds (SS), the hour and minutes are required. If you enter a value for minutes (MM), the hour is required. You can enter just the hour in this field. If only hours or hours and minutes values are entered, the remaining fields will default to the time at which the request is created. If no values are entered, this field displays all zeros and defaults to the running current hour, minute, and second at the time of task execution.
Message area
The line follownig the request entry fields is used to display Xchange and IMS messages.
PF Keys
IMS Message Level Support recognizes the following function keys which are also displayed at the bottom of the IMS Simulated Date Time Settings screen:
- PF1 (Help)
- PF2 (Copyright/Trade Secret Notice)
- PF7 (Scroll Up)
- PF8 (Scroll Down)
- Clear (Exit Xchange).
Comparison of Request Types
The following table presents a comparison of the three different types of IMS Message Level Support Xchange requests set with the P, H, and J line commands. The table summarizes the values displayed or entered in each request field and notes any differences associated with use of the administrative user XGTS transaction.
IMS Request Types
Request Field | Request Line Command (C Field) | ||
---|---|---|---|
P | H | J | |
Owner | Displays User ID or LTERM of request owner. | Displays User ID or LTERM of request owner. | Displays User ID or LTERM of request owner. |
Req ID | Leave blank. Defaults to UserID or LTERM. (Administrative user only can enter user ID or LTERM.) | Leave blank. Defaults to UserID or LTERM. (Administrative user only can enter user ID or LTERM.) | Enter jobname of BMP, IFP, or MPP to be exchanged. |
Program | Name of program to be exchanged. May end with an asterisk. Default is asterisk. | Name of program to be exchanged. May end with an asterisk. Default is asterisk. | Name of program to be exchanged. May not include an asterisk. (Only administrative users can include an asterisk.) |
IOPCB | Date and time to be exchanged for IOPCB date and time. | Date and time to be exchanged for IOPCB date and time. | Date and time to be exchanged for IOPCB date and time. |
MVS/HLL | Date and time to be exchanged for MVS/HLL date and time. See note as follows. | Date and time to be exchanged for MVS/HLL date and time. See note as follows. | Date and time to be exchanged for MVS/HLL date and time. See note as follows. |