• No results found

Adding a Data Item to a Report Frame To add a Data Item to a Report Frame using the Model Directory:

1. Select the Report Frame by clicking on it.

2. Select the Data Item option from the Add menu. The Frame Data Item dialog box is displayed.

In Reports you can define Data Items with the same name in several Frames. In your Report logic, use OF; frame to identify which Data Item is being referenced. If OF; frame is not used, the current Frame is assumed.

Developer allows you to use a Dictionary Data Item in a Report Frame and directly generate a system using Builder from Developer into a Host Runtime environment.

Note: If the Data Item is used as the Ordinate of an Ispec, it cannot be used in a Report Frame.

You can use the Data Item Analysis Design Audit function to find any Ordinates that are used in Report Frames.

When a Dictionary Data Item is added to a Report Frame, it is treated similarly to any Data Item which uses the SAME.AS; property. The main restriction which this imposes is that the Length and Decimals values cannot be modified.

The fields in the Frame Data Item dialog box are:

Name

Key in an identifier for the Data Item. Alphanumeric, maximum length 12.

Review “Naming Elements: Reserved Words” on page 4-1 before naming a new Data Item.

Same As

If you key in the name of an existing Data Item here, Developer will copy all the attributes of the existing item to the new one. Leave this blank if you wish to specify the attributes for the new item.

Edit

Select an edit type definition from the drop-down list. The edit types are:

Type Description

Alpha Alphanumeric (default).

Credit Signed (CR or DR) numeric. Default is CR. Date Date.

Kanji Kanji data. This option is displayed only if you have selected Japanese character set support for your Business Segment and set a 2 byte CLEAR.WHEN character.

Number Unsigned numeric.

Note: For MCP and OS 2200 based Systems, EDIT; W Data Items are treated in the same way as alphanumeric items. For Systems running on UNIX, EDIT; W Data Items require double the amount of internal storage (for example, an item is displayed as length 10 on the screen but requires 20 bytes of storage).

EDIT; W Data Items use the alphanumeric CLEAR.WHEN character, although you may not enter a Hankaku-Katakana character to be your alphanumeric CLEAR.WHEN character.

Length

Key in a numeric value for the length of the Data Item. The default is 1.

The maximum length for a numeric Data Item is 18, and for an alphanumeric Data Item the length of the printline.

Decimals

Key in the number of decimal places (for numeric items only).

Decimal Character

Select a radio button to specify the character to be used as a decimal delimiter in numeric fields. The options are Dot (period), Comma, and Default.

Default means that the value for this field will be the value specified in the Report Options dialog box.

Separator

Select a radio button to specify the type of separator to be used to delimit groups of three digits in whole number values in the Data Item field at run time. The options are Default, None, and Character.

+ Signed (CR or DR) numeric. Default is +. - Signed (CR or DR) numeric. Default is -.

(Blank) Signed numeric. Print nothing if value is zero. X Unsigned numeric. Print nothing if value is zero.

Z Unsigned numeric. Suppress leading zeros, print 0 if value is zero.

$ Signed numeric. Print nothing if value is zero, print floating $ if value is not zero. * Signed numeric. Print asterisks if value is zero.

When you select the Character option, enter the type of character you wish to be used in the box. This character may be any value except alphabetic characters or digits. A value of N in this field means that no separator character is to be used.

Default means that the value for this field will be the value specified in the Report Options dialog box.

Blank When Zero

Select a radio button to specify whether blanks are to be printed when the field contains zeros. The options are Yes, No, and Default.

Default means that the value for this field will be the value specified in the Report Options dialog box.

Floating Sign

Select a radio button to specify whether the sign is to be printed immediately before the first significant digit of the value of the signed Data Item in the Report. The options are Yes, No, and Default.

Default means that the value for this field will be the value specified in the Report Options dialog box.

National Item

Note: This attribute is effective only for MCP based target hosts.

The National Item attribute enables an alphanumeric Data Item to be sorted in a preferred national collating sequence, specified by the CCSVersion field on the Default DASDL Options tab of the Business Segment options for MCP dialog. If you specify any Data Item to be a National item, you must specify a CCSVersion. This attribute may only be applied to an alphanumeric Data Item.

Print If Present

Check this check box to specify that a line is to be printed if the Data Item value is not spaces, i.e. if data is present.

Numeric

Select a radio button to specify whether the numeric item is to be stored as Binary or as Binary Coded Decimal. The options are None, Binary, and BCD.

The BCD (Binary Coded Decimal) data attribute causes individual digits to be stored as their binary equivalents, thus packing two digits per byte. This saves space in Extract files containing numeric data.

Display Attributes

Check the appropriate check box to select these display attributes for the Data Item:

Pitch

Key in a value to specify the number of characters per line for printed Report output. The default is 132.

Control Codes

Click the Control Codes button to open the Control Codes dialog box. Key in a value in the Control Code field, and use the Insert, Change, and Delete buttons to build a list of values. Click the OK button to close the dialog box.

The Control Codes option is used to load Output Control codes into your Model. The control codes are used to associate user-defined highlighting characteristics for Report data or display items that are directed to terminal printers, video devices, or MCP based ROC remote printers.

For host-specific information on terminal printer Reports and the control codes file, refer to the section on Report Operations in:

Unisys Enterprise Application Runtime for ClearPath MCP Administration GuideUnisys Enterprise Application Runtime for ClearPath OS 2200 Administration

Guide

Attribute Description

Bright Highlighting. Under Underlining.

Reverse Reverse video highlighting.

Reset Terminates all current highlighting and color attributes immediately following the Data Item for which this is defined.

Big Prints output in large characters (pitch 66).

This attribute applies only to Reports on AP310, AP300K, AP1300K, and AP2300K terminal printers on MCP based target hosts, and on printers with the appropriate capability on UNIX based hosts. This attribute is not supported in Developer Test.

You must explicitly reset this attribute after its use.

Underscore Only for OS 2200 hosts on compatible terminals. Displays and prints the Data Item with a horizontal delimiter beneath. Underscore can be used with Leftbar, Rightbar, and Upperscore to produce boxes.

Upperscor

Unisys Enterprise Application Runtime for the UNIX Operating System Administration Guide

After defining these fields, click the OK button to return to the Model Directory, or click the Next button to define another Data Item for the Report Frame.