Writer instructions

Purpose

Use this page to display a banner announcement on each page of the space. Create the Space announcements page in the master space, outside of the Home branch.

You can version the Space announcements page to enable different banners to be published into different target spaces, however, the banner that is displayed in the versioned (master) space itself only displays the most recently-published banner.  If you find errors in the banner area of your versioned space and you are sure the Space announcements page is set up correctly, try publishing the page to the same space.

For more information, see Space-announcements-banners.

Removing

When an announcement is no longer needed, remove the BMC Space Banner macro.

Translation

Localized spaces using the L10n Viewport theme must change the name of this page to Space announcements l10n.  See Configuring-the-Scroll-ViewPort-theme-for-translated-spaces.

Usage

Choose one or none of the following BMC Space Banner macros.

If your space requires another kind of announcement, you can use this page in coordination with your team lead and editors.

When should I use a space announcement banner?

Use the space organization announcement after you change the content from a book-like organization (such as User Manual, Configuration Manual, and Administration Guide) to the product model.

Use the latest version announcement to push traffic to later versions. You do not need to add this to every previous version, but if you have a specific reason that you want users to be aware—for example, Google searches show content for an obsolete version—use the banner to help users find a relevant version.

When an announcement is no longer needed, remove the BMC Space Banner macro.

Space announcement This documentation space provides the same content as before, but the organization of the content has changed. The content is now organized based on logical branches instead of legacy book titles. We hope that the new structure will help you quickly find the content that you need.

CHANGE (C)


The CHANGE command finds a data value to be changed and replaces it with a new data value. It is valid only in Edit. The CHANGE command cannot be used in ZOOM or ZOOMH mode.

Important

Entering CHANGE with no parameters brings up the Change Command window (CHANGE Command window). This gives you access to expanded functionality such as specifying incremental replacement values or performing date and time arithmetic (data aging). You may also select a block of rows with the CC line markers to limit the effective search range for the CHANGE command.

When you specify a column name, you limit the search only to data in the specified column. When you specify positions within the column, you further restrict the search. If no column name is entered, all columns in the table are searched for the data. However, the CHANGE command searches only certain column types based on the data type of the find-string. The following table describes which columns are searched.

Columns Searched by Data Type

Find-string Data Type

Column Type Searched

Character

Numeric

Graphic

Character

x



Numeric

x (substring match)

x (exact numeric match)


Hexadecimal

x


x

Double Byte Character Set (DBCS)

x


x

Mixed

x



By default, the CHANGE command searches both excluded and non-excluded rows as well as both hidden and non-hidden columns. You can limit the search to only excluded rows and hidden columns or only non-excluded rows and non-hidden columns.

Important

If the CHANGE command is issued in row mode, all qualifying data, rather than qualifying data in the displayed row only, is searched.

image2021-3-9_15-5-51.png

Find and Change Strings

The first parameter for the CHANGE command is always the find-string, the second parameter the change-string. Enclose the strings in either single or double quotes when:


    • The find-string or change-string contains blanks
    • The find-string or change-string matches the characters of reserved words, for example NULL, but you only want to change words with these characters in them. Valid reserved words for the CHANGE command are:

ANY (only in find string)

CUR

CURR

CURRENT

CURRENT DATE

CURRENT_DATE

CURRENT TIME

CURRENT_TIME

CURRENT TIMESTAMP

CURRENT_TIMESTAMP

USER

NULL

