27 Work with DREAM Writer

This chapter contains these topics:

27.1 Locating the DREAM Writer Versions List

Oracle supplies the following DREAM Writer versions for JD Edwards World software

  • ZJDE - There can be multiple versions and these versions are defaults. You can typically access these as a version on a menu.

  • XJDE - There can be multiple versions and these versions are examples. You can copy these versions when you create your own versions. An upgrade replaces the XJDE versions.

You can use one of the following methods to locate the DREAM Writer Versions List.

  • Locate Versions List using an application menu selection

  • Locate Versions List using the DREAM Writer system menu

Navigation

From Master Directory (G), choose Address Book

From Address Book (G01), choose Periodic Processing

From Periodic Processing (G0121), choose Reports by Address

To locate Versions List using an application menu selection

Note:

This task demonstrates how to use an application menu selection to run a DREAM Writer report. If you display the DREAM Writer versions list from a menu, you cannot Skip To other form IDs.

Read the caution message and press F6.

To view a different report you must return to the Periodic Processes menu (G0121).

Figure 27-1 Versions List screen

Description of Figure 27-1 follows
Description of "Figure 27-1 Versions List screen"

To locate Versions List using the DREAM Writer system menu

Navigation

From Master Directory (G), choose Hidden Selection 27

From Advanced & Technical Operations (G9), choose Run Time Setup

From Run Time Setup (G90), choose DREAM Writer

From DREAM Writer (G81), choose Versions List

  1. To restrict users from this option, use one of the supplied menu securities (menu masking or advanced menu security).

  2. Enter a program name into the Form field and press Enter.

    Figure 27-2 Versions List (Blank) screen

    Description of Figure 27-2 follows
    Description of "Figure 27-2 Versions List (Blank) screen"

  3. Press F5 to display the Version Owner and the Last Execution Date for each version displayed on the screen. Press F5 to toggle between this view and the Last Change User and Last Change Date view.

    Figure 27-3 Versions List (Detail) screen

    Description of Figure 27-3 follows
    Description of "Figure 27-3 Versions List (Detail) screen"

Field Explanation
Form This form name is the name of the RPG program that controls the function format of this DREAM Writer report. For FASTR and P & E FASTR reports, the form name can normally be any name the users may create.
Version Identifies a group of items that the system can process together, such as reports, business units, or subledgers.

Form-specific information

A specific set of parameters used to populate a DREAM Writer screen.

Description A description of the version that appears next to the version number. The version title is different from the report title.
Last Chg User The user profile of the last user to update that version.
Version Owner The user profile of the user who created the version. The version owner may be a user or a group.

NOTE: The version owner appears in the Version Identification screen. It defaults to the user creating the version but may be changed to a different user or group ID.

Chg Date The date the version was last updated.
Last Execution Date The date the version was last executed.

The DREAM Writer forms allow you to define or change information as follows:

27.2 Reviewing the Five Steps of DREAM Writer

When you add a new report, you generally access five forms (steps) in sequential order.

The DREAM Writer forms allow you to define or change information as follows:

Form Description
1. Version Identification You can display an internal description as well as up to three lines of report heading information.

You may also change the Version Owner and Language of the version.

The following audit fields are also available on this screen: From Version Title, From Version, By User, On Date.

2. Additional Parameters You define parameters for the job, whether you want the cover page to print, and in which job queue you want to process the job.
3. Processing Options Use processing options to control the type of report that the system prints.
4. Data Selection Data selection lets you select the information you want the system to print on the report. You can select records from any field in the based-on file. If you do not specify data, the system prints every record in the file on the report.
5. Data sequencing Use data sequencing to specify how you want the system to sequence data, how the system totals the data, and how the system creates page breaks.

When you change a version, the system displays a form from which you select the functions to which you want to make changes.

The functions you select determine what the system displays.

Function Description
If you added or copied a version The system displays the first DREAM Writer screen, the Version Identification screen, where you can start defining information for your version.
If you changed a version The system displays a window in which it lists all DREAM writer function descriptions. You select the functions you want to display based on the information you want to change.

27.3 Changing or Adding a DREAM Writer Version

Before beginning the five steps of a DREAM Writer, you must choose whether you want to change a current version or add a new version. You can change a version unless the version is set to restrict user access for a report version (Version Security) or you do not have authority through Report Writer Form Security.

As you progress through each step of the DREAM Writer, you can press F12 to return to the previous screen.

Complete the following tasks:

  • Change a version

  • Add a version

To change a version

From (Versions List) Reports by Address

  1. Enter 2 in the field to the left of the version you want to revise.

    The DREAM Writer menu displays.

    Figure 27-4 DREAM Writer Menu screen

    Description of Figure 27-4 follows
    Description of "Figure 27-4 DREAM Writer Menu screen"

  2. Enter 1 in the field to the left of each screen you want to revise.

    Whichever functions you selected display in order.

To add a version

To add a version, you can copy a current version. Security may prevent you from copying certain versions.

From (Versions List) Reports by Address

  1. Enter 3 in the option field of the version you want to copy.

    DREAM Writer Version Copy displays.

    Figure 27-5 DREAM Writer Version Copy screen

    Description of Figure 27-5 follows
    Description of "Figure 27-5 DREAM Writer Version Copy screen"

  2. Do one of the following from DREAM Writer Version Copy:

    • If you designated a DREAM Writer user prefix in your JD Edwards World user preference, the new version displays the prefix followed by an asterisk (*). Press Enter and the system assigns the next available version number.

    • If you designated a DREAM Writer version prefix at the system level in the QJDF data area, the new version displays this prefix followed by an asterisk (*).

    • If you did not assign a DREAM Writer user prefix in your JD Edwards World user profile or at the system level, a single asterisk (*) displays. Press Enter and the system assigns the next available version number, with no prefix.

    • If you want to assign a new prefix, type the prefix and an asterisk (*). The system appends the next version number to your prefix.

    • If you want to assign a version ID that does not contain any numbers or assign your own number, type the information desired and press Enter.

