Business Business Information Information
ServerServer
a.k.a. MAPPERa.k.a. MAPPER
2
MAPPERMAPPER
Manual Functions Course• Course Content
– Overview of MAPPER• Database Structure• Report Structure• Command Structure
– How to use the Commands– Commands– Graphics– PCME– Where do you go from here?
3
• MAPPER is an acronym. It stands for: MAintaining, Preparing, Producing Executive Reports
• We prefer to think of it as:
MAPPERMAPPER
What is MAPPER?
4
MMost
AAmazing
PProgramming
PProduct
EEver
RReleased
MAPPERMAPPER
What is MAPPER?
5
• MAPPER is:– A database– A powerful data manipulation engine– A report processing tool– An end user data manipulation tool– An application development tool– An integration tool for disparate data sources– An End User Computing Environment
MAPPERMAPPER
What is MAPPER?
6
• Based on User-ID.
• Administered by a MAPPER Coordinator
• User-ID and Department together determine access to applications and data.
• Uniquely identified user
• 6-character password
MAPPERMAPPER
Security
7
• Departments are numbers:– Tend to correspond to Company departments
• Who require the use of common data to obtain information
• Whose users use the same applications against the same data
• May have access to more than one cabinet
• Control access to applications and data
MAPPERMAPPER
Department
8
• Identified by a number
• Controls access to applications and data– Examples
• Purchasing – Dept. 24
• Human Resource – Dept. 9
• IT – Dept. 4
MAPPERMAPPER
Department
9
MAPPERMAPPER
Signon Security
10
MAPPERMAPPER
Signon SecurityUp to 11 Characters
Numeric Only – This is the department #
Optional - Up to 6 characters
11
MAPPERMAPPER
Database
• Cabinets
• Drawers
• Reports
12
• Read/Write security– Odd cabinet numbers are read only– Even cabinet numbers are read/write
• 1 unsecured/common drawer (A)
• 8 secured drawers (B – I)
• Common report information generally makes up a drawer
MAPPERMAPPER
Cabinets
13
• The Zero report determines report headers, formats and editing
• Reports can be up to 998 characters wide on NT and Unix, and 504 on 2200
• Reports can contain a million lines on NT and Unix, and 262k on 2200
• You can set up display formats for all reports in a drawer (26 formats max.)
• Line one of a report has some very important information – creation date, last update date, who updated the report.
MAPPERMAPPER
Report Structure
14
• Two types of reports – temporary (results) – permanent
• Reports can have read and write passwords applied
• Report line type is in character position 1– Line types can be any character– Typical line types are period, tab, & asterisk
• Reports may utilize different line types to display data in different formats
MAPPERMAPPER
Report Structure
15
• Executed on data to create a result.
• Can be accessed via fast access method or long method
• Use the headers of the report as their gateway into the data.
• Use options to fine tune the output result.
MAPPERMAPPER
Commands
16
• Commands can be entered– on the control line of a report or result.
– At the HOME position of the idle logo. (fast access method)
• Executing a command produces a temporary report called a "result".– You can recognize a result by the word "RESULT" in
the control line
– A result is usually displayed in a different color.
MAPPERMAPPER
Commands
17
MAPPERMAPPER
Commands end user interface (Mask)
Options go Here
Command Parameters
Type of Command
Report headers from report 2B0
18
• Display Report• Update Report• Add Report• Delete Report• Duplicate Report• Replace Report• Add Line in Report• Delete Line in Report• Duplicate line in Report• Yank line in Report
• Append line in Report• Put line in Report• Index• Search• Find• Locate• Locate and Change• Totalize• Sort• Match
MAPPERMAPPER
Commands
19
• Update Commands– Search & Match
• Extract
• Delete
• Update
• Print• View• Arithmetic
• Send Information– Send a Report
– Send to a User
– Ok
• Count• Calculate• Graphics
MAPPERMAPPER
Commands
20
• To display a report in the current cabinet:– Enter the report number followed by the
drawer type on the control line – Press Enter (Transmit).
• Example:2B (Press Enter)
MAPPERMAPPER
Displaying a Report
21
• To display a report in a Cabinet different than the one you are currently in:– Enter the report number, followed by the drawer type,
followed by the cabinet number on the control line
– Press Enter (Transmit).
• Example:2B60 (Press Enter)
• To do this you must have permission to access this cabinet.
MAPPERMAPPER
Displaying a Report
22
• Updating a report means you are manually changing data in a report. This is sometimes called an SOE (Start of Entry) update.– Display the report– Position the cursor to the location in a report where
you want to change the information– Type in the new information– Press enter (transmit)– If you change your mind after pressing enter you can
press the "undo" button. (Function key 9) (You get only one level of undo.)
MAPPERMAPPER
Updating a Report
23
• This adds a new report to the specified drawer, based on the headers in the zero report.
• There will be no data in the new report.– Command syntax is AR– From the control line type in AR press enter– Answer the questions and press enter.– Or from the control line type in AR followed by a space followed by
the letter of the drawer you want to add a report in and press enter.– Answer the questions and press enter.– The new report will then be displayed for you.– This is the next available report in drawer
• Example: AR B
MAPPERMAPPER
Adding a New Report
24
• To delete a report you must have the report on display and you must be the last person to have updated the report.– Command syntax is DR – Type DR on the control line and press Enter – Answer the questions and press Enter.– Fast access method is to type in DR followed by a
space, followed by report number, report type, (optional) report cabinet number, and press Enter.
• Example:DR 3B0
MAPPERMAPPER
Deleting a Report
25
• This command copies an existing report or result into a new permanent report.– Command syntax is XR – Type XR on the control line and press Enter– Answer the questions and press Enter– With a report or result on display type XR on
the control– The next display shows the duplicated report
MAPPERMAPPER
Duplicating a Report or Result
26
• This command saves the current report or result on display to a specified location.– Command syntax is REP – With a report or result on display type REP on the control line
and press Enter.– Answer the questions and press Enter– With a report or result on display, type REP on the control line
followed by a space, followed by a report number, and report type and press Enter.
• Example:REP 3B0
• Warning: the REP command will overlay an existing report without warning.
MAPPERMAPPER
Replacing a Report or Result
27
• Create a report in location 10B It must be a copy of the information in 2B How would you accomplish this?– What command(s) would you use?
MAPPERMAPPER
Problem
28
• Display 2B0• Replace 2B0 into 10B0
MAPPERMAPPER
Answer
29
• Start-of-Entry (SOE) character ►– F3 function key– CTRL+O– 5 on the numeric key pad
• Add lines– ►]n+ (n = Quantity)– Example: ►]4+ adds 4 lines below the current line– Highlight lines on screen.
CTRL+
MAPPERMAPPER
Modifying a Report
CTRL + or CTRL – or CTRL * Must use numeric key pad
30
• Delete lines– ►]n–– Example: ►]4– deletes 4 lines, starting with the current line– Highlight lines on screen.
CTRL+–
• Duplicate lines– ►]nx– Example: ►]4x duplicates the current line 4 times– Example: ►]2x5 makes 2 copies of the next 5 lines, starting
with the current line– Highlight lines on screen.
CTRL+*
MAPPERMAPPER
Modifying a Report
31
• Do not practice changing a permanent report.• Use a result (a temporary report).• Display report 2B0• Type the command RSLT and XMIT• This creates a result that you can modify as much
as you like.• Release when finished.
MAPPERMAPPER
Important Tip
32
ExampleMake a result from a permanent report
33
ExampleAdd lines
►]3+
Command can go anywhere on this line. Horizontal position does not matter
34
ExampleAdd lines
CTRL+
Highlight can go anywhere on the first line. Horizontal position does not matter
These two examples are functionally equivalent.
35
ExampleDelete lines
►]2-
Command can go anywhere on this line. Horizontal position does not matter
36
ExampleDelete lines
CTRL–
Highlight can go anywhere on the first line. Horizontal position does not matter
These two examples are functionally equivalent.
37
ExampleDuplicate lines
►]1x
Command can go anywhere on this line. Horizontal position does not matter
38
ExampleDuplicate lines
CTRL*
Highlight can go anywhere on the first line. Horizontal position does not matter
These two examples are functionally equivalent.
39
• Yank lines– ►]ny– Example: ►]4y yanks 4 lines, starting with the current line– Highlight lines on screen.
CTRL+Y
• Put lines– ►]p– Example: ►]p puts the current buffer after the current line – Put cursor on line "before"
CTRL+P
MAPPERMAPPER
Modifying a Report
40
• This command takes a copy of a line(s) and place it in a buffer or holding place.– Command syntax is ►]QyB
• Q = Quantity of lines to yank
• B = Buffer number to place the lines in. Up to 100
– Position the cursor on the first line you wish to yank.
– Place an soe, followed by a bracket, Quantity of lines to yank, a y, number of the buffer you want to put the lines in, press Enter.
– Example
MAPPERMAPPER
Yank line(s) from a Report or Result
41
Example Yank lines
►]3y command can go anywhere on this line. Horizontal position does not matter
These two examples are functionally equivalent.
CTRL y
Highlight can go anywhere on the first line. Horizontal position does not matter
42
Example Put lines
►]p command can go anywhere on this line. Horizontal position does not matter
Yanked lines inserted
43
ExamplePut lines
CTRL p
Highlight can go anywhere on the first line. Horizontal position does not matter
These two examples are functionally equivalent.
Yanked lines inserted
44
Example Menu Bar
All of the CTRL _ commands can also be done using the menu bar.
45
MAPPERMAPPER
Yank line(s) Buffer
46
• The Yank command always overwrites the buffer specified.
• The default buffer is blank valid buffer numbers are 1-100
• Buffer will remain valid until one of two things happen:– The buffer is overwritten– You do a release screen command
MAPPERMAPPER
Yank line(s) Buffer
47
• This command takes a copy of a line(s) and append it to the line(s) already in a buffer.– Command syntax is ►]QaB
• Q = Quantity of lines to yank
• B = Buffer number to append the lines in. Up to 100
– Position the cursor on the first line you wish to yank.
– Place an soe, followed by a bracket, Quantity of lines to yank, an a , number of the buffer you want to append the lines in, press Enter.
– Example
MAPPERMAPPER
Append line(s) from a Report or Result
48
MAPPERMAPPER
Append line(s) Buffer
49
• This command takes a copy of the contents of the buffer specified and put it into a report or result.– Command syntax is ►]pB
• B = Buffer number to place the lines in. Up to 100
– Position the cursor on the line before where you wish to place the contents of the buffer.
– Place an soe, followed by a bracket, a p, number of the buffer you want to put the lines in, press Enter.
– Example
MAPPERMAPPER
Put line(s) into a Report or Result
50
MAPPERMAPPER
Put line(s) in Report or Result
51
• Create a report in location 11B0, containing:– The first 20 lines of 10B0– Lines 25, 30, 35 from 2B0– 4 copies of line 34 from 10B0, but with a
status code of "XX" place at the end of 11B0
• What command(s) would you use?
MAPPERMAPPER
Exercise
52
• Display 10B0 • Append line 34• Put buffer after line 20• Update the status code
field to XX• Duplicate the last line 3
times
MAPPERMAPPER
Answer• Display 10B0• Replace 10B0 into
11B0• Delete all lines after
line 20• Display 2B0• Yank line 25• Append line 30• Append line 35
53
• Shows a list of the reports in a drawer, along with the total number of lines in the drawer.
• It shows total number of reports and how many lines are contained in each report.
• By specifying the number of lines to display, you may also see the X number of lines of each report as part of the final result.
MAPPERMAPPER
Index Command
54
• The Index command syntax is:– Syntax = I nD
• n = the number of lines to display from each report. If left blank the headers from each report will be displayed.
• D = Drawer
– Example i 1B0
MAPPERMAPPER
Index Command
55
Index Example
i 1B0 – first line of each report in drawer B0
56
Index Example
i 3B0 – first 3 lines of each report in drawer B0
57
• Searches through a report(s) or result for specific data. A copy of the found data is placed in a result. By specifying options we can tailor the result.– Command syntax is S RD or S –
• R = Report number
• D = Drawer
• - = Search the report or result on display
– Search command uses the Command Mask
– Searches specified fields or columns
MAPPERMAPPER
Search Command
58
• Find all of the records in 2B0 where cust code = AMCO – With 2B0 on display, enter S – and press
Enter.– Or from the idle user logo enter S 2B0 and
press Enter.– Or from the idle logo enter S press Enter,
Answer the questions, press Enter.
MAPPERMAPPER
Search Problem
59
MAPPERMAPPER
Search Command Mask
Options go Here
Command Parameters
Report headers from report 2B0
60
• Search parameters specify the data you want to search for.– In our example we want to search for AMCO
in a field called Cust Code.• With the command Mask displayed tab over to the
Cust Code and enter AMCO.
• Move the cursor to the next line and press Enter.
• Demonstration
MAPPERMAPPER
Search Parameters
61
• There are 16 options available for Search. Here are some of the more commonly used options.– D Omits Search information lines from the result.– H In a multiple report search it includes the headers
from the only first report.
– N Include only those line in the result that do NOT meet the search parameters.
– Rx-y This lets you search a range of report. Starting report number is 'x' and the ending report
is 'y'.
– @ Search for spaces.
• Demonstration
MAPPERMAPPER
Search Options
62
Search Example
S 2B0 – search for CustCode = "AMCO"
Equivalent run statement: @SRH,0,B,2 'd' 'CustCode' ,AMCO DSP,-0
63
Search Example
Results
64
Search Example
S 2B0 – search for CustCode = "AMCO" or "FEDS"
Equivalent run statement: @SRH,0,B,2 'd' 'CustCode' ,AMCO/ ,FEDS DSP,-0
65
Search Example
Results
66
• Find all of the Cust Code = AMCO and ARCO in 2B0.
• How do we accomplish this?
MAPPERMAPPER
Search Problem
67
• Find all of the Cust Code = AMCO and ARCO in 2B0.– With the command Mask on display:
• Tab to the Cust Code field and enter AMCO
• Move the cursor to the next line down, position it in the Cust Code field again and enter ARCO.
• Place the cursor on the next line and press Enter.
– You can enter up to 9 search parameters this way.
• Demonstration
MAPPERMAPPER
Search Problem Answer
68
Search Problem Answer
69
MAPPERMAPPER
Help Information• Help information is available for all MAPPER
commands.
• Display typing help,command name on the control line and press Enter.
• You can also access help by pressing Function key 8 or if you have buttons on the bottom of your screen, pressing the Help button.
70
• Find looks for a character string (Find parameter) in the specified report(s) or result. The display positions you at the first occurrence of the data. To see a following occurrence, that is not shown in the current display, press function key 1 or the resume button.– Command syntax is F RD or F –
• R = Report number• D = Drawer• – = Search the report or result on display
– Find command uses the function Mask
MAPPERMAPPER
Find Command
71
• There are many options available. Here are some commonly used options.– @ Find spaces in the data.
– N Find a record not containing the character string.
– Rx-y,z Search a range of reports
• Demonstration
MAPPERMAPPER
Find Options
72
Find Example
F 2B0 – find "ARCO" in CustCode field
Equivalent run statement: @FND,0,B,2 '' 'CustCode' ,ARCO .
73
Find Example
NOTE:The FIND command does not create a result, just positions you at the found value.
74
• Find any occurrence of a Cust Code = AMCO in 2B0.
• How do we accomplish this?
MAPPERMAPPER
Find Problem
75
• Find any occurrence of a Cust Code = AMCO in 2B0.– With 2B0 on display enter F – and press
Enter.– Or from the idle user logo enter F 2B0 and
press Enter.– Or from the idle logo enter F press Enter,
Answer the questions, press Enter.
• Demonstration
MAPPERMAPPER
Find Problem Answer
76
• Locate a character string anywhere in a report or result. You are positioned on the line where the string is found. To see the next occurrence of that string press Function Key 1 or Resume. The easiest way to use locate is to have the report on display.
• Locate searches for the character string in the entire record, while Find searches only in the column specified.
MAPPERMAPPER
Locate Command
77
• Command syntax is LOC ;/LP/o– ; is required.– / is a delimiter. This can be any special character.– LP is the locate parameter or the character string you
are looking for.– / is a delimiter. This can be any special character.– o is any option you want to specify
MAPPERMAPPER
Locate Command
78
• There are 10 options available. Here are two commonly used options.– O Build a result and place all of the lines
containing the string of characters
– A Locate across all line types.
• Example
MAPPERMAPPER
Locate Options
79
Locate Example
2D0 – loc AS
80
Locate Example
First occurrence
Press F1 (multiple times) for later occurrences
81
• Locate any occurrence of a Stat Code = OR in 2B0.
• How do we accomplish this?
MAPPERMAPPER
Locate Problem
82
• Locate any occurrence of a Stat Code = OR in 2B0.– With 2B0 on display enter L ;/or/ and press
Enter.
• Demonstration
MAPPERMAPPER
Locate Problem Answer
83
• This is a two-part command. You specify a string of characters to locate, and also a string of characters to use as a replacement. This will create a result of the entire report with the changed information.– Command syntax is CHG ;/LP/CP/o
• ; is required character• / is a delimiter character• LP is the locate string of characters• / is a delimiter character• CP is the change character string• / is a delimiter character• o is any option you specify
MAPPERMAPPER
Locate and Change Command
84
• Here are some of the more common options.– O This option builds a result of all of the
lines containing the string of characters.
– U Create an UPDATE result.
– A Locate across all line types.
• Example
MAPPERMAPPER
Locate and Change Options
85
• Locate any occurrence of a Stat Code = OR and change it to XX in 2B0.
• How do we accomplish this?
MAPPERMAPPER
Locate and Change Problem
86
• Locate any occurrence of a Stat Code = OR and change it to XX in 2B0.– With 2B0 on display enter chg ;/or/xx/ and
press Enter.
• Demonstration
MAPPERMAPPER
Locate and Change Answer
87
• Use the Totalize function to perform arithmetic and move operation on fields contained in a report or result.– Command syntax is Tot RD or Tot –
• R = Report number
• D = Drawer
• - = Totalize the report or result on display
– Totalize uses the Function Mask
MAPPERMAPPER
Totalize Command
88
• There are 13 options available with the Totalize command. Some of the commonly used ones are:– O Create an output result containing only
subtotal and grand total information.
– Rn Round answer to the nearest nth.– S Subtotal a field
MAPPERMAPPER
Totalize Options
89
• There are 13 parameters that are used by the Totalize command. A Few of the commonly used ones are:– + addition
– - subtraction
– / division
– * multiplication
– S subtotal a field
• Demonstration
MAPPERMAPPER
Totalize Parameters
90
• Problem: Determine how much money we make on our products. To do that, subtract Wholesales price from Retail price and place the answer in the Demo Field in report 1C0– With 1C0 on display enter TOT - and press Enter.– Place a – sign (Subtraction) under the Whole Sale field– Place a + sign (primary field) under the Retail field– Place a = sign under the Demo field to indicate where
the answer is to be placed. Place the cursor on the next line and press Enter.
• Demonstration
MAPPERMAPPER
Totalize Command
91
TOT Example
TOT 2D0 – Cost = Qty x SaleRound answer to 2 decimal places
Equivalent run statement: @TOT,0,D,2 'r.01' 'Qty','Sale','Cost' ,+,*,= DSP,-0
92
TOT Example
Results
The BIS Help contains many TOT examples
93
• Determine how much money we make on our products. (Use the data in 1C0.)– Subtract Wholesale$ price from our Retail$$$
$ price and place the answer in the Demo Results field in report 1C0. (Same as the previous problem.)
– Also calculate the grand total of our revenue. (This part is new.)
• How do we accomplish this?
MAPPERMAPPER
Totalize Problem
94
• With 1C0 on display enter TOT - and press Enter.• Place a – sign (Subtraction) under the Whole Sale field• Place a + sign (primary field) under the Retail field• Place a = sign under the Demo field to indicate where
the answer is to be placed. Place the cursor on the next line and press Enter.
• Under the = sign place a + sign and move cursor to next line and press Enter.
MAPPERMAPPER
Totalize Problem Answer
95
TOT Example
TOT 1C0 – Demo Results = Retail – Wholesale Compute grand total of Demo Results
Equivalent run statement: @TOT,0,C,1 '' 'WholeSale$','Retail$$$$','DemoResults' \ ,-,+,=/,,,+ DSP,-0
96
TOT Example
Results
97
• The Sort command lets you put data into a specified sort order, either numeric or alphabetic. Within the sort field you can select ascending or descending order.
• Command syntax is SORT RD or SORT –– R = Report number– D = Drawer– - = Sort the report or result on display
• Sort uses the Command Mask
MAPPERMAPPER
Sort Command
98
• The Sort command has only 2 options. They are:– A Sort on all line types– C(s) Treat data as case-sensitive
MAPPERMAPPER
Sort Options
99
• The Sort command uses 3 different parameters. They are:– 1 – 5 Specifies the field(s) to sort and the
hierarchy in which to sort them.– D Sort in descending order– N Treat data as numeric
(So that 9 is not greater than 100)
MAPPERMAPPER
Sort Parameters
100
SORT Example
SORT 2B0 by STCD, CustCode (descending), and ProductType
Equivalent run statement: @SOR,0,C,1 '' 'STCD','ProductType','CustCode' ,1,3,2d @DSP,-0
101
SORT Example
Results
102
• Sort the data in report 2B0– ST CD is the primary sort field
– Within ST CD, sort by Cust Code and finally by Product Type.
• How do we accomplish this?
MAPPERMAPPER
Sort Problem
103
• With 2B0 on display, enter Sort - and press Enter.
• Place a 1 under the ST CD field
• Place a 2 under the Cust Code Field
• Place a 3 under the Product Type field, move cursor to next line and press Enter.
MAPPERMAPPER
Sort Problem Answer
104
• The Match command compares same-size fields in 2 different reports and optionally copies data from one report to the other.
• You must have a report on display. – This report is called the receiving report.
• The report specified in command is called the issuing report. – They are combined in the double Match command
mask.
MAPPERMAPPER
Match Command
105
• There are 12 options for the Match command. Some of the more popular ones are:– B The blend option merge both reports
into one result– D Deletes Match information from the
header– M Display only records that match– N Display only records that do not match
MAPPERMAPPER
Match Options
106
• There are only 2 parameters that are used by the Match command. They are:– 1 – 5 Specifies the field to sort and
the hierarchy in which to sort them.– A-M Specifies the fields to be move
and the sequence in which to move them.
MAPPERMAPPER
Match Parameters
107
MAPPERMAPPER
Match end user interface (Mask)Options go here
Type of Command
Receiving report headers (2B0)
Issuing report headers (1C0)
Command Parameters
Command Parameters
108
MATCH Example
Display 2B0 (receiving report)Enter "MA 1C0" (issuing report)
Equivalent run statement: @MCH,0,C,1,0,B,2 'd' 'ProductType','ProducCost' ,1,a \ 'ProductType','ProducCost' ,1,a DSP,-0
109
MATCH Example
MATCH on ProductType, copy ProducCost from 1C0 to 2B0
Equivalent run statement: @MCH,0,C,1 'd' 'ProductType','ProducCost' ,1,a \ 'ProductType','ProducCost' ,1,a DSP,-0
110
MATCH Example
Results
This result is a copy of 2B0 with the ProducCost values copied from 1C0 where the two ProductType values are equal.
111
• Create a single report (result) that contains all of the following information; – Status Date, Serial number, Product Cost, Customer
Code
• We have one report that currently contains all of this information 2B0 except Product Cost. Product Cost is contained in 1C0.
• How do we accomplish this?
MAPPERMAPPER
Match Problem
112
• Create a single report (result) that contains all of the following information; – Status Date, Serial number, Product Cost, Customer Code
• We have one report that currently contains all of this information 2B0 except Product Cost. Product Cost is contained in 1C0.– With 2B0 on display enter MA 1C and press Enter.– Place a 1 under the Product Type field– Place a A under the Product Cost Field– Repeat the previous two steps under the second header
• Demonstration
MAPPERMAPPER
Match Problem Answer
113
• There are several commands that combine their operation with the update capability.
• Search, Match, Calculate are three.
• These command will have a new call:– Search update is SU– Match update is MAU– Calculate is CALU
MAPPERMAPPER
Update Commands
114
• First think of these commands as their original operation. For example, with Search we search for a specific string of information in a specific field or column. The result is a result containing only the lines of information the met the search criteria.
• Search Update works the same way, but now we can make a change to this result and have that change placed back into the original report.
• We could also delete these lines from the original report, or extract them out of the original report and create a new result containing just those lines.
MAPPERMAPPER
Update Commands
115
• Update (UPD) takes the current result on display and places information back in the original report.
• Delete (DEL) takes the current result and deletes it from the original report.
• Extract (EXT) takes the current result and deletes it from the original report and displays the deleted information as a result.
MAPPERMAPPER
Update Commands
116
• Demonstration of Update
• Demonstration of Delete
• Demonstration of Extract
MAPPERMAPPER
Update Commands
117
• Use the Print command to print a report or result on a system printer.– Command syntax PR or PR RD or PR –
with a report on display.• R is the report number
• D is the drawer the report is in.
– If you use the PR syntax you will have several questions to answer.
MAPPERMAPPER
Print Command
118
• PR Syntax
MAPPERMAPPER
Print Command
119
• The View command lets you display a subset of the fields in a report or result.
• You must have a report or result on display when you execute VIEW . A mask is displayed.
• The VIEW mask contains all of the headers from the report or result that was on display.
• Place an X under all columns or fields you wish to display, and press Enter (Transmit)
MAPPERMAPPER
View Command
120
• With 2B0 on display, enter View on the control line and press Enter
MAPPERMAPPER
View Command Demonstration
121
• The resulting view looks like this:
MAPPERMAPPER
View Command Demonstration
122
• The Arithmetic command allows you to do computations, much in the same manner as the Windows calculator, except it is not as pretty.
• With the MAPPER calculator you can enter all of the normal operators within your expression or expressions.– Command syntax is: A
• Example
MAPPERMAPPER
Arithmetic Command
123
Example
124
• Use the Calculate command to compute, compare, and replace numeric data, character strings, dates, and times in a report.– Command syntax: CAL RD or CAL –
• R = The report number• D = The drawer type• - = Use the report on display
• This is probably the most complex command ever developed for MAPPER. (People have based careers on this command alone.)
MAPPERMAPPER
Calculate Command
125
• There are 16 options available with the Calculate command. Some of the more popular ones are:– E If a result in a field = 0, fill field with a
space.– J(x) Justify the numeric data according to
(x) – L List all value labels– O Omit all data lines in the result.
MAPPERMAPPER
Calculate Options
126
• With Calculate you have the all of the various arithmetic labels, expressions, and equations at your fingertips.
• You can string multiple equations together in one calculate command.
• There are many examples in the CAL Help. Read and practice these examples.
MAPPERMAPPER
Calculate Parameters
127
CALculate Example
Make these changes to 2B0:
• Change BLACKBOX to WHITEBOX andGREENBOX to BrownBOX
• If STCD = IP and CustCode = AMCO then:store line number in SpcCod, add 90 days to StatusDate, store new date & day of week in ShipDate & ShipOrder.
128
CALculate Example
Equivalent run statement: @CAL,0,B,2 '' 'STCD','StatusDate','ProductType'(1-5), 'CustCode', 'SpcCod','ShipDate','ShipOrder' ,a,b,c,d,e,f,g \ if:c="BLACK";then:C="WHITE";if:c="GREEN";then:C="Brown";\ if:a="IP"&d="AMCO";then:e=LINE;then:f,d(1)=d1(b)+90;\then:g,d(w)=d1(f); DSP,-0
129
CALculate Example
Results
130
• Use the Count command to analyze and summarize data. Based on key fields, the command computes subtotals, percentages, averages, entry counts, and more. – Command syntax: CNT RD or CNT –
• R = The report number• D = The drawer type• - = Use the report on display
• This is probably the most efficient command ever developed for MAPPER. It executes operations with one pass through the data.
MAPPERMAPPER
Count Command
131
• There are a 19 options that can be used by the Count command. Some of the more popular ones are:– Dn Process only the line that occur n or more
times.
– H Extract only the first set of headers
– P Pack the result by removing all non-referenced fields.
– R Execute across the range of reports specified.
MAPPERMAPPER
Count Options
132
• There are 5 parameters used by the Count command. They are:– 1 – 9 Specifies the field to sort and the hierarchy to
sort them in. These are the KEY fields.– N Specifies this field to be numeric.– DF Specifies this is a date field in the a specific
format.– TF Specifies this is a time field in the a specific
format.– R Specifies a rounding value
• There are many examples in the Count Help. Read and practice these examples.
MAPPERMAPPER
Count Parameters
133
• Use REP as the key field, subtotal Qty, Sale.
• Make a list of all the different products.
• Scale OrderDate by quarter, use REP and CAT as key fields, subtotal Qty, Sale
MAPPERMAPPER
Count Examples 2D0
134
COUNT Example
Equivalent run statement: @CNT,0,D,2 'p' 'Rep','Qty','Sale ,1,+,+/r,,,.01 DSP,-0
Subtotal Qty and Sale fields (2 dec. places), for each Rep. Only display fields used.
135
COUNT Example
Results
136
COUNT Example
Equivalent run statement: @CNT,0,D,2 'p' 'Rep','Cat' ,=,1 DSP,-0
Show the number of records for each product category.
137
COUNT Example
Results
138
COUNT Example
Equivalent run statement: @CNT,0,D,2 'ps1d11(1w)' 'Orderdate','Qty','Sale' ,1,+,+/r,,,.01 @DSP,-0
Subtotal Qty, Sale (2 dec. places) by week (OrderDate)(Dates are all in January, 1997)
139
COUNT Example
Results
140
• You should read up on both the Calculate and Count commands to better understand the power they offer.
• Then play with them.
• You will find many different uses for them.
MAPPERMAPPER
Suggestion
141
• MAPPER color graphics is a set of MAPPER commands that creates color charts that display on the screen or can be printed.
• There are a dozen preformatted types of charts and 6 interactive charts.
MAPPERMAPPER
Graphics
142
• Preformatted Charts have you fill out a form. A chart is generated from that.
• Interactive Charts all let you use a report or result and generate a chart from it.
MAPPERMAPPER
Graphics
143
• Preformatted Charts:– Bar Mixed Line Text– Radar Block Pareto 3D Bar– Scatter Timeline Target Pie
• Interactive Charts– Bar Mixed Pie– Line Pareto Scatter
MAPPERMAPPER
Graphics
144
• Requirements– A graphic enabled terminal.
• MAPPER Presentation Client (MPC)
• PowerClient
• Execute the run CHART,E– Examples
MAPPERMAPPER
Graphics
145
MAPPERMAPPER
Graphics (CHART,E)
146
MAPPERMAPPER
Bar Graph
147
MAPPERMAPPER
Bar Graph
148
MAPPERMAPPER
Line Graph
149
MAPPERMAPPER
Line Graph
150
MAPPERMAPPER
Pie Graph
151
MAPPERMAPPER
Pie Graph
152
• Station to Station Message
• Send Report to a Station
• Send Report to a User
• Ok
MAPPERMAPPER
Message CommandsNot used much anymore
Useful primarily in runs. Send diagnostic messages to yourself.
@SNU,-0,JDOE,7
153
• This command is the response for any of the previous messaging type of commands.
• By typing OK and pressing Enter, the person who sent the message will be informed if the acknowledge sub field was specified.
MAPPERMAPPER
Ok Command
154
MAPPERMAPPER
PCME
Point and Click MAPPER Environment
155
• Up to this point we have done every thing in a text or character environment.
• PCME lets you do the same things we have done only in a GUI environment.
• It requires a set of MAPPER programs to be loaded on the host MAPPER system. It can be controlled at a user level.
• It has a GUI representation for most of the MAPPER commands but, not all of the commands.
MAPPERMAPPER
PCME
156
MAPPERMAPPER
PCME
157
MAPPERMAPPER
PCME
158
• At this point you have been exposed to several of the MAPPER commands. This is only a fraction of all of the commands at your fingertips. You should use HELP or the manuals to review and learn about other commands and options to assist you in your usage of MAPPER.
• Once you become proficient in MAPPER commands, you can become a "Run Designer".
MAPPERMAPPER
What’s Next?
159
• A MAPPER Run lets you take the manual commands that you do frequently to develop a specific result, and create a program that will develop the same result, just by executing it.
• A MAPPER Run is a script, or a sequence of executable commands, stored in a report.– MAPPER runs are stored in the same kind of
reports as MAPPER data.
MAPPERMAPPER
MAPPER Run
160
• The Run Language or command set is an extension of the manual commands. In almost all cases there are run commands that are equivalent to the manual functions. There are many run command that have no manual equivalent, mainly in the display and formatting of data.
• An example of a MAPPER run is the graphic commands. All of the chart commands are actually MAPPER runs. PCME is another example.
MAPPERMAPPER
Run Language
161
• Remember our problem dealing with Match?– Create a single report that contains all of the following
information; • Status Date, Serial number, Product Cost, Customer Code
– We have one report that currently contains all of this information 2B0 except Product Cost. Product Cost is contained in 1C0.
MAPPERMAPPER
Run Example
162
• The run statements below accomplish this
MAPPERMAPPER
Run Example
163
???? ??????????
MAPPERMAPPER
Questions?
164
Unisys is a registered trademark of Unisys Corporation.
BIS and MAPPER are registered trademarks of Unisys Corporation.
MAPPERMAPPER