5.7.6 Making an input item a mandatory field
When the specification of a command parameter requires that a certain option be specified, failure to enter that option can cause a problem, such as the occurrence of an error upon the execution of the command. This input item can help prevent an operational error resulting from missing input by mandating the entry of text.
- Example: Sending the user-input value to standard output
-
Open the Action dialog box from the Item Design View, specify the information described in the following table in an item, and then register the item.
Table 5‒16: Information specified for the input item "Abbreviate" No.
Specifics of where each piece of information is defined
Information to be specified
Main window
Where to transition to
Location where the information is specified
1
Item Design View
+--Action dialog box
Basic settings
Command
cpaecho
2
Parameter
${JDS:msg}
3
Execution type
Do not show the window
4
Input item settings
+--Define input items dialog box
Variable name
msg
5
Label
Message to be output
6
Input type
Text box
7
Abbreviate
Select the check box.
The following figure shows what the dialog box looks like when the created item is to be used in a job.
The string entered in the Message to be output text box is sent to standard output. If you attempt to register the item without specifying a string in this text box, the KNAO4004-E dialog box appears, and the registration attempt fails.