27.4 Working with DREAM Writer Version Identification

The system allows you a total of four report headings to print on the report. They include:

  • The first report heading, which is always the default company name

  • Lines 2 through 4, are the DREAM Writer Optional Report titles

To work with Version Identification

  1. On Version Identification, specify a Version Title for the versions list. It is important to make these titles meaningful.

    Figure 27-6 Version Identification screen

    Description of Figure 27-6 follows
    Description of "Figure 27-6 Version Identification screen"

  2. Specify up to three report titles in the Optional Report Title fields.

  3. Enter a user defined code in the Language field if you are adding an alternative language record

    The system uses the language on screen displays and printed reports.

  4. Press Enter to display the Additional Parameter screen

Field Explanation
Version Owner Initially, the user profile of the user who created the version. The version owner may be a user or a group. Defaults to the user creating the version but may be changed to a different user or group ID. Report Writer Version Security and Report Writer Form Security is checked against this field.
Language A user defined code (01/LP) that specifies a language to use when you display information or print reports. If you leave this field blank, the system uses the language you set up in your user profile. If there is no language in your user profile, the system uses the default, or base language, eg., English.

Before any translations can appear, a language code must exist at either the system level or in your user profile. The language code at the system level or in your user profile must correspond to a language code assigned here to the version.

Form-specific information

A user defined code that specifies the language used for the title of this version. The allowed values are found in system 01, user defined code type LP.

Version Title A description of the version that appears next to the version number, on the version list. The version title is different from the report title.
Optional Report Title The title that appears at the top of the report. It can include up to three lines with 40 characters each. The lines are automatically centered on the report.

27.5 Entering DREAM Writer Additional Parameters

Additional Parameters contains job control parameters. The system displays information about the fields.

When creating a custom DREAM Writer you have greater flexibility using custom files and file record formats. DREAM Writer locates the file that you specify in the Based on File field and retrieves the file record formats on the Additional Parameters screen.

Note:

Changing certain parameters on this screen can cause the report program to halt. Avoid changing Based on File, Based on Member, Format name, and any Open Query File Options without advice from JD Edwards World.

To enter additional parameters

Complete the appropriate fields on the Additional Parameters screen and click Enter.

Figure 27-7 Additional Parameters screen

Description of Figure 27-7 follows
Description of "Figure 27-7 Additional Parameters screen"

Field Description
Based on File Identifies the name of the physical file on which a logical file is based. In DREAM Writer, the based on file refers to the file on which all operations, such as Data Selection, Data Sequence, and so forth are to be done.

Form-specific information

The file on which Data Selection and Data Sequence are done.

Based on Member Specifies the name of a specific member of a physical or logical file. The standard default for all DREAM writer logicals is to be based upon all members of the physical file, member name = *ALL. You may also base the logical on a single member within the physical file by entering the name of the member in this field.
Print Cover Page (Y/N) A code that controls whether to print the cover page for the version.

Y – Print cover page

N – Do not print cover page

For STAR reporting this code controls the printing of a separate specifications report.

Form-specific information

Note: You can use 1 for Y and 0 (zero) for N.

Print Instructions (Y/N) Specifies whether to print the help instructions to accompany the requested report.

Y – Print the help instructions

N – Do not print the help instructions

Note: You can use 1 for Y and 0 (zero) for N.

Mandatory Processing Options A code used to designate whether a data item may optionally be selected by the user.

Form-specific information

A code to designate whether processing options or data selection appear before execution of the job. Values are:

Y – Mandatory display of processing options screen at runtime.

2 – Displays both Processing Option and Data Selection forms at runtime.

3 – Mandatory displays Data Selection screen at runtime.

N – Immediate submission to batch.

Note: You can use 1 for Y and 0 (zero) for N.


Field Explanation
User Exclusive (0/1/2/3/4) This field allows you to restrict user access for a report version.

Values are:

0 – No security. Others have all authority.

1 – Medium security. Others can install, copy, transfer, or run the version, including changing processing options and data selection at runtime. JD Edwards Demo versions are delivered with this security.

2 – Medium to full security. Others can only install or copy the version.

3 – Full security. Others have no authority. This is the default setting when adding a new version.

4 – Medium security-extended. Others can only install, copy, transfer, or run the version - but cannot change processing options and data selection at runtime.

This field corresponds to the User Exclusive field in Report Version Security.

Job Queue The computer waiting line that a particular job passes through. If blank, it defaults to the job queue specified in the user's job description.
Hold on Job Queue (Y/N) A code used to indicate whether to hold the submitted job in the job queue. Values are:

Y – Yes

N – No

Format Name The RPG format name the system uses in the logical file or open query statement.
Output Media Output values are specified as follows:

RPT – Reports, including special forms

IFX – Output to FAX distribution (future use).

Job to Execute If specified, this job will be executed instead of the normal form ID.
File Output Type The DREAM Writer File Type field specifies which type of file will be produced by the DREAM Writer.

Valid values are:

1 – Open Query File (default value)

2 – Standard Logical File. DREAM Writer creates this file, and then deletes it when processing is complete.

3 – Future Use

4 – Standard Logical file (Create & Keep)