NULLS


    • The find-string or change-string contains a single quote (’), you must enclose it in double quotes
    • The find-string or change-string contains double quotes ("), you must enclose it in single quotes

find-string

Value to be changed. The find-string value is not case sensitive, unless enclosed in quotes and prefaced by C.

ANY

Change any value. Allows you to change data in a column without any regard to its current value. Specify ANY as the find-string, but do not enclose it in single or double quotes. You must also specify a column name when using the reserved word ANY as a find-string.

If ANY is too general as a wildcard, you may want to substitute picture strings for ANY as the find-string.

P

Specifies a picture string. P’picture’ may contain one or a combination of the following:

=

any character

¬

any non-blank character

.

any undisplayable character

#

any numeric character

-

any non-numeric character

@

any alphabetic character

<

any lowercase alphabetic character

>

any uppercase alphabetic character

$

any special character

Important

Picture strings are accepted only as find-strings. They may not always achieve the expected results. For example, P’-’ locates the blank filler character before an integer. Use ANY instead wherever possible.

change-string

New value. The change-string replaces the find-string. Lowercase characters only change to uppercase when CAPS ON is in effect. See CAPS.

C

Specifies a case sensitive string. Enclose the string in quotes and preface it with a C. For example, if you want to search for a value of SMITH in all capital letters, specify c'SMITH'. To change a value to Smith in mixed case, specify c'Smith'.

X

Specifies that the value is in hexadecimal format. When specifying a hexadecimal value, you must enclose the find and change strings in single or double quotes.

NULL

Specifies a search for null values or a change to null values.

column-name

Name of the Db2 column in which you want to restrict the change. You can enter a partial column name. If more than one column name matches the partial name, a window displays all matching column names, allowing you to select one. The following figure shows a sample column selection window. See Partial-Column-Names for more information.

Column Selection window

image2021-3-9_15-9-36.png

Start position

Starting position within the specified column name in which you want to restrict the change. If only one position is specified, it is processed as a starting position.

End position

Ending position within the specified column name in which you want to restrict the change. If only one position is specified, it is processed as a starting position.

Important

The Start/End positions are valid only for string and date/time fields.

Modifiers

Specify one of the following parameters to modify the search order.

NEXT

Default. Starts a search for the next occurrence of the find-string at the beginning of the first line being displayed (if the cursor is still in the COMMAND field), or at the cursor location (if the cursor is in the data part of the display). If you specify both a column name and the NEXT parameter, the next occurrence in the specified column of the find-string is changed.

ALL

Changes all occurrences of the find-string starting at the beginning of the first line of the data and continues to the bottom of data. If you specify both a column name and the ALL parameter, all occurrences in the specified column of the find-string are changed.

PREV

Starts a search for the previous occurrence of the find-string starting at the end of the line preceding the first line being displayed (if the cursor is still in the COMMAND field), or at the cursor location (if the cursor is in the data display). If you specify both a column name and the PREV parameter, the previous occurrence in the specified column of the find-string is changed.

FIRST

Starts a search for the first occurrence of the find-string starting at the beginning of the first line of the data and continues until the string is found or the bottom of data is reached. If you specify both a column name and the FIRST parameter, the first occurrence in the specified column of the find-string is changed.

LAST

Starts a search for the last occurrence of the find-string starting at the end of the last line of the data and continues backward until the string is found, or the top of data is reached. If you specify both a column name and the LAST parameter, the last occurrence in the specified column of the find-string is changed.

Rows/Columns to Search

Specify one of the following parameters to determine which rows or columns to search.

Blank

Default. Searches for the string in all rows and columns.

NX

Searches for the string only in those rows that are not excluded and columns that are not hidden.

X

Searches for the string only in those rows that are excluded and columns that are hidden.

CHANGE Command Window

The CHANGE command window (see the following figure) prompts you for the information required to complete your change request. It is only displayed when you enter CHANGE with no parameters. Use the CHANGE command window to specify special change requests, such as replace ANY information in a column or increment the change string to create unique values. After you provide the required change information, press Enter on this screen to process the change and exit the window. Press END to cancel the CHANGE command and exit the window.

CHANGE Command window

image2021-3-9_15-11-50.png

Find and Change Strings

For general description see Find and Change Strings.

Find-string

Value to be changed.

To specify any value, enter the reserved word ANY. ANY replaces any value in the specified column positions regardless of its current content.

Important

When entering ANY you must also identify the column for which values are to be replaced.

Change string

New value (maximum 40 characters, including quotes).

When you also fill in a value in the Increment by field, the change string represents the initial value that is to be incremented. For example: 100 is the change string for the Employee Number. This value is used as the first replacement string. Then the Increment by value, for example 10, modifies the initial value. Thus, the following Employee Number values of a multiple change are 100 (initial), 110, 120, 130, etc. The new value must fit the required format and length for the selected column, or you receive an error message.

Increment by

Increment to modify alphabetic (a through z) and numeric characters (0 through 9) of the change string. Other characters (e.g %, #, =, etc.) are not changed by the increment value. The default increment is blank (no increment). The increment is always a numeric value. A negative increment, for example (-1), is valid and decreases from the initial value (100 initial, 99, 98, 97, etc.).

Positive increment is assumed and must be entered without a sign.

The column data type determines how increments are interpreted. Date and time actually have additional pop-up displays (see Timestamp Pop-up WindowTime Pop-up Window, and Date Pop-up Window).

Specify an increment when you want to change a range of records with one CHANGE command and avoid duplicate change strings.

When the change string is an alpha character, for example A, and the increment is 2, the resulting string is A, C, E, G, I, K, etc.

When the change string is alphanumeric, for example AB3, and the increment is 4, the resulting string is AB3 (initial), AB7, AC1, AC5, AC9, AD3, etc.

Alphabetic and numeric data values wrap when they reach the maximum allowable value for the column, starting over at 0 (numeric) or A (alphabetic). Alphabetic data includes all letters of the alphabet in upper and lower case. Integers wrap at their maximum values, for example, increment -1 wraps from -2147483648 to 2147483647, increment 1 wraps from 2147483647 to 0.

Important

Unless the column data type is CHAR or VARCHAR the Increment operand and Start/End Position operands are mutually exclusive.

Column name

Name of the Db2 column in which you want to restrict the change. Entering an asterisk (*) presents a list of columns from which you select a column name. You can also enter partial column names. If more than one column name matches the criteria, a window displays all matching columns, allowing you to select one. See Column Selection window for a sample window. If you do not specify a column name, the change is applied to all columns.

Important

You must enter a column name whenever you execute a CHANGE ANY or CHANGE with an increment value.

The column data types DATE, TIME, TMSTMP, and TMESTZ actually have additional pop-up displays to perform date and time arithmetic or incremental changes (see Timestamp Pop-up WindowTime Pop-up Window, and Date Pop-up Window).

Start position

Starting position within the specified column name in which you want to restrict the change. If no end position is specified, the search continues until the end of the column.

End position

Ending position within the specified column name in which you want to restrict the change. If no start position is specified, the search begins at the beginning of the column.

Important

The Start/End positions are valid only for string and date/time fields. Unless the column data type is CHAR or VARCHAR the increment operand and Start/End position operands are mutually exclusive.

Modifier

NEXT is the default, unless you have specified a search range with the CC line markers. In that case, ALL is the default within the range. See Modifiers for an explanation of valid values.

Rows/Columns to search:

See Rows/Columns to Search: for an explanation of valid values.

Timestamp Pop-up Window

When the column data type in the CHANGE command window is TMSTMP or TMESTZ, the Timestamp Specification window (see the following figure) displays. You can either apply increments to the change-string for rapid data generation or perform date and time arithmetic (add or subtract) on the find-string for data aging purposes. After you provide the operator and increment information, press Enter on this screen to process the change and exit the window. Press END to cancel the CHANGE command and exit the window.

Important

Date and time increments always result in valid Db2 date and time values. For example, if you use a 1 month increment for a starting date of 1998/01/31, the resulting dates are 1998/01/31, 1998/02/28, 1998/03/28, etc.

CHANGE Command Window with Timestamp Increment

image2021-3-9_15-15-29.png

Find string

Prefilled with the value you specified in Change Command window. You are allowed to change the prefilled Find string.

Change string

Blank or prefilled with the value you specified in Change Command window.

The change-string must be blank, if you want to perform data aging you entered a + or - character in the Operator field.

The change-string must be a complete timestamp value if you want to generate incremental timestamp value(s) (Operator field is blank).

Column name

Prefilled with the value you specified in Change Command window. To change the column press END to return to the Change Command window.

Operator

Determine how the date and time should be changed.

Blank

The change-string is incremented as specified by the increment values, after the initial replacement when multiple records are replaced with the same CHANGE command.

+

The increment values are added to the find-string, for example, 1998 plus year increment 13 results in 2011. When adding dates, they are added in the order YEARS + MONTHS + DAYS.

-

The increment values are subtracted from the find-string, for example, 1998 minus year increment 13 results in 1985. When subtracting dates, they are subtracted in the order DAYS - MONTHS - YEARS.

Important

  1. Date Arithmetic
    When rolling over dates (resulting year is greater than 9999, or less than 1), File-AID for Db2 issues a warning and quits the CHANGE command.
  2. Incremental
    When rolling over dates (resulting year is greater than 9999), File-AID for Db2 continues and starts again at 1, for example 9985, 9995, 0001, 0011, etc.

Month Increment

Increment to modify the month portion of the timestamp. The default increment is blank (no increment). Enter the desired month increment (1 to 99).

Day Increment

Increment to modify the day portion of the timestamp. The default increment is blank (no increment). Enter the desired day increment (1 to 999).

Year Increment

Increment to modify the year portion of the timestamp. The default increment is blank (no increment). Enter the desired year increment (1 to 9999).

Hour Increment

Increment to modify the hour portion of the timestamp. The default increment is blank (no increment). Enter the desired hour increment (1 to 99).

Minutes Increment

Increment to modify the minutes portion of the timestamp. The default increment is blank (no increment). Enter the desired minutes increment (1 to 99).

Seconds Increment

Increment to modify the seconds portion of the timestamp. The default increment is blank (no increment). Enter the desired seconds increment (1 to 99).

Microseconds Increment

Increment to modify the microseconds (precision) portion of the timestamp. The default increment is blank (no increment). Enter the desired precision increment (1 to 999999).

Modifier

Prefilled with the value you specified in Change Command window. You are allowed to change the prefilled Modifier value.

See Modifiers for an explanation of valid values.

Rows/Columns to search

Prefilled with the value you specified in Change Command window. You are allowed to change the prefilled search restriction.

See Rows/Columns to Search: for an explanation of valid values.

Date Arithmetic and Increment Example

The following table is an example that illustrates the difference between date arithmetic and incremental.

Date Arithmetic Example

Date Records

To Age by 13 Years

Results

1998-12-31

1999-12-31

1985-12-31

1978-02-26

1994-08-01

1987-03-31

Enter ANY in the Find string

Blank out the Change string

Enter + in the Operator field

Enter 13 in the Year Increment field

Enter ALL in the Modifier field

Press Enter

2011-12-31

2012-12-31

1998-12-31

1991-02-26

2007-08-01

2000-03-31

Date Increment Example

Date Records

To increment by 13 Years

Results

1998-12-31

1999-12-31

1985-12-31

1978-02-26

1994-08-01

1987-03-31

Enter ANY in the Find string

Enter 2010-12-31 in the Change string

Blank out the Operator field

Enter 13 in the Year Increment field

Enter ALL in the Modifier field

Press Enter

2010-12-31

2023-12-31

2036-12-31

2049-12-31

2062-12-31

2075-12-31

Time Pop-up Window

When the column data type in the CHANGE command window is TIME, the Time Specification window (see the following figure) displays. You can either apply increments to the change-string for rapid data generation or perform date and time arithmetic (add or subtract) on the find-string for data aging purposes. After you provide the operator and increment information, press Enter on this screen to process the change and exit the window. Press END to cancel the CHANGE command and exit the window.

Important

Date and time increments always result in valid Db2 date and time values. For example, if you use a 1 month increment for a starting date of 1998/01/31, the resulting dates would be 1998/01/31, 1998/02/28, 1998/03/28, etc.

CHANGE Command Window with Time Increment

image2021-3-9_15-18-21.png

The Time Specification window is similar to the Timestamp Specification window, however, it only includes the increment fields for hour, minutes, and seconds. See Timestamp Pop-up Window for a description of the fields.

Date Pop-up Window

When the column data type in the CHANGE command window is DATE, the Time Specification window (see the following figure) displays. You can either apply increments to the change-string for rapid data generation or perform date arithmetic (add or subtract) on the find-string for data aging purposes. After you provide the operator and increment information, press Enter on this screen to process the change and exit the window. Press END to cancel the CHANGE command and exit the window.

Important

Date and time increments always result in valid Db2 date and time values. For example, if you use a 1 month increment for a starting date of 1998/01/31, the resulting dates would be 1998/01/31, 1998/02/28, 1998/03/28, etc.

CHANGE Command window with Date Increment

image2021-3-9_15-19-30.png

The Date Specification window is similar to the Timestamp Specification window, however, it only includes the increment fields for month, day, and year. See Timestamp Pop-up Window for a description of the fields.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*