UPDATE LE command

Use the UPDATE LE command to define Language Environment® (LE) runtime parameter overrides or to change the system option to enable or disable LE override processing.

The parameters can be filtered by a transaction code, LTERM name, user ID, or program name for MPP and JMP regions. The parameters may be filtered by a program name for IFB, BMP, and JBP regions. Message driven BMP regions can also filter on a transaction code. Any combination of parameters may be used to qualify the application instance to which the runtime parameters are applied. The first available entry in the table is used. The new entry may be added before or after existing entries, depending on where free space exists in the table.

Subsections:

Environment

The following table lists the environments (DB/DC, DBCTL, and DCCTL) from which the UPDATE LE command and keywords can be issued.

Table 1. Valid environments for the UPDATE LE command and keywords
Command / Keywords DB/DC DBCTL DCCTL
UPDATE LE X X X
LTERM X X X
PGM X X X
SET X X X
TRAN X X X
USERID X X X

Syntax

Read syntax diagramSkip visual syntax diagram
>>-+-UPDATE-+--LE----------------------------------------------->
   '-UPD----'       

>--+-SET(LEOPT(-+-NO--+-))--------------------------------------+-><
   |            '-YES-'                                         |   
   | .-,--------------------.                                   |   
   | V                      |                                   |   
   '---+-LTERM(ltermname)-+-+-SET(LERUNOPTS(runtimeparameters))-'   
       +-PGM(programname)-+                                         
       +-TRAN(tranname)---+                                         
       '-USERID(userid)---'                                         

Keywords

The following keywords are valid for the UPDATE LE command:

LTERM()
Specifies the 1-8 character name of the lterm to which the parameters are to be defined.
PGM()
Specifies the 1-8 character name of the program to which the parameters are to be defined.
SET()
Specifies the updates to attributes or parameters.
LEOPT()
Specifies whether LE runtime parameters can be overridden dynamically for all active IMS™ systems in the IMSplex. YES indicates that the IMS systems enable overrides which enables the DL/I INQY call to retrieve runtime parameters. NO indicates that the IMS systems do not enable dynamic overrides to the parameters.

This option allows the user to override the LEOPT=Y|N option that is specified in the DFSCGxxx PROCLIB member without having to bring down the IMS system.

When runtime overrides are disabled (IMS is started with LEOPT=N or the UPD LE SET(LEOPT(NO)) command is issued) the runtime parameter table continues to be updated as UPD LE SET(LERUNOPTS()) or DEL LE commands are issued. If the UPD LE SET(LEOPT(YES)) command is then specified, all changes that were made during the time overrides were disabled are available.

This command is automatically routed to all IMS systems that are active in the IMSplex. The user can not override the OM routing to route to a single IMS.

LERUNOPTS()
Specifies the LE dynamic runtime parameters. If an existing set of parameters is found for the specified TRAN, LTERM, USERID, or PGM, the new parameter string completely replaces the existing parameter string. The parameters are not appended to the existing string. The string is only replaced when the specified filters are an exact match for the existing entry.

If there is no existing entry, then the first unused entry that is large enough to contain the parameters is used for the update. An unused entry is one that was previously deleted by the DEL LE command. If there are no unused entries or none that are large enough, storage is allocated for a new entry and the entry is added to the top of the table.

The UPDATE LE SET(LERUNOPTS()) command is processed regardless of the LEOPT system option. This means that IMS continues to build the runtime parameter table entries even though they will not be retrieved through the DL/I INQY call.

This command is automatically routed to all IMS systems that are active in the IMSplex. The user cannot override the parameters on a single IMS.

TRAN()
Specifies the 1-8 character name of the transaction to which the parameters are to be defined.
USERID()
Specifies the 1-8 character name of the user ID to which the parameters are to be defined.

Usage notes

This command may be specified only through the Operations Manager API. The command syntax for this command is defined in XML and is available to automation programs that communicate with OM.

OM overrides the routing on the command and routes the command to all IMS systems in the IMSplex. The user specified route list is ignored.

At least one of the resource filters (TRAN, LTERM, USERID, or PGM) must be specified.

Output fields

The following table shows the UPDATE LE output fields. The columns in the table are as follows:
Short label
Contains the short label generated in the XML output.
Keyword
Identifies the keyword on the command that caused the field to be generated. N/A appears for output fields that are always returned. ERR appears for output fields that are returned only in case of an error.
Meaning
Provides a brief description of the output field.
Table 2. Output fields for the UPDATE LE command
Short label Keyword Meaning
CC N/A Completion code for the line of output. Completion code is always returned.
MBR N/A IMSplex member (IMS identifier) that built the output line. Member name is always returned.

Return, reason, and completion codes

The OM return and reason codes that may be returned as a result of this command are standard for all commands entered through the OM API. An IMS return and reason code is returned to OM by the UPDATE LE command.

The following table includes the return and reason codes and a brief explanation of the codes. The return or reason code returned for the command might also indicate an error from a CSL request.