Type Report Totaling This code defines the type of totaling to be used by DREAM Writer for this report version. The values are:

1 – Hard coded program totaling; you cannot specify any subtotaling;

2 – Hierarchical totaling that can be specified in the data sequencing screen is supported by the application.

Override Logical File The name of an existing logical file that the DREAM Writer uses when processing a version in place of a dynamically created logical view. You can also specify the version logical file that is created dynamically. Use when File Output type is 4.
Optimize Option (1/2/3) The OPNQRYF Optimize Option specifies which option should be used for return of records from a DREAM Writer or FASTR open query file. The options are:

1 – *ALLIO. To improve the total time to read the whole query. This assumes that all query records are read from the file.

2 – *FIRSTIO. To improve the time it takes to open the query file and get the first batch of records.

3 – *MINWAIT. To improve the response time for reading records from this file.

JD Edwards World recommends that you do not change this field.

Sequential Only (Y/N) This field is used in conjunction with the OPNQRYF function. This field specifies the use of sequential only Yes or No when opening the file. The use of sequential only Yes provides fastest processing of the file but does not allow random access or read prior options in the file. The use of sequential only No processes the file slightly slower but does allow random access and read prior options in the file.

This option should not be changed; follow the examples on the DREAM Writer or FASTR versions provided with a User Id of DEMO.

Open for Output (Y/N) This field is used in conjunction with the OPNQRYF function. It means that the program in this procedure writes new records to the Base File during processing.

This option should not be changed; follow the examples on the DREAM Writer versions provided with a User Id of DEMO.

Open for Update (Y/N) This field is used in conjunction with the OPNQRYF function. It means that the program in this procedure will update existing records in the Base File during processing.

This option should not be changed; follow the examples on the DREAM Writer versions provided with a User Id of DEMO.

Open for Delete (Y/N) This field is used in conjunction with the OPNQRYF function. It means that the program in this procedure will delete (remove) existing records from the Base File during processing.

This option should not be changed; follow the examples on the DREAM Writer versions provided with a User Id of DEMO.


27.6 Working with DREAM Writer Processing Options Revisions

The Processing Options Revisions screen allows you to control the type of report that prints. You can:

  • Select report format

    • Decide which pre-defined template to print

    • Print summary or detail information

    • Print labels or lists

  • Control other options

    • Page breaks

    • Totaling and other special calculations

    • Dates

    • Document Types

You can have Processing Options Revisions display every time you execute the report. Set this option on the Additional Parameters screen in the Mandatory Processing Option field.

You can use *TODAY with Processing Options date selection. *TODAY with + (plus) or - ( minus) retrieves records with previous or future dates. You can only use + or - for a number of days.

Ranges or a list of values are not valid on a single selection value line.

The following illustrates an acceptable entry:

Figure 27-8 Processing Options Revisions (Acceptable) screen

Description of Figure 27-8 follows
Description of "Figure 27-8 Processing Options Revisions (Acceptable) screen"

The following illustrates an unacceptable entry:

Figure 27-9 Processing Options Revisions (Not Acceptable) screen

Description of Figure 27-9 follows
Description of "Figure 27-9 Processing Options Revisions (Not Acceptable) screen"

Each program has a unique set of Processing Options. Some programs contain no processing options.

To work with Processing Options Revisions

  1. On Processing Options Revisions, enter one of the report format template numbers into the blank field on the right.

    Figure 27-10 Processing Options Revisions (Report Template) screen

    Description of Figure 27-10 follows
    Description of "Figure 27-10 Processing Options Revisions (Report Template) screen"

  2. Page down to the next Processing Options Revisions screen.

  3. Type your selections into the blank fields on the right.

  4. Repeat the previous steps until the last Processing Options Revisions screen displays.

  5. Press Enter.

Field Explanation
Form ID The RPG report program name that defines the report template.
Version Identifies a group of items that the system can process together, such as reports, business units, or subledgers.
Display Level The Level of Display field contains a number or letter identifying the level at which menus and processing options are displayed. The levels of display are found in UDC file 00/LD. The Level of Display defined on the processing option is compared to the user's Level of Display from their JD Edwards profile. If the user's Level of Display value is equal to or higher than the value defined for the processing option, the user is able to see and change the processing option.

NOTE: An exception to this is a special hard-coded value of "P" on the processing option Level of Display. If this value is used on the processing option definition, all users running any version may see but not change the processing option.


27.6.1 What You Should Know About

Processing Options Description
Adding Processing Options The @OP array file allows you to enter up to 99 processing options.
Adding Custom Processing Options When you create a custom DREAM Writer, you can add custom processing options. Additionally, you can attach a UDC table to a processing option. If you create the UDC table and attach it to the data item in Data Dictionary but the default glossary, not the UDC table displays when you press F1 on the processing option, you must verify the field name. To do so, enter the data item, ensuring that you right justify the value in the Field Name field. Leave the first two spaces blank to specify the file prefix.

27.7 Working with DREAM Writer Data Selection

Data selection allows you to select the information you want to print on a report. Select records from any field from the Based-On File. You can use Display all Data Fields (F16) in the Based On File and then make your selections. Specify fields you want the system to suppress when a user chooses Display all Data Fields (F16). Use User Defined Code Type FS for System Code 81. If you do not select any criteria, the report prints every record.

The following are examples of customers in the Address Book Master (F0101). The customers display by alpha name, search type, and location.

Address Book Master (F0101)

Alpha Name Search Type Location or Branch
A&D Parts Co. V DEN
Dunlop Const. C NYC
Eason, Walter E DEN
EverReady V NYC
Goldwater's C DAL
MCI V DEN
Office Warehouse V DEN
Olson Payroll C DEN
Xavier Mrktg. V SFO

