Creating SMIT help information for a new task
System Management Interface Tool (SMIT) helps are an extension of the SMIT program.
They are a series of helps designed to give you online information about the components of SMIT used to construct dialogs and menus. SMIT helps reside in a database, just as the SMIT executable code resides in a database. SMIT has two ways to retrieve SMIT help information:
Each of these methods provides a different way to retrieve SMIT helps from the SMIT help database.
Man pages method
Prerequisite tasks or conditions
Create a new SMIT task that requires help information.
Procedure
- Using any editor, create a file and enter help text inside the file. The file must adhere to the format specified by the man command. Put only one set of help information in a file.
- Give the help text file a title as specified by the man command.
- Place the help text file in the correct place in the manual subdirectory.
- Test the newly created file to ensure it works using the man command.
- Locate the file that contains the ASCII object stanza file format for the new SMIT task.
- Locate the help descriptor fields in the object stanzas of the file.
- Set the help_msg_loc help descriptor field equal to the
title of the help text file. The title for the text file is also
the parameter to pass to the man command.
For example:
This example executes the man command with the xx title string name.help_msg_loc = "xx", where "xx" = title string name
- Leave the rest of the help descriptor fields empty.
Message catalog method
Prerequisite tasks or conditions
Create a new SMIT task that requires help information.
Procedure
- Use any editor to create a file and enter help messages inside
the file. The .msg file must adhere to the format specified
by the message facility.
Note: An existing .msg file can also be used.
- Give each help message a set number (Set #) and a message number (MSG#). This allows the system to retrieve the proper help text.
- Use the gencat command to convert the .msg file into a .cat file. Place the .cat file in the correct directory according to the NLSPATH environment variable.
- Test the help messages using the dspmsg command.
- Locate the file that contains the ASCII object stanza file format for the new SMIT task.
- Locate the help descriptor fields in the object stanzas of the file.
- For each object stanza, locate the help_msg_id help descriptor
field. Enter the Set# and Msg# values for the message in the .msg file.
These values must adhere to the Messages Facility format. For example,
to retrieve message #14 for set #2, set:
help_msg_id - "2,14"
- Set the help_msg_loc help descriptor field to the filename of the file containing the help text.
- Leave the other help descriptor fields empty.