The following steps and illustrations give an outline example of using the Create Panel Design DDS command to generate DDS for a Toolkit panel design.
You enter the YCRTPNLDDS program, specifying the name of the panel design that is to be processed, and the name of the source file that is to receive the generated source:
The YCRTPNLDDS program displays the design image that has previously been entered using the Toolkit command Work with Panel Design (YWRKPNL).
When the format area has been marked out, F9 is pressed to add field details for the format.
For each format, press F09 to show a second display that allows you to specify the name of the format and the name of the fields on the format. If you have specified that the format is a subfile (F20), both the subfile control and subfile detail records are shown at the same time.
When you press Enter, you are prompted to confirm that the details are correct. When you confirm the prompt the source for the format is generated.
Use the available inquiry facility to browse the names of fields in existing database files. The field inquiry is invoked by specifying a ? in any field name on the YCRTPNLDDS field detail display.
Repeat steps 2 and 3 for each format that is to be produced from the specified panel design. One special type of format, a program message queue subfile, is supported.
Refer to the following listing which shows sample DDS source as would be generated by the YCRTPNLDDS utility. In addition to generating code for the format and field details in the design, the YCRTPNLDDS program also generates all the appropriate supporting code and comments, such as a banner, keywords, and indicator text. Code for a program message queue has also been generated. The default values set up with the YEDTDSNDFT command have been used for the attributes of the code that can be standardized, such as the name of the field reference file, and indicator usage.
|
Copyright © 2014 CA.
All rights reserved.
|
|