Examples Alpha Name Search Type Location or Branch
Report of all customers Search Type = C Dunlop Const. Goldwater's Olson Payroll C C C NYC DAL DEN
All addresses associated with the New York branch Location or Branch = NYC Dunlop Const. EverReady C V NYC NYC
All customers associated with the New York branch Search Type = C Location or Branch = NYC Dunlop Const C NYC

The Selection Rel field uses Boolean logic. Use this in conjunction with the data you enter in the Selection Value field. These two fields allow you to select the specific records that print on your report.

If you enter NE in the Selection Rel field, it must be first in your selection list.

Note:

If you are omitting records, this selection must be the first selection field(s). System syntax requires that you define all omit selections before inclusion specifications. Although this is not necessary for OPNQRYF processing, it is necessary for creating logical files (Additional Parameters Output File Type 2 or 4).

Use the Selection Value field with the Boolean logic in the Selection Rel field. The values in these two fields direct the system to select the data you want to print on your report. The following list describes the possible values that you might enter into the Selection Value field:

  • Specific Value selects a record by a specific value. For example, the value could be NYC for New York City. Click Help (F1) from the Selection Value field to see the User Defined Codes screen of valid values.

  • *ALL selects all the records for that field. This is the default.

  • *ZERO or *ZEROES selects null values. For example, used with a relationship of EQ, it would retrieve all records for that field that equal zero.

  • *BLANKS selects blank values. For example, used with a relationship of EQ (equal to), it would retrieve all records for that field that are blank.

  • *TODAY selects all records for that field that have the current day as their dates. The system date is used.

  • *TODAY blank to 9999 selects records based on a run-time calculation of a date by adding or subtracting a number from the current date.

  • *YEAR, *MONTH, *DAY uses the current system value.

  • *RANGE Displays another screen when you have pressed Enter, from which you can select an inclusive range of values:

    • Enter values in the From and Through fields for the range.

    • Use only with the EQ and NE relationships.

    • *VALUE or *VALUES displays another screen when you've pressed Enter, from which you can select up to 45 individual values. Only use with the EQ and NE relationships.

  • *WILDCARD displays another screen, when you press Enter, from which you use a wildcard search string:

    • Only use with the Open Query File.

    • Enter an asterisk (*) to represent one or more characters.

    • Enter an underscore (_) to represent one character.

    • Enter the search string in the first input field. If desired, you may specify multiple strings for the search.

      For the second input field, the first character is used to represent one single position of any valid character, and the second character is used to represent any number of positions of any valid character.

      For example: to find descriptions containing "J D Edwards", the first input field will contain: *J*D*Edwards, and the second input field will contain: _*

    • Double quotes are programmatically placed around the *wildcard value.

27.7.1 Examples: AND / OR Logic

The following shows first an example of AND logic, followed by an example of OR logic.

For both examples, the list of customers displays as they might appear in the Address Book Master (F0101). The customers display by alpha name, search type, and payables:

Address Book Master (F0101)

Alpha Name Search Type Payables (Y/N)
A&D Parts Co. V Y
Dunlop Const. C Y
Eason, Walter E N
EverReady V Y
Goldwater's C N
MCI V Y
Office Warehouse V Y
Olson Payroll C Y
Xavier Mrktg. V Y

Example: AND Logic Example

AND Logic includes only the data that the two, or more, fields have in common as the shaded area indicates.

In the example, you select Search Type EQ (equal to) C AND Payables Y/N EQ (equal to) Y.

Report all customers with Search Type = C AND Payables Y/N = Y:

Alpha Name Search Type Payables (Y/N)
Dunlop Const. C Y
Olson Payroll C Y

Example: OR Logic

OR Logic includes all data of both fields, as the shaded areas indicate.

In the example, the user selects Search Type EQ (equal to) C OR Payables Y/N EQ (equal to) Y.

Report all customers with Search Type = C OR Payables Y/N = Y:

Alpha Name Search Type Payables (Y/N)
A&D Parts Co. V Y
Dunlop Const. C Y
EverReady V Y
Goldwater's C N
MCI V Y
Office Warehouse V Y
Olson Payroll C Y

27.7.2 What You Should Know About

This section provides guidelines for data selection:

  • Using CT or CU: When using CT or CU in the Selection Rel field, you must enter a specific value in the Selection Value field. You cannot insert any of the special parameters, such as *VALUES. To search for multiple values using CT or CU, enter OR statements in the data selection. You can only use the CT values in an Open Query File function.

  • Using * TODAY: You can use *TODAY in the Data Selection in any date field that is in the based-on file. Using *TODAY with + (plus) or - (minus) retrieves records with previous or future dates. You can only use + or - for a number of days. For example:

    • *TODAY - 1: selects records where the date field is equal to yesterday's date.

    • *TODAY through *TODAY + 7: use with *RANGE to select any record where the date field contains a value equal to today's date through a week from today.

    • 12/31/15 *TODAY 01/01/16 *TODAY + 100: when using *VALUE, you can use a combination of date values and *TODAY values. In this example, the system selects records where the date field is equal to 12/31/2015, 01/01/2016, today's date, and today's date + 100 days

  • Using *WILDCARD

    Figure 27-13 Wildcard screen

    Description of Figure 27-13 follows
    Description of "Figure 27-13 Wildcard screen"

    • In the first field enter the search string. For example, enter *LW5511* to find Alpha Names that include those characters. The program will enclose the wild card value in double quotation marks ('xx...'). The default wildcard characters are the _ underline, which you use to denote only one character and the * asterisk which you use to denote one or more characters. The value in this field is similar to the Contains (CT) value in the Selection Rel field, except you must specify multiple strings for the search rather than only one.

    • In the second field you may change the default wildcard characters by entering two characters. The first character accommodates the single character search, representing one single position of any valid character. The second character accommodates multiple character searches, representing any number of positions of any valid characters. If you leave this field blank, the system enters the default _ or * character. You do not need to change the characters from the default unless your search string includes them. For example, you want to find all descriptions containing JD Edwards World. The string in each description can have variations of JD Edwards World. In order to find all of these variations, your wild card value is *J*D*Edwards* (assuming you use the default characters). The system interprets the string as any number of leading characters followed by J, followed by any number of characters, followed by D, followed by any number of characters, followed by Edwards, which is also followed by any number of characters. If you change the value to _J*D*Edwards*, the search is the same except the string can contain only one leading character, as denoted by the _ in front of the J. Double quotes are programmatically placed around the values in the 2 fields.

    • Use an override set of wild card characters, such as % for single character searches and @ for multiple character searches when the string contains one of the default characters. The meaning of each character does not change; it allows you to scan for the strings containing either the _ or the * characters. For example, to search for a string that begins with an * and has Edwards following the *, use *@Edwards@. The system interprets this as the first character is an *, followed by any number of characters, followed by Edwards, followed by any number of characters. The results might include alpha names such as *JD Edwards World or *A.G. Edwards or *Jim Edwards Smith.

    • If you may be scanning a description item that may contain one or the other of the characters '_*'' , then you would want to enter an override set of wildcard characters such as '%@'. The meaning of each character does not change versus the '_*'; it simply allows you to scan for strings containing either the "_" or the "*" character(s).

  • Using *VALUES: When using *VALUE or *VALUES, the following screen displays. Note that the selection value of *VALUES only works with the relationship of 'EQ' (equal) or 'NE' (not equal). When the relationship of "NE" is specified the values list represents values you want omitted from selection.

    Figure 27-14 Values screen

    Description of Figure 27-14 follows
    Description of "Figure 27-14 Values screen"

  • Using *RANGES: When using *RANGE or *RANGES, the following screen displays. You will be prompted for a 'from' and 'through' set of values. The 'through' value must be greater than the 'from' value. The selection value of *RANGE only works with the relationship of 'EQ' (equal) or 'NE' (not equal). When the relationship of 'NE' is specified the range of values represents a range you want omitted from selection. Refer to 'NOTE' above for omitted records.

    Figure 27-15 Ranges screen

    Description of Figure 27-15 follows
    Description of "Figure 27-15 Ranges screen"

    Field Level Help (F1) is not accessible from either the *VALUE or *RANGE forms.