Return code Reason code Meaning
X'00000000' X'00000000' The UPDATE LE command completed successfully.
X'00000008' X'00002008' No keywords were specified on the command. At least one keyword is required. When SET(LERUNOPTS()) is specified, at least one resource name must be specified.
X'00000008' X'00002010' An asterisk or percentage sign was specified in the filter name. Wildcards are not supported on the command.
X'00000008' X'00002014' An invalid character was specified in the filter name.
X'00000008' X'00002040' An invalid filter was specified on the command. When SET(LEOPT()) is specified, no other resource names can be specified.
X'00000010' X'00004040' The parameter override header has not been initialized. Retry the command after restart is complete.
X'00000014' X'00005000' Unable to get storage from IMODULE GETSTOR.
X'00000014' X'00005010' Unable to obtain latch.
X'00000014' X'00005FFF' Internal IMS error - should not occur.
The following table contains the completion code that can be returned on a UPDATE LE command.
Table 3. Completion code for the UPDATE LE command
Completion code Meaning
0 The UPDATE LE command completed successfully for the specified resource.

Examples

The following are examples of the UPDATE LE command.

Example 1 for UPDATE LE command

Assume the following filters and parameters are specified on UPD LE SET(LERUNOPTS()) commands that are processed in the order listed.
  1. TRAN(PART) LTERM(TERM2) SET(LERUNOPTS(hhhh))
  2. TRAN(PART) LTERM(TERM2) SET(LERUNOPTS(iiii))
  3. LTERM(TERM2) USERID(BETTY) SET(LERUNOPTS(gggg))
  4. TRAN(PART) LTERM(TERM1) USERID(BOB) SET(LERUNOPTS(ffff))
  5. TRAN(PART) LTERM(TERM1) USERID(BARBARA) SET(LERUNOPTS(eeee))
  6. PGM(DFSSAM02) SET(LERUNOPTS(dddd))
  7. TRAN(PART) LTERM(TERM1) SET(LERUNOPTS(cccc))
  8. TRAN(PART) USERID(BETTY) SET(LERUNOPTS(bbbb))
  9. TRAN(PART) PGM(DFSSAM02) SET(LERUNOPTS(aaaa))
Rules for matching an entry which results in an update of an existing entry:
  • The number of filters defined on the UPDATE LE must match the number of filters defined in the entry.
  • The filter values defined on the UPDATE LE must be an exact match for those defined in the entry.
The following table is a logical representation of the parameter override table entries at the end of the command processing. The table includes the transaction name, LTERM, USERID, Program, and LERUNOPTS for each entry.
Table 4. Parameter override table entries for UPDATE LE example 1
Entry# TRAN LTERM USERID PROGRAM LERUNOPTS
1 PART     DFSSAM02 aaaa
2 PART   BETTY   bbbb
3 PART TERM1     cccc
4       DFSSAM02 dddd
5 PART TERM1 BARBARA   eeee
6 PART TERM1 BOB   ffff
7   TERM2 BETTY   gggg
8 PART TERM2     iiii

Example 2 for UPDATE LE command

TSO SPOC input:
UPD LE TRAN(IAPMDI26) USERID(USRT001)
SET(LERUNOPTS(RPTOPTS=((ON),NOOVR),RPTSTG=((OFF),NOOVR)))
TSO SPOC output:
MbrName    CC 
SYS3        0  
OM API input:
CMD(UPD LE TRAN(IAPMDI26) USERID(USRT001)
SET(LERUNOPTS(RPTOPTS=((ON),NOOVR),RPTSTG=((OFF),NOOVR))))
OM API output:
<imsout>
<ctl> 
<omname>OM1OM   </omname>
<omvsn>1.1.0</omvsn> 
<xmlvsn>1   </xmlvsn>
<statime>2002.163 17:56:10.220516</statime>
<stotime>2002.163 17:56:10.221547</stotime> 
<staseq>B7C4CA4EDBFE420E</staseq>
<stoseq>B7C4CA4EDC3EB382</stoseq>
<rqsttkn1>USRT002 10105610</rqsttkn1>
<rc>00000000</rc>
<rsn>00000000</rsn>
</ctl> 
<cmd>
<master>SYS3    </master>
<userid>USRT002 </userid>
<verb>UPD </verb>
<kwd>LE              </kwd>
<input>UPD LE TRAN(IAPMDI26) USERID(USRT001)
 SET(LERUNOPTS(RPTOPTS=((ON),NOOVR),RPTSTG=((OFF),NOOVR)))
</input> 
</cmd> 
<cmdrsphdr>
<hdr slbl="MBR" llbl="MbrName" scope="LCL" sort="A" key="1" scroll="NO"  len="8"
dtype="CHAR" align="left" />
<hdr slbl="CC"  llbl="CC"      scope="LCL" sort="N" key="0" scroll="YES" len="4"
dtype="INT" align="right" />
</cmdrsphdr> 
<cmdrspdata> 
<rsp>MBR(SYS3    ) CC(   0) </rsp>  
</cmdrspdata>
</imsout>

Explanation: The UPDATE LE command adds an entry to the LE runtime options table. The entry added by this command defines two filters: user ID and transaction. The transaction is set to IAPMDI26 and the user ID is set to USRT001. The runtime options string for this table entry is RPTOPTS=((ON),NOOVR),RPTSTG=((OFF),NOOVR). The output shows that IMS member SYS3 processed the command with a return code of 0.