Keyword | Description |
---|---|
PROGram(name) | Names the program. Mandatory. name can be up to eight characters in length. Acceptable characters are A through Z, 0 through 9, $, @ and #. Do not specify a program name starting with DFH, as Mainframe Subsystem Support (MSS) uses that prefix for system programs. |
Group(groupname) | Names the group the program belongs to. Mandatory. groupname can be up to eight characters in length. Acceptable characters are A through Z, 0 through 9, $, @ and #. Do not specify a group name starting with DFH, as MSS uses that prefix for system groups. |
DEscription(text) | Describes the program. Optional. text can be up to 60 characters in length, with no restrictions except that if you use a left parenthesis you must ensure that there is a matching right parenthesis. |
Language(Cobol|Assembler|Pli) | Specifies the programming language that the program is written in. |
RESident(No|Yes) | Specifies whether the program is permanently resident in memory:
No: The program is removed from memory when the tasks using it have completed Yes: The program remains in memory throughout the session |
Status(Enabled|Disabled) | Specifies whether the program is accessible when the region starts up:
Enabled: the program is accessible when the region starts up. Disabled: The program cannot be used until it is specifically enabled using the transaction CPMT. |
RSl(keys) | (RSl stands for Resource Security Level.) Specifies one or more indicators, each corresponding to one of the 24 resource keys for this program. A user has access to a particular resource only through a matching key as defined in his sign-on table entry. To toggle a key on you specify its number here. By default all keys are toggled off. You code the keys as a comma-separated list of individual numbers and ranges separated by hyphens. For example, to toggle the keys 1 to 5 and 10 on, code RSl(1-5,10). |
Remote Attributes | |
REMOTESystem(name) | Applicable only for remote programs. Specifies the ID of the remote system that holds the file. This must correspond to either:
|
REMOTEName(name) | Applicable only for remote programs. Names the remote file. Necessary only if it differs from the local program name. |
Transid(name) | Applicable only for remote programs. Specifies the name of the transaction that the remote system is to attach and under which it is to run the remote program. If not specified, the remote system executes the program under one of the supplied mirror transactions CSMI and CVMI. If supplied, name must be up to four characters in length |
Micro Focus Extensions | |
_MOduletype(Program|Data) | Specifies whether the resource being defined is an executable program or a data table:
Program: Resource is an executable program Data: Resource is a data table. It can be loaded via an EXEC CICS LOAD PROGRAM command. Any attempt to use EXEC PROGRAM LINK or EXEC PROGRAM XCTL will fail with a PGMIDERR condition |
_Wssavestate(No|Yes) | Specifies whether or not a program's working storage should be saved in its initial state so that it can be restored if the same program is called again at a lower level |
_MAxcommarea(size) | Specifies the amount of storage to be allocated to the communications area (COMMAREA) to allow CICS to behave like mainframe CICS. The size is in the range 0 through 32767. The effect of this is that when a program is passed a COMMAREA smaller than the COMMAREA defined in the program, the passed COMMAREA is automatically extended in length to fill the defined space. This overrides the COMMAREA override value held in the SIT. |
Example
DEFINE PROGRAM(TEST001) GROUP(TESTGRP) LANGUAGE(COBOL) RESIDENT(NO) STATUS(ENABLED) RSL(01,03,06,08-14,16,19-21) DEFINE PROGRAM(TEST002) GROUP(TESTGRP) DESCRIPTION(Sample PPT program) LANGUAGE(ASSEMBLER) RESIDENT(NO) STATUS(DISABLED) DEFINE PROGRAM(SAMP001) GROUP(SAMPGRP) DESCRIPTION(Sample PPT with MF extensions) LANGUAGE(COBOL) RESIDENT(NO) STATUS(ENABLED) _MODULETYPE(PROGRAM) _WSSAVESTATE(NO) _MAXCOMMAREA(0) DEFINE PROGRAM(DATA001) GROUP(SAMPGRP) DESCRIPTION(Sample PPT for data table) LANGUAGE(ASSEMBLER) RESIDENT(NO) STATUS(ENABLED) _MODULETYPE(DATA) _WSSAVESTATE(NO) _MAXCOMMAREA(0)