To work with Data Selection

  1. On Data Selection, enter 'Y' in the IN (Include in Selection) field next to the fields you want to include in the report.

    Figure 27-16 Data Selection screen

    Description of Figure 27-16 follows
    Description of "Figure 27-16 Data Selection screen"

  2. Optionally, complete the following fields:

    • Selection Rel

    • Selection Value

  3. Choose Update with Redisplay (F5) to update the Data Selection and re-display the screen.

  4. Enter the values or range and click Enter.

    Note:

    The screen will edit and highlight for duplicate values. All invalid values will need to be cleaned up first before the compare for duplicates can occur. The first Enter will highlight all the invalid values. Once these have been fixed the next press of the Enter key will highlight all of the duplicate values.
  5. Observe the following guidelines:

    • Numeric amounts can now be entered without having to account for the decimal positions. With this change, a message is displayed near the top of the screen to make users aware of the new procedure. An example of numeric data entry is as follows:

      • Formerly, decimal positions implicitly stored in the data files had to be accounted for on data entry. Therefore, a numeric field with two decimal positions, in which a value of one hundred was needed, would have been entered as:1000

      • One hundred, in a numeric field with two decimal positions, may now be entered in any of these forms:

        100

        100.00

        100.

    • Field sizes are validated so if the value entered is longer than the field size an error will occur.

    • If you want to select data that is equal to blanks, you must enter '*BLANKS' in the selection value.

    • If you want to select data on negative numbers, the minus sign must be entered on the left.

    • If you want to select on zeros, you may enter either zeros or '*ZEROS' in the selection value.

    • If you want to select data on an amount field, enter the correct number of significant digits for the decimal position of the field as defined in the Data Dictionary. If the field is a monetary amount, do not enter dollar or cent characters. For example, if you want to select on Open Amount greater than $10,000 then specify 'Open Amount GT 1000000'.

    • The relationship of 'CT' (contains) may only be entered with the OPNQRYF function and only on alphanumeric data fields. The use of 'CU' is the same as 'CT', but ignores upper and lower case differences, while 'CT' works only with upper case letters.

    • If the value to be entered contains blanks (leading, trailing or embedded) you must enclose the value with double quotation marks ("), otherwise simply enter the value.

    • A value for a cost center item will be automatically right justified if the 'CC Edit' field contains a 'Y'. The 'CC Edit' field is in the fold area of the video display. By entering CF04 you can view the fold area of the video display.

    • If a question mark (?) is entered in the selection value and the data field associated with the value specifies the use of a specific record type in Descriptive Titles (specified in Data Dictionary definition for the field), the normal question mark facility will be overridden with the display of a window containing all of the valid Descriptive Title values. Any one valid value may be selected by the user for the selection value.

    • All Cost Center security selection is done automatically whether or not the selection is specified. If your report seems to be missing items of data that you think should be on your report you should review your Cost Center security parameters to see if you may not be authorized to some segments of the data.

    • When displaying all data fields from the 'Based On File' using the function key provided, you may suppress any field in the file (i.e., it will not show when pressing the function key), you can place the field in the Descriptive Titles record, System Code 81, Record Type FS. This is useful to limit the fields shown to the ones that you use for selection and avoid those fields that apply to other applications which have not been installed. Conversely, if you notice that a field is missing, you should check the Descriptive Titles record '81' 'FS'. The missing field is probably in this file.

  6. From Data Selection, choose More Information (F4) to display additional fields with the full set of parameters including:

    • SEQ (Sequence Number)

    • And/Or (Inclusion Logic)

    • Optional (Allowing change to Selection Field)

    • CC Edit (Cost Center Security)

    • Use of "*ALL" selection, and

    • Data name override

    Figure 27-17 Data Selection (More Information) screen

    Description of Figure 27-17 follows
    Description of "Figure 27-17 Data Selection (More Information) screen"

Field Explanation
Selection Rel A code that indicates the relationship between the range of variances that you display. Valid codes are:

EQ – Equal to

LT – Less than

LE – Less than or equal to

GT – Greater than

GE – Greater than or equal to

NE – Not equal to

NL – Not less than

NG – Not greater than

CT – Contains (only allowed in selection for Open Query File function)

CU – Same as "CT" but converts all input data to upper case letters

Form-specific information

For Configuration Management, you cannot use codes CT and CU.

The NE operand must appear first in the selection criteria if you are using NE with the *RANGE or *VALUE parameters and File Output Type is a standard logical file.

Sequence This number is used to control the sequence of Processing Options, DDS Selection values and DDS Key sequences.

The sequence number is relative, meaning that the sequence need not start 001, 002, etc. A sequence of 003 and 005 sorts the report with the 003 field before the 005 field.

The sequence number is useful in changing the order in which data can be selected. If you do change the sequence number of a data item already setup, you will notice when you go back in to data selection that this data item was duplicated rather than moved. This is normal. The program was setup so that you could duplicate data items when using 'Or' logic in data selection.

For Financial Reports, company MUST be sequence 001 in order to access the specific company Automatic Accounting Instruction (AAI) records. If company is not sequence 001, company 00000 AAIs are used.

And/Or A code that determines whether compound data selection logic is based on an A = AND condition or an O = OR condition.

Form-specific information

For valid codes for DREAM Writer Data Selection are:

  • A: And

  • O: Or

And/or permits the development of OR inclusions, such as Payee EQ 'Y' or Employee EQ 'Y' (to get a report of all Vendors and Employees).

Caution: You must ensure that you successfully complete any OR inclusions, else you may select more records than you intended. To invoke OR logic, change the field to an 'O'.

Optional Designates a code that indicates whether a user can select a data item.

Form-specific information

On both the DREAM Writer Data Selection and the Data Sequencing screens, this field is used to control whether the data item can be accessed from the data selection or sequencing screen.

The values are as follows:

  • Y: Yes, the data item can be accessed.

  • N: No, access is not permitted.

Optional allows you to say 'N' which prevents any changes to a predefined field selection. Note: JDE provides initial DREAM Writer versions with preset data field selections. Do not change these selections. CC Edit is the cost center security edit. This is discussed above.

Allow *ALL This code is used to indicate to the DDS Generator whether or not a value of *ALL is allowed for this selection. You should specify 'N' for any fields that require some data selection.

27.8 Working with DREAM Writer Data Sequence Setup

Data sequencing determines the order in which selected records display on the report.

In the following example, the system will list the report lines in alphabetic order by name.

The system lists the report lines in alphabetic order by name. If there are two lines with the same name, the system lists the lines in numeric order according to the address number.

JD Edwards World recommends that you review the program helps prior to changing the data sequence. The Help instructions for certain programs are very explicit that you should not change the data sequence. Some reports have built in sequence assumptions known as level breaks. Changing the sequencing can:

  • Flaw some reports.

  • Cause unpredictable results. This is especially true when running batch jobs that update files.

To work with data sequence setup

  1. On Data Sequence Set-up, change the sequence numbers to list the report lines in the sequence your want.

    Figure 27-18 Data Sequence Set-up screen

    Description of Figure 27-18 follows
    Description of "Figure 27-18 Data Sequence Set-up screen"

  2. Choose Display All Data Fields (F16) to display all Based-On File fields available for sequencing.

  3. Choose More Details (F4), to display additional fields.

    Figure 27-19 Data Sequence Set-up (Details) screen

    Description of Figure 27-19 follows
    Description of "Figure 27-19 Data Sequence Set-up (Details) screen"

    If you change the Type Report Totaling field in Additional Parameters to a value of 2, the system displays two additional columns on the Data Sequence Set-up screen.

    Figure 27-20 Data Sequence Set-up (Additional Columns) screen

    Description of Figure 27-20 follows
    Description of "Figure 27-20 Data Sequence Set-up (Additional Columns) screen"

Field Explanation
Seq This number is used to control the sequence of Processing Options, DDS Selection values and DDS Key sequences.

The sequence number is relative, meaning that the sequence need not start 001, 002, etc. A sequence of 003 and 005 will sort the report with the 003 field before the 005 field.

For Financial Reports, company MUST be sequence 001 in order to access the specific company Automatic Accounting Instruction (AAI) records. If company is not sequence 001, company 00000 AAIs are used.

Description Creates the title on text and reports. It is used in a manner similar to the column description in the query facility. It should be less than 35 characters. Use abbreviations whenever possible. For example:

U/M – Units of measure

YTD – Year-to-date

MTD – Month-to-date

PYE – Prior year end

QTY – Quantity

G/L – General ledger

A/P – Accounts payable

DEPR – Depreciation

Opt Designates a code that indicates whether a user can select a data item.

Form-specific information

On both the DREAM Writer Data Selection and the Data Sequencing screens, this field is used to control whether the data item can be accessed from the data selection or sequencing screen.

The values are as follows:

Y : es, the data item can be accessed.

N : No, access is not permitted.

Asc/Desc A code to designate sorting sequence as ascending or descending. The following codes apply:

A: Ascending

D: :Descending

Note: For use within OPNQRYF command to designate the UNIQUEKEY parameter. The number of key sequence fields specified with the following codes represent the number assigned to the UNIQUEKEY parameter. This parameter eliminates duplicate records for the specified keys.

U: Ascending

V: Descending

Name The name of the field within the file. This name is constructed using the File Prefix specified in the SVR and the data itme name in the data dictionary.
Total Level A level break, not to be confused with Account Master or Business Unit Master level of detail concept (see LDA and LDM respectively). You may specify the level of totaling that you wish to place on this field. Up to 9 levels of totals are permissible. If levels of totals are not specified in an order consistent with the sequence parameters, unpredictable results will occur.

For example :

Level 01 - Department Totals - Sort Sequence 03

Level 02 - Branch Totals - Sort Sequence 02

Level 03 - Division Totals - Sort Sequence 01

Level 10 - Grand Totals

If you specify the same totaling level on more than one data field, you must enter a 1 in the 1st position of total level for all secondary fields.

For example :

Level 01 - Business Unit (description comes from here)

Level 11 - Object (description ignored)

Level 11 - Subsidiary (description ignored)

Page Skip Valid codes are:

Y – Indicates that a new page should be started when the value of this field changes.

S – Indicates printing summarized information on this field level.

When summarization is indicated, you must also enter the level of totaling (refer to the glossary for field "LTOT"). Summarization should only be specified at the lowest detail totaling level (total level = 01).


27.9 Working with DREAM Writer Printer File Overrides

The Printer File Overrides screen controls where and how the report prints. Other Printer File Overrides are set based upon your printer.

To access the Printer File Overrides:

Field Explanation
Print Queue A designation of a specific print queue (e.g. QPRINT).

If left blank, it defaults to the Print Queue specified in your user profile

Hld in Prt Queue (Y/N) This flag is used to determine whether to hold the print file in the print queue rather than printing it.

Valid values are:

Y – hold on the print queue

N – do not hold on the print queue

S – same as Y but print file will be saved on the print queue

T – same as N but print file will be saved on the print queue

Note: You can use 1 for Y and 0 (zero) for N.

UPGRADE PLANNER: If you are entering information into your Upgrade Plan, the following values are valid:

1 – hold on print queue

0 – do not hold on the print queue

Number of Report Copies The number of copies of this report to be printed. One copy is the default.
Save Spool File Indicates whether the spool file should be set to a SAV status after printing.
Char./Inch (10/15) The horizontal printing density. This should be entered as the number of characters per inch and must be supported by your printer.
Form Type A field used in the definition of a report version used to indicate the special forms number to be used in the printing of a particular report.
Lines/Inch (4/6/8/9) The line spacing should be entered as the number of lines per inch and must be supported by your printer. The valid values are:

4 – IBM 5219, 5224, 5225, and 3287 printers only

6 – IBM 5224 printer only

8 – IBM 5224 printer only

9 – IBM 5225 printer only

The standard computer print is 6 LPI and 10 CPI. If you are printing on 8 1/2" x 11" paper, you would specify 8 LPI and 15 CPI.

Location of Page Overflow A field used in the definition of a report version to indicate the number of lines to be printed on a specific screen before page overflow is detected.
Maximum Form Length A field used in the definition of a report version to indicate the length of the form on which the requested report is to be printed. This is expressed in lines per page.
Maximum Form Width A field used in the definition of a report version to indicate the width of the form on which the requested report is to be printed.

The standard form width is 132 characters. If more than 132 is specified, you must compress printing to 15 characters per inch.

Align Page (Y.N) The Align Page field specifies whether the forms must be aligned in the printer before printing is started.
Source Drawer (1/2/3) The Source Drawer field specifies, for 3812, 4214, and 5219 printers, the source drawer (paper feed drawer) to be used when automatic cut sheet feed mode is used. Refer also to data item "FMFD".
Font ID The Font Identification field specifies, for the 3812, 4224, and 5219 printers, the font identifier to be used with this printer device file. Refer to the IBM Control Language Reference Manual for the "FONT" keyword of the "CRTPRTF" command for the valid 3 or 4 character font identifiers.
Form Feed The Form Feed field specifies, for the 4214 and 5219 printers, the form feed attachment to be used by this printer device file. Valid values are:

*DEVD - Default from device description.

*CONT - Continuous forms.

*CUT - Single-cut sheets are used. Each sheet is manually loaded.

*AUTOCUT - Single-cut sheets are semi-automatically fed into the printer. Forms alignment message WILL NOT be issued.

Print Quality The Print Quality field specifies, for the 4214, 4224, 4234, and 5219 printers, the quality of print produced.

The valid values are:

*STD – The output is printed with standard quality.

*DRAFT – The output is printed with draft quality.

*NLQ – The output is printed with near letter quality.

Control Character The Control Character field specifies whether the printer device file will support input with print control characters. Any invalid control characters that are encountered will be ignored, and single spacing is assumed.

The values are:

NONE

No print control characters will be passed in data to be printed.

FCFC

Specifies that the first character of every record will contain an ANSI forms-control character. This value is not valid for externally described printer files; that is, SRCFILE (NONE) was specified on the Create Printer File (CRTPRTF) command. This value is normally used when reprinting spooled files copied to disk using the CPYF command using *LIST.

Graphic Character The Graphic Character Set field specifies the character identifier (graphic character set and code page) for the file. This parameter allows you to print text that is in different character identifier encodings. The value specified on this parameter is used to command the printer device to interpret the hexadecimal byte string by printing the same characters that were intended when the text was generated.
Separator Pages The Separator Pages field specifies the number of system-printed separator pages to print prior to printing the report.
Code Page The Code Page field specifies character identifier (graphic character set and code page) for the file. This parameter allows you to print text that is in different character identifier encodings. The value specified on this parameter is used to command the printer device to interpret the hexadecimal byte string by printing the same characters that were intended when the text was generated. Refer to Graphic Character Set field.
Page Rotation The Page Rotation field specifies, for the 3812, 3816, 3820, 3825, 3827, and 3835 printers, the degree of rotation of the text on the page with respect to the way the form is loaded into the printer.

Valid values are:

*AUTO

Computer Output Reduction is performed automatically if the output is too large to fit on the form.

*DEVD

Use hardware configuration switches to determine page rotation.

*COR

Computer Output Reduction is done.

0

No rotation is done.

90

Rotation of the text is done 90 degrees clockwise from 0.

180

Rotation of the text is done 180 degrees clockwise from 0.

270

Rotation of the text is done 270 degrees clockwise from 0.

User Data User specified data that describes the file.
Spool File Name Report spool file name. For FASTR reports, the name will always be R83410 for reports without rows and R83500 for reports with rows. For World Writer, the name will always be QSYSPRT. For DREAM Writer, the name will default to the Form ID with the first character replaced by an R. This may be overridden. Any other type of report requires an entry in this field.
Output Priority The scheduling priority parameters specify the priority values to be used by the system to determine the order in which spool files will be selected for processing. Each job is given a scheduling priority that is used for both job selection and spooled file output. The job scheduling priority is specified by the JOBPTY parameter in commands like CHGJOBD and CRTJOBD. The priority value may range from 1 - 9 with 1 being the highest priority and 9 being the lowest priority. You cannot schedule a job with authority greater than your own.
Justification The Justification field specifies hardware justification which controls the printing positions of the characters on a page so that the right-hand margin of printing is regular.

Valid values are:

0 – No justification occurs.

50 – Spaces are added to the blanks in the text so that the right margin is more closely aligned but not flush.

100 – The text is expanded by spaces (added where the blanks already exist) until the right margin is flush.

NOTE: This keyword applies only on the AS/400.

Duplex Output A code that determines if and how duplex output printing is used. Valid values are:

N – No duplex printing; print on only one side of the paper.

Y – Yes, duplex print. Print on both sides of the paper with the top of each page at the same end of the paper.

T – Yes, duplex print. Print on both sides of the paper with the top of one printed page at the opposite end from the top of the other printed page.

Printer Device Name Specifies the name of the printer device description.

*SYSVAL - Uses the name of the printer device from the system value QPRTDEV.

*JOB - Uses the printer device associated with the job.

Intelligent Printer (Y/N) Specifies the type of data stream created for a printer file.

Y – Indicates an Intelligent Printer Data Stream.

N – Indicates a SNA Character Stream.

Print Text The Print Text field specifies a character string that will be printed at the bottom of each page of the specified report. A maximum of 30 characters are allowed. Refer to "PRTTXT" keyword of the "OVRPRTF" command on the AS/400.

27.10 Changing the Date Format on DREAM Writer reports

The standard code for DREAM Writer reports uses a 6-digit date and EDTCDE(Y). If your date format is YMD, both leading 00s do not display on the report heading. For example, 9/01/04 displays rather than 09/01/04 for January 4, 2009. User either of the following to change the date format and then recompile the print file. Do not recompile the program.

Print a 4-position year, for example 2009/01/04

In the source code, locate the source line for the report file with the key word DATE. Subtract 2 from the position value (to allow for the extra two digits) and enter (*YY) immediately after the word DATE. For example, if the DATE key word displays as 117DATE, change it to 115DATE(*YY). This retrieves the 4-digit year from System i.

To change the date format with user defined edit codes

You can create an IBM user defined edit code for dates.You can use dashes or slashes in your user defined dates. You must complete this task before compiling the print files. Use the DSPEDTD command for each of the five EDTD codes (5-9) to determine if one exists.

  1. On the command line, enter DSPEDTD 9.

  2. In the Integer mask field, there are either dashes or slashes. Dates that display with dashes contain two spaces between the 0 (zero) and the first dash. If dashes are acceptable, proceed to the last step.

  3. For slashes, enter DLTEDTD 9on the command line.

  4. On the command line, enter CRTEDTD EDTD(9) INTMASK('0 / / ') AUT(*ALL). There are 2 spaces between the 0 (zero) and the first slash, 2 spaces between the slashes, and two spaces after the last slash. If you enter this command by pressing F4, press F10 to access the Authority field. On the command line, enter DSPEDTD 9 to ensure the date format is acceptable.

  5. On the command line, change the EDTCDE(Y) by entering EDTCDE(9) in the DDS source for your reports. Do not make changes to the DATE keyword. Compile the reports and ensure the date format is acceptable.