|
|
The ENABLE statement notifies the Message Control System (MCS) to allow data transfer between specified output queues and destinations for output, between specified sources and input queues for input or between the program and one specified source or destination for input-output.
cd-name-1 is defined below for each phrase. identifier-1 must refer to a data item of category alphanumeric. literal-1 must be a nonnumeric literal.
The ENABLE statement provides a logical connection between the MCS and the specified sources or destinations.When this logical connection is already in existence, or is to be handled by a means external to this program, the ENABLE statement is not required in this program.No action is taken when an ENABLE statement is executed which specifies a source or destination that is already connected, except that the value in the status key data item indicates this condition.The logical path for the transfer of data between the object programs and the MCS is not affected by the ENABLE statement.
An ENABLE statement that lacks an INPUT, OUTPUT, I-O or TERMINAL keyword is treated according to the format of the description of the cd-name:
INPUT Phrase
INPUT [TERMINAL ]
cd-name-1 must reference an input CD when the INPUT phrase is specified.
When the INPUT phrase with the optional word TERMINAL is specified, the logical paths between the source and all of its associated queues and subqueues are activated. Only the contents of the data item referenced by data-name-7 (SYMBOLIC SOURCE) of the area referenced by cd-name-1 are meaningful to the MCS.
When the INPUT phrase without the optional word TERMINAL is specified, the logical paths for all of the sources associated with the queues and subqueues specified by the contents of data-name-1 (SYMBOLIC QUEUE) through data-name-4 (SYMBOLIC SUB-QUEUE-3) of the area referenced by cd-name-1 are activated.
I-O TERMINAL Phrase
I-OTERMINAL
cd-name-1 must reference an input-output CD when the I-O TERMINAL phrase is specified.
When the I-O TERMINAL phrase is specified, the logical path between the source and the program is activated.The source is defined by the contents of the data item referenced by data-name-3 (SYMBOLIC TERMINAL) of the area referenced by cd-name-1.
OUTPUT Phrase
OUTPUT
cd-name-1 must reference an output CD when the OUTPUT phrase is specified.
When the OUTPUT phrase is specified, the logical paths for all destinations, specified by the contents of the data item referenced by data-name-5 (SYMBOLIC DESTINATION) of the area referenced by cd-name-1 are activated.
TERMINAL Phrase
TERMINAL
cd-name-1 must reference either an input or an input-output CD.If cd-name-1 refers to an input CD, the ENABLE statement is treated as if it specified the INPUT TERMINAL phrase; if cd-name-1 refers to an I-O CD, the ENABLE statement is treated as if it specified the I-O TERMINAL phrase.
WITH KEY Phrase
In the WITH KEY phrase, literal-1 or the contents of the data item referenced by identifier-1 are compared with a password built into the system.The ENABLE statement is honored only if literal-1 or the contents of the data item referenced by identifier-1 match the system password.When literal-1 or the contents of the data item referenced by identifier-1 do not match the system password, the value of the status key item in the area referenced by cd-name-1 is updated.
If the WITH KEY phrase is omitted, the ENABLE statement is honored only if a password is not required by the system.
ENABLE Statement Examples
|
|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.