Professional Documents
Culture Documents
Mapper 35R1 Advanced Vol2
Mapper 35R1 Advanced Vol2
Mapper 35R1 Advanced Vol2
Printed in U S America
SE 1565 UE 8416R2
8
Screen
Design
Methods
Module 8
Screen Design Methods
Objectives
Upon completion of this module, you should be able to:
1. Compare the screen input reserved words INPUT$, INVAR$, INVR1$,
INSTR$ within a run.
2. Describe the purposes and differences between the following statement:
a. LFC
b. SFC
c. FMT
d. OUV
e. ITV
3. Handle function key input within a run.
4. Describe the purpose of the 'forced transmit' and 'spaces' features of the
OUT statement.
8-1
Screen Design Methods
@Brk .
Last name:
First name:
Birthdate:
Employee #:
@Brk out,-0,2,10,1,1 .
@Chg ?
8-2
Screen Design Methods
INPUT$
Input$ Table
4- 256 Characters
smith
joe
40 010160
Values
@Out,c,d,r
@Chg Input$ v5h12,v6h10,v7i6
8-3
Screen Design Methods
INVAR$ Pt
lnvar$ Table
4-- 256 Characters
smith
Joe
40 010160
Values
8-4
Screen Design Methods
INVR1$
Invarl$ Table
4.-- 256 Characters
smith first name
010160
40
Values
8-5
Screen Design Methods
INSTR$
Instr$ Table
80 Characters -••
❑ Text line 1 0 Sub 1
0 Text line 2
0 Text line 3
24
Values
@OUV,[sci,col] yid .
8-8
Screen Design Methods
@ITV, [lab] .
8-9
Screen Design Methods
@OUV Example
• RCR to process
LI NE's i RLO •St SHFTO HLD CHRS HLD LNO. UNDO. 1E188
.DATE 27 SEP 98 12:12. RID 1E 24 JUL 98 CRAIG
.TEST
41:
1$405 coni ss' ,+(totaDa8 .
a
@command
@command
@command
• Variable < total > is put to the screen via @OUV for 5 seconds
LINES 1 FNII. Metest HF11. NLD CHM. HLD 1,1* UNDOO. 1E188
.DATE 27 SEP 98 12:12:24 RID lE 24 JUL 98 CRAIG
JEST
@tot,O,c,1 r.81 'sales co sirs' <total>a8 .
@ouv,1415 (total) .
@wat 5848
@command
@command
@command
8-10
Screen Design Methods
@0 UV / @ITV
Scenario
The run designer is writing a run that will solicit the user for many data
entries. The run will request one entry per screen. What would be the most
efficient way to accomplish this task?
Historical Solution
Alternative Solution
8-11
Screen Design Methods
• RCR to process
1VM
alwr1,64 a,189, line> 2-7 E(value) .
@if (line) (lastlin) ulic to . ;inc (line) gto 861.,
N82:ds LO,a,106,„,9„ Your report has sucessfully been updated?'
@wat 5r1i; .
@gto end .
• Input screen is displayed. User enters the first value and transmits
8-12
Screen Design Methods
.DA
.MAPPER FREE FORM:
valuel
value2
value3
value4
value5
value6
value?
value8
8-13
Screen Design Methods
Example Comparison
• Same task could have been accomplished this way
o ,a„
8wr1,94 a,1,(line) 2-7 (value) .
@if (line) (lastlin) ulic gto 883. ;inc (line) gto 081_.
@802:aspLO,a,190.,„,g„ Your report has sucessfully been updated?'
Swat 588e
..... END REPORT
Comparisons
OUV/111/ BRK/OUT
Example Example
Functions 19 31
I/Os 50 74
Logic
Lines 44 64
Data
Lines 112 191
8-14
Screen Design Methods
PcoMsand .
\„ @command .
Please enter:
your last name:
your first name:
your middle name:
Please enter:
your last name:
your first name:
your Middle name:
pi ti PS
8-15
Screen Design Methods
8-16
Screen Design Methods
Scenario
A run designer needs to design a run for non-MAPPER users. One of the
requirements of this run is to over-ride line zero requests. The run designer
also wishes to design screens that allow the user to perform tasks by selecting
function keys. Therefore, the traditional function key processing (F1 -
resume, F2 - repaint, etc.), will be overwritten.
Solution
Utilize the @CHD statement to take control of line zero entry attempts
Include FKEY$ in an @IF statement to determine which function key was
pressed
• Run will branch to appropriate label containing a function key routine
8-17
Screen Design Methods
RCR to process
LIMO 1 FRO EL) test SHFT)' HLD CHRSO HLD LN' UNDO. 1E168
.DATE 81 OCT 98 89:59:53 RID iE 24 JUL 98 CRAIG
.TEST
Blackboxl i moo
8-18
Screen Design Methods
8-19
Screen Design Methods
Key Statement
@KEY
• This example is similar to the previous. The main difference is that the
run will not take control of line zero.
MO:Rel
8-21
Screen Design Methods
Format Statement
8-22
Screen Design Methods
8-23
Screen Design Methods
@LFC v
@SFC[IcId,r] yid .
8-25
Screen Design Methods
Scenario
The run designer needs to write a run that will display several 'like' reports to
the user. The designer wishes to give the user the opportunity to alter the
format of the first report displayed. Next the designer wants to save and reuse
this temporary format for subsequent report displays. This way, the user
won't have to shift each individual report.
Historical Solution
Set up a format in Report 0 . The drawback is that in this scenario, all six
formats are already utilized.
Solution
Use @LFC and @SFC to capture, save, and reuse temporary report formats.
8-26
Screen Design Methods
• RCR to process
8-27
Screen Design Methods
• Fill in 'View' menu. Place an 'x' for every field to include in new format
8-28
Screen Design Methods
8-29
Screen Design Methods
8-30
Screen Design Methods
Statement Matrix
Takes Control of
Line Zero
Captures Line
Zero Entries
Takes Control of
Function Keys
V i,71
Places Data to
Screen
V
Captures Screen
Entries
i
8-31
Screen Design Methods
@OUT,c,d,r,11q ssi,tp,se,id,pdq,protect?thant?,outsp?,blink?,sn,lab
Forced Transmit
Scenario
The run designer is having trouble with a run in production. The run- displays
data entry screens to the user. There are several fields per screen that need to
be filled in. The problem is - users even though they are probably entering
data into everyfield, only 'part' of the data is actually getting loaded into the
screen input variables properly. The reason for this is that the user, from time
to time, goes back up to a field to make a change before transmitting. The
user then transmits from the middle of the screen. Only the data preceding
the cursor is sent. How can the run designer ensure that the entire screen will
be considered?
Solution
8-33
Screen Design Methods
Una,' 1 Rolla*g
i gt 1E1
.DATE 81 OCT 98 12:22:7 RID 1E el OCT 90 CRAIG
.test
@BRE .
ENTER YOUR FIRST NAME a
FAVORITE GAME
FAVORITE FOOD a
FAVORITE SHOW S
FAVORITE SONG
,(GANDA16,<FOONA16,(SHOWA16,(SONOA16
(NAMEWOME>,(FOOD),(HOWASONO
YOUR FAVORITES ARE: (GANE),(F000,(SHOW), and (SONG}
MX
8-34
Screen Design Methods
8-35
Screen Design Methods
Handling Spaces
@OUT,c,d,r,l,q,ssl,tp,se,id,pdcbprotect?,fxmt?,outsp?,blink?,sn,lab
Options:
8-36
Screen Design Methods
• RCR to process
LI NEM` 1 FMTO RD. SHFT HLD CHRSO HLD LNC UNDOIP. iLteri
. DATE It OCT 99 12:49: ID 1E It OCT 98 CRAIG
.test BY : CEX
727272Z722.772Z7272ZZEZZZ2712273ZZ27222Z2Z22272Z2Z272.7722712
@BB OUT, -8 3 1,1
HD THIS OVER THE 2" S
- .*
ZE272Z2712222272227,222222=122272,727222=222222222222
8-37
Screen Design Methods
=272Z2Z7Z2Z722ZZEZZ22ZZZEZ7272712Z2=2=Z2Z2
8-38
Screen Design Methods
LIND 1 FMTO 11140 001SHFTO HLD CHM HLD LPW UNDO. 1E188 0
DATE 81 OCT 98 12:51:18 ID lE 81 OCT 98 CRAIG
,test BY: CEX
ZZZ2ZZZZZEZZZ2ZZZEZZZZ2ZZZ2Z2Z2Z2Z22222Z2ZZZ2Z2Z2Z2Z2Z2Z2
HRH OUT,-8 3 1,1
THIS OVER THE Z"S
Z2Z2Z2=Z2Z7272222Z2227,27272727aZZZZEZEZ222Z2Z2E22T22222
IMPOZGOING722TOTB2SEND22222THISMMOVERM2222ZTHEZZ'S
8-39
Screen Design Methods
Exercise
1. Write a run that solicits user input. Use the ITV statement to caoture the
entries into variables. Also utilize OUV to verify the contents of the
variables. The run must also contain routines that re-define normal
function and transmit key processing.
2. Write a run that displays several 'like' reports to the user. Allow the user
to alter the display of the first report by shifting /holding characters or by
using the VIEW command. Display the following reports in the new
(temporary) format.
8-41
9
Screen
Control
Module 9
Screen Control
Objectives
Upon completion of this module, you should be able to:
1. Use the Screen Control (SC) statement, alone with selected screen
commands, to create display screen for use within a run.
2. Utilize the SCGEN run to build screens.
9-1
Screen Control
Screen Control
9-2
Screen Control
Screen Control vs 5 To
= = =*NO WIMP +=111 EM. ONO 41111. = == = = ====
L
C
G
`11. -16.
L L L L
S C S C
0 a
Search Report Data
L L L L
C SC
0 G
L N I N
LL
S C B C sC
I C G
0
I SUSS$$$$$$$$$$ 1 G
!
Report or Drawer
L N 1N L L
S C BC SC
I C G 0 1G
! SS I
Format
L L L
S c S C
1 G
L
S
versus
* = = =
prep
fld,3,19,6,43,11,(pr,rv,whi/b110
fld,4,21,4,39„(11,pr,yelibla)
fld,3,28„24,1,(pr,whlired)„' Search Report Data
pc,+2,24;'Report or Drawer 1,fld„”16,u,(ts,a1)
pc,+1,24;' Format ';fld,„,2,u,(ts,no)
9-3
Screen Control
@SC[„„tabpIsn,lab] O scmnd
SC options
94
Screen Control
@DSP, 8 )3 98,,,, 9
7421:.
• '450000' inserted
9-5
Screen Control
O Options
9-6
Screen Control
• Menu produced
IN PURSUIT OF TRIVIA
GEOGRAPHY
ENTERTAINMENT
HISTORY
ARTS AND LITERATURE 0
SCIENCE AND NATURE M.
SPORTS AND LITERATURE
EXIT
TAB TO THE CATEGORY OF YOUR CHOICE AB PRESS XMIT
9-7
Screen Control
9-8
Screen Control
Screen Commands
9-9
Screen Control
• RCR to process
END REPORT
9-10
Screen Control
• Output is displayed
RD CHRSO HLD LW 0. 98 0
VATi 1 FM1) 18:88:53SHFTO
RID 98E11 OCT 98 CRAIG
.01 Production Status Report Corporate Production 82
*St.Status.By. Product .Serial.Produc.Order.Cust.Produc.Produc. Ship .Ship .Spc.
*Cd. Date .In. Type .Number. Cost NumBr.Code. Plan .Actual. Date .0rder.Cod.
41= . . .
IP 831224 LS 436767 84389 MO 031223 831224
1414n 436768
IP 83/225 LS 44€4, 84398 AMC* 01223 831225
IP 831219 LS : . 4: s' 63701 84353 INTR 831218 831219
OR 848110 LS BLACKBOX4 94754 ARCO
SC 848110 LS BLACXBOX5 675281 97441 FEDS 848131
IP 831222 LS BLACXBOX5 737582 84848 AMC° 831222 831222
SN 831283 LS BLACKBOXO 746327 54237 FEDS 831281 831282 831203 S8738
SH 831282 LS BLACXBOX6 368861 54438 FEDS 831281 831201 831202 56937
SH 831289 LS BLACXBOX6 777324 54232 NCO 831287 83.1.2',,: 831289 58538
SH 831283 LS BLACXBOX6 78536? 52833 ARCO 831281 831282 831223 S8934
IP 831216 LS BLACXBOX6 926581 89381 INTR 831215 831216
OR 831218 LS BLAUBOX7 99842 FEDS
OR 83122? LS BLACKBOX? 99725 INTR
‘ S.0 0404:': I4 BACON? 665481 97541 FEDS 849122
Explanation
Report 98B is placed on the screen as an interim via the DSP command. The
PC command positions the cursor to the sixth line of the report at the
Product Cost field. The data '450000' is placed at the current cursor position.
The TAB command places the cursor on the seventh line of the report in the
Product Type field. The data Tizzaboxr is placed at the current cursor
position. The HC command puts the cursor in the 'home position.'
9-11
Screen Control
9-13
Screen Control
9-14
Screen Control
Explanation
9-15
Screen Control
Attribute Parameters
CO Cursor Only
Intensity Parameters
BL Blinking.
LT Low Intensity.
RV Reverse Video.
VO Video Off.
Other Parameters
-16
Screen Control
Attribute Parameters
Color Paiameters
BLA Black
BLU Blue
CYA Cyan
GRE Green
MAG Magenta
RED Red
WHI White
YEL Yellow
Color parameters are always specifies in pairs. The forward slash character ( lJ
is used to separate them. For example, WHI/RED =white characters on
a red background.
TC Title color.
MC Menu color.
9-17
Screen Control
Attribute (ATT)
Field (FLD)
Message (MSG)
Attribute Command
ATT,attr[,r,c]
Example
att5(proNhi/blu),251
This example positions the cursor to row 2, column 1, and creates an attribute
that has protected input and is white on blue.
9-19
Screen Control
Define Command
DEF,n [,aar]
Example
DEF,1 ,(PR,WHI/BLU)
This example defines attribute number one as having protected input and
colors of white on blue.
9-20
Screen Control
Field Command
FLD[,r,c,rsiz,csiz,o,attr,end-attr,text]
9-21
Screen Control
Border options
A Attributes. Outputs field attributes even if the
field is being boxed.
B Box. Draws a box around the field if the
terminal supports box drawing characters. The
box is drawn inside the perimeter of the field
reducing the effective size of the field by two
rows and columns.
F Frame. Frames the field with emphasis. This
option is terminal dependant.
S Sides. Draws lines on the left and right sides
using emphasis. This option is terminal
dependant.
T Top. Draws a line at the top of the field using
emphasis. This option is terminal dependant.
U Underline. Draws a line under the field using
emphasis. This option is terminal dependant.
Justification Options
Miscellaneous Options
9-22
Screen Control
Example
RCR to process
c
Line I Roll,* ittS: 'ii 68P8
.DATE ii. OCT 98 13:19:48 ID 68F 11 OCT 98 CRAIG
.TEST BY: Sam Cooke 12
se
@brk
cs;att, r;p94.6,18;"Nelcome to wiOt wonderland!"
fig...A.T...silnrfr quantity
I east enter your name"
s;,-0 "
tiohg input$ (qty)i6,<who)a18
Explanation
Two field commands were requested. The second field used a numbered
attribute which was defined by the DEF command.
9-23
Screen Control
Message Command
MSG,r,o,aftr,tmd
9-24
Screen Control
9-25
Screen Control
PREP[,attr]
DFLD[,narneyoptyaftr,text]
Border Options
Justification Options
Miscellaneous Options
9-29
Screen Control
Area Command
Area Command
AREA[,name,r,c,rsiz,csiz,opt,attr]
Border options
A - Attnlutes. Displays the background attributes of the area even if the area
is being boxed.
B - Box. Draws a box within the outer edge of the area if the terminal
supports box drawing characters.
F - Frame. Frames the area with emphasis. This option is terminal dependent.
U - Underline. Underlines the area using emphasis. This option is terminal
dependant.
Miscellaneous Options
D - Delimiter. Marks fields with a field character only. Named fields are not
recognized. Allows you to place text immediately following a field.
9-31
Screen Control
• RCR to process
brk sc -td''
ts (what)0,(who)ale
ithg inpu
Explanation
This example is basically the same as the previous - only this time DFLD and
AREA are used instead of FLD commands.
9-32
Screen Control
If a named field is indicated in the area data, the characteristics of the field
come from the DFLD command specifying the same field name. A named
field definition may be referenced more than once.
The characteristics of unnamed fields in the area are supplied by DFLD
commands that specify no field name. The first unnamed field indicated in
the area uses the first unnamed definition; the second unnamed field uses the
second unnamed definition, and so on. If there are more unnamed fields
indicated than there are unnamed definitions, the last unnamed definition is
used to satisfy the remaining fields.
After the AREA command is performed, all field definitions are discarded.
9-33
Screen Control
SOE[Ic J ,n]
LB[,c 1, ni
RB[,c ,n]
TIC[,c ,n]
9-34
Screen Control
Example
• 'RCR to process
Menu is displayed
Explanation
SOE, LB, and RB commands were added to the run. NOTE: the LB and RB
characters did appear on the screen, however could not be shown in this
screen example.
9-35
Screen Control
Example One
This sends the message < ERROR > out to screen position 12,29....
You can also place single or double quotes around a message.
Example Two
In this example, you need to utilize the TIC command along with single quote
marks. The TIC command character ($), and the quote marks can be in any
order. Also: Using two sets of single quotes on each side of the message will
result in error. Using two $ signs on each side will only give you the first word
of the message.
Example Three
This one is tricky! To put a message with embedded quotes out to the screen,
you must use quotes, the TIC command, and also a variable representing
C$. In this example, you will get 1 quote around the word 'string.' If you
want to get two quotes around the word (string), you would need to put
'VIVI' on each side of it.
9-36
Screen Control
Example Four
SC Format Two I One Word Message
This is putting < ERROR > out to the screen at position 12,20. You could
also place single quotes around the message.
Example Five
SC Format Two / String Message
Notice that with format two, you can send a string message to the screen
without using the TIC command. However, you can use the TIC command.
You would then have to use just one designated character on each side.
Example Six
Notice that to put the message out this time, you don't need to use the
reserved word TIC$. You can simply use the TIC command and supply the
character on each side of the message. Then, place (in the message itself),
two quotes for each one that you want to go to the screen.
NOTE.• All of the examples cavy the same rules ifyou're using the stand alone
message technique, or using MSG or ED commands.
9-37
Screen Control
Emphasis Command
Emnp5p,....AN
p Emphasis pararaeter(s)
Blank -Turns off emphasis
C or I - Separates columns
U or - Underscores
(-) -Strike through
Examples:
9-39
Screen Control
Data Command
• DATALrArsiz,csiz pn,o]
9-40
Screen Control
*RCR to process
/-
JAW,. 1 Roll0 6818
.DATE 11 OCT 98 14:32: ID 68F 11 OCT 96 CRAIG
.TEST BY: Sam Cooke 12
•igi" ' • **
'IOCTOBJNALL;1.4991t.:::::.
9-41
Screen Control
PRT
• Sends protected and unprotected data to the attached printing device.
• Sends all data from home position to current cursor position.
• Station number must exist in MAPPER configuration report.
PRF
• Sends unprotected data to attached printing device.
LF[,n]
• Places n line feed characters at the current cursor position.
• Default = 1.
• Use with PRT and PRF commands
FF
• Places a form feed character at the current cursor position.
• Use with PRT and PRF commands
Screen Control
Setup Commands
BEEP
• Causes terminal beeper to sound at once
• Used to signal user an error or other special condition has occurred
• After BEEP is executed, cursor is placed in home position
• Only one BEEP command allowed per SC statement
CP[ p]
• Alters the terminal setup (control page)
• CP command accesses the terminal setup and inserts the text strin
• See terminal documentation before using this command
END
• Stops the scan for screen commands
• Displays terminal output
9-43
Screen Control
FKEY Command
• FKEY,n,title,action
n Function key number (0 = transmit)
title Text to display on the function bar
action Action to take when the function key is pressed.
Action can be any valid command or run name
9-44
Screen Control
FKEY Example
• RR to process
LI NEO. FMTO MAO SHFTO HLD CHRS HLD 68F8
.DATE 99 14:36:36 RID 68F 11 OCT 90 CRAIG
.TEST BY: Sam Cooke F 0812
8117.7e,
CS;
date?$
PCALI LB 3;' Welcome to wigit wonaerlana! ';RB,3
on.41.74.1 !URA Pleaca on anon
2Exi t 7 9 10
9-45
Screen Contro
DSPHELP
HELP,f1d1...fid row
fid Field number for which the following
context-sensitive help refers
row Row (screen line) where help text should start
9-47
Screen Control
• RCR to process
Line 68F8
. DATE 98 14:54:36 RID 68F 11 OCT 98 CRAIG
.TEST BY: Sam Cooke F888812
ie
.
Ga' '-game
REV 1 ' Games A s
nay ' •
daten
mtillisioU,Ncome to wigit wonderland? ";RBI 3
Please enter quantity' ;fla„+1,1,6„(ts,no)
Im1+2,16;SOE,1;" Please enter your name'
def,1,(ts,ao,red/whi);f14,44,1,113„1;tab,1
004,
Lichg input$ {qty}i6,(who)a18
k, 1 2Paint 3 4Return 6Tasks ?View elfelp Mao inait
9-48
Screen Control
9.49
Screen Control
• RCR
1
Line0. 1 Roll' - 59E196
.DATE 11 OCT 98 15:19:47 RID 38 MAY 98 CRAIG
.RUN FUNCTION DATA:
-- - _ - _ - ----- --_---_--- ------------ _ -- BY: CRAIG E.
•
•
Control is returned to the calling run when user transmits from menu
@command
@command
@etc.
9-50
Screen Control
• Menu is displayed
IN PURSUIT OF TRIUIA
GEOGRAPHY 0
ENTERTAINMENT
HISTORY
ARTS AND LITERATURE 0,
SCIENCE AND NATURE 0
SPORTS AND LITERATURE 0
EXIT
TAB TO THE CATEGORY OF YOUR CHOICE AHD PRESS MIT
9-51
Screen Control
SCGEN Run
Exercise
1. Display a report with the DSP command. Alter the report on display by
experimenting with several 'cursor position' and 'screen edit' commands.
Use SC format one for this exercise.
2. Write a run that solicits user input. Utilize a combination of screen
commands to build the input screen. Screen commands and SC statement
will be contained in the same RCR. Use SC format two for this exercise.
3. Add a new RCR to the system (AR function). Copy only the screen
commands from the exercise number two to the new report. Delete the
screen commands from the original RCR. Use SC format two to call this
external form (report containing screen commands).
9-53
10
Importing
and
Exporting
Data
Module 10
Importing and Exporting Data
Objectives
Upon completion of this module you should be able to:
1. Transport MAPPER data to and from MAPPER and the OS 1100
environment.
2. Start a job on any MAPPER host system.
3. Start a MAPPER run from a file on any host system.
4. Identify the purpose of a MAPPER External file.
10-1
Importing and Exporting Data
Overview
Qualffier*Filename(Cycle).ElementnameNersion
10-3
Importing and Exporting Data
Mapper 1100
Elt
Ret P
10-4
Importing and Exporting Data
ELT
• Enter 'ELT' on line 0
ELT
Create File or Element
lifier nip name Cycle Element Uersion
MAPPER format?
Include headings?
Character set
Shared Directory?
Report
$INCL$ access: Cabinet Password
Cabinet Password
Cabinet Password
Cabinet Password
Menu Selections
Qualifier, File name, Element and/or file name to copy to the 1100
Cycle, Element, system
Version
MAPPER format? Enter 'Y' to create the file in MAPPER format
Include headings? Enter 'Y' to include MAPPER headings in the
copied file
Character set Enter character set choice. Press F8 (Help) to
receive choices
Shared Directory? Is this file in a shared directory? Leave blank for
system default
Report Number, drawer, and optional cabinet identifier
of report to be copied
10-5
Importing and Exporting Data
MAPPER format
• Retains control word at end of each line
• Translate line zero into control characters
• Translate tabs (usually left brackets in fieldata)
• Translate carriage returns (usually right brackets in fieldata)
• Insert internal line numbering at beginning of each line
• Send END REPORT line
• Forms a box around data
• Translated control characters form our control words
One control word = Line numbers
- One control word = Carriage returns
- One control word = Control characters necessary to system. 'This
word is transparent to us
10-6
Importing and Exporting Data
10-7
Importing and Exporting Data
Command Action
1043
Importing and Exporting Data
/-
Line0. 1 Roll0 - 19G8
.DATE 85 NOU 98 14:19:22 RID 85 NOV 98 CCM
.Included Report
*St.Status..
By Product .Serial.Produc.Order.Cust.Produc.
*Cd. Date .In. ----
Type .Number. Cost .. Numbr.Code. Plan .
OR 848110 LS BLACON4 94754 ARCO
SC 848110 LS BLACON5 675281 97441 FEDS 842131
END REPORT
Line'. 1 Roll -
.DATE 05 NOU 98 14:40:12 RID
MN= Example
*St.Statusilly. Product .Serial.
Ka. Date .In. Type .Number.
41=
AMCO 831223
03122.3
10-9
importing and Exporting Data
RET P
• Retrieve file or element exported to the OS 1100 environment
• Enter 'RET P' on line 0
RET P
Retrieve Program File Element
if ier name Cycle Element Version
Start line
Locate string
Number of lines
MAPPER format?
Include headings?
Shared Directory?
Drawer
Menu Selections
Qualifier, File name, Element and/or file name to retrieve from the
Cycle, Element, 1100 system
Version
Start line Line number from which to start retrieval or
start search for 'Locate string'. Default = First
line
Locate string Locate this string and start retrieval at that line.
12 character maximum.
Number of lines Number of lines to retrieve. Use for greater
efficiency with larger (over 500 lines) files.
MAPPER format? Enter 'Y' to retrieve a file in MAPPER format
Include headings? Enter 'Y' to add headings from report 0 of the
receiving drawer
Shared Directory? Is this file in a shared directory? Leave blank for
system default.
Drawer Receiving drawer for result
10-10
Importing and Exporting Data
Efficiency Hints
• Retrieve function
— Assigns area in MAPERO large enough for 500 lines
— Retrieves data until area is full
— Retrieving Large Files (500 + lines)
O Allocates another 5000 lines
O Retrieved data copied to 5000 lines
O Continues adding at 5000 lines until all data retrieved
Mapper 1100
\z/lines
77 lines
10-11
importing and Exporting Data
FILE
FILE
Create File
File name
MAPPER format?
Include headings?
Character set
Report
SINUS access: Cabinet Password
Cabinet Password
Cabinet Password
Cabinet Password
Menu Selections
File name Syntactically appropriate file name for the
operating system to which the file is being copied
MAPPER Format? Enter 'Y' to copy report in MAPPER format
Include headings? Enter 'Y' to include headings in copied report
Character set Enter character set desired
Report Enter number, drawer, and cabinet of report to
be copied
SINCL$ access If a SINCL$ data control command is included in
the copied report, enter any cabinet number and
password referenced by this command if outside
your current cabinet
10-12
Importing and Exporting Data
RET
• Retrieve file or element exported on any host environment
• Reports exported via FILE in one format should be retrieved in same
format
• Enter 'RET' on line 0 to receive Retrieve File menu
Menu Selections
File name File name to retrieve from the host operating
system
Start line Line number from which to start retrieval or
start search for 'Locate string'. Default = First
line
Locate string Locate this string and start retrieval at that line.
12 character maximum.
•
Number of lines Number of Imes to retrieve. Use for greater
efficiency with larger (over 500 lines) files.
MAPPER format? Enter 'Y' to retrieve a file in MAPPER format
Include headings? Enter 'Y' to add headings from report 0 of the
receiving drawer
Drawer Receiving drawer for result
10-13
Importing and Exporting Data
10-14
importing and Exporting Data
Starting a Job
• Enter 'START' on line zero and receive prompt menu
• Following activities performed when runstream. is STARTed
— MAPPER signs on to a Batch Port
— MAPPER creates result from report containing job commands
— Report placed on queue in 1100 for execution
Menu Selections
Report Report containing job commands to be executed
in the host environment
Run-id Enter run-id to replace run-id on @RUN
statement (optional)
Account Enter account number to replace the one on the
@RUN statement (optional
• @STR,c,d,r{,run-id,acct} .Run statement equivalent
10-15
importing and Exporting Data
@fin
END REPORT
Example Explanation
• ECL runstream must begin with @RUN statement and end with a @FIN
• @RUN identifies run-id, account number to be charged, and project-id of
user
• @ACOB does a COBOL compile of the symbolic element S in the file F
and produces a relocatable element named R in F
• @MAP collects R with system relocatables to produce an absolute
element named A in F
• @XQT executes the absolute element A
• $INCL$ specifies report 6B of cabinet 0 as the data to be used by the
executing element
• @EOF signifies the end of data being supplied to the executing element
• @FIN finishes the ECL runstream
Disadvantage
• Job is executed at a lower priority which means slower processing and loss
of interaction
10-17
Importing and Exporting Data
• ENDRD$, the end of the file, or the next BPRUN$ command signifies
the end of the data to be sent by the previous BPRUN$ command
• Send the file containing the commands to MAPPER via the appropriate
host command. @SYM ECL statement for the 1100, 'mapper' command
for the U Series and the 'run' command for the A Series. Check the
MAPPER Manual Functions Reference in the START manual function
area for further information.
10-18
Importing and Exporting Data
10-19
Importing and Exporting Data
BPRUN$ Example
Example Explanation
• Data is sent back to MAPPER from 1100
• @ASG creates and assigns a data file named JLD
• @ED,I is a line editor used to create the lines within the file JLD
• BPRUN$ indicates to 1100 that batch porting of data is to occur
- CRUN is the MAPPER run to start after data retrieval is complete
- ILD,1 is the MAPPER userid and department under which the result
will be created and the run started
0,0pen,A is the cabinet, cabinet password, and drawer to capture the
result created from the data retrieved
• CRUN contains
— @REP to replace the retrieved result into a permanent report
• ENDRD$ signifies the end of significant data to be sent by the previous
BPRUN$ command
• @FREE frees the file JLD so that it may be sent to MAPPER via the
@SYM statement
• MAPPER is configured as a printer named MAPPER and the auto
parameter SYMNAM also contains this name
• @SYM sends the file JLD to the destination symbiont called MAPPER
Note: To import large files, it is more efficient to fragment file with multiple
BPRUNVENDRD$ statements to limit number of lines to be imported at
one time,
1 0-20
Importing and Exporting Data
BPRUN$ Example
Mapper 1100
@Asg,up JLD.
@Ed,l JLD.
11:> BPRUN$ Crun JLD,1 0,Open,A
21:› *====sr.r...=======r...=
31:> These lines of data will be passed to
41:> Mapper as a current result. This data
51:> could be Mapper data previously exported
*===—===== 61:> or output of a program executed on the 1100
@Rep,0,1 9,A 71:> ENDRDS
81:> This data will not be sent to Mapper because
91:> It follows endrd
01:> @Edit Exi
End Editor
@Free JLD.
@Sym,u JLD,Mapper
19A
* =
These lines of data will
be passed to Mapper as
a current result. This data
could be Mapper data
previously exported or
output of a program
executed on the 1 100
10-21
Importing and Exporting Data
Rule of Thumb:
• Use the RET function to bring data into MAPPER vs. batch port
- RET reads large buffers
— Batch port reads only one line at a time
• Retrieve function may import data ten to twenty times faster than data
imported through batch port
10-22
Importing and Exporting Data
External Files
• EXFFILE Auto Parameter
• Not written to Recovery Tape
• Reduces I/0s
• Impractical where data must frequently be accessed and updated
• Intended to store archival or read only data apart from MAPPER's
database files to save space
• Operator keyin necessary to load file
If not loaded user who tries to access report will receive message that
report or form type doesn't exist
— If loaded the Rid and Type tables are updated and updates can be
performed to reports in file
• Updates reside in MAPERO
• Requires a special purge
— Not performed
• All External File updates lost
Purged
• Merged with reports
— File is freed and deleted from MAPPER
— No longer recognized by MAPPER as a MAPPER file
• File would have to be loaded again to be accessed
• Storing data in External Files is more efficient than keeping it in
MAPPER
10-23
importing and Exporting Data
Exercise
WR UTi EN:
1. Suppose a large number of reports were to be sorted and a Cobol
program on the 1100 would perform the sort. Describe the steps taken to
accomplish this goal.
LAB:
1. Use the FILE function to export a report from the demonstration
database in MAPPER format from MAPPER to the 1100. Repeat the
process, exporting the report not in MAPPER format. Also, try changing
the character set of the exported report.
2. Use the RET function to import the exported report back into MAPPER.
Again, use the various retrieval possibilities, such as MAPPER format vs.
not MAPPER format, etc. Note the effect each combination has on
retrieved data, based on how the data was originally exported to the 1100.
10-25
11
Data
Organization
and Index
Schemes
Module 11
Data Organization and Index Schemes
•
Objectives
Upon completion of this module, you should be able to:
Line 1
REPORT
Line 500
TARGET = 625
Line 1000
Line 500
Line 750
Line 1000
TARGET = 625
11-3
Data Organization and Index Schemes
Index Data
Report Report
Data
Report
Data
Report
11-5
Data Organization and index Schemes
Scenario
Solution
11-6
Data Organization and Index Schemes
8000002
• ~s~s•
100000
100001
100002
100495
100496
100497
101484
111
11-7
Data Organization and Index Schemes
Using an Index
• RCR to process
• First Binary Find will create an index result in 70B for reports 71-80
• Replace 70B with index result
Lined . ROD 4GEB
.DATE 98 14:87:4
7 RID 48E 30 AUG 96 CRAIG
.TEST1 BY: T.E. STING EN 10
@BFNAB„, A >I2,(LINE)I3 .
YOUR SERIAL NUMBER (192487) WAS FOUND.
IT EXISTS IN REPORT (REPORT> ON LIE (LINE>.
@BRX OUT,-0,3,4
@GTO END .
• Index report
.88495
X8998
181485
10089
182475
182978
183465
163968
184455
..... END REPORT
11-8
Data Organization and Index Schemes
Using an Index
• Second Binary Find searches index report for serial number 102487
(
LineO testa Ro1l0 48E8
.DATE 14 SEP 98 14:87:47 RID 46E 38 AUG 98 CRAIG
.TEST1 BY: T.E. STING 18
ie
@BFH,O,B, 18 BR?1-88 2-2 'SERIAL'
e b $:
SC 8401 LS BLACXBOX? 102488 9? 41 FEDS '40122
IP 83122? LS BLACXBOXI 182489 84351 AMCO 831227 831227
IP 831224 LS BLACXBOX0 182498 84389 AMCO 831223 831224
SC 848110 LS BLACXBOXI 182491 97441 FEDS 842131
IP 831224 LS BLACXBOXB 182492 84389 AMCO 831223 831224
SC 848118 LS BLACXBOX1 182493 97441 FEDS 849131
IP 831224 LS BLACKBOX6 182494 84389 AMCO 831223 831224
SC 848118 LS BLACXBOXI 182495 97441 FEDS 840131
IP 831222 LS BLACKBOX2 102496 84848 AMCO 831222 831222
IP 831224 LS KAMM 102497 84389 AMCO 831223 831224
IP 831225 LS BLACKBOX4 182498 84398 AMCO 831223 831225
IP 831219 LS BLACKBOX5 182499 84353 INTR 831218 831219
*: ' • " • o:... .4
el
$
11-9
Data Organization and Index Schemes
Scenario
The record containing serial number 103000 was taken out of production
because of an engineering problem. The problem was resolved and the
designer now needs to place the record back into the data set. What would be
the fastest and easiest way to find the appropriate place for entry?
Suggested Solution
11-10
Data Organization and Index Schemes
• RCR to process
I-
LINES tifr RLQ SHFT0 HLD CHM,. HLD LN0 UNDO 48E8 0
.DATE 98 88:34:24 RID 48E 14 SEP 98 CRAIG
.TEST1 BY: T.S. STING E88 18
ift
isliFNAB„,211 178 'SERIAL' LIMON <REPORT)I2,(LIMI3 .
6120:IF STAT1$ NE 1 GTO 99 ; MAKE SURE THAT THIS IS A NO-FIND SITUATION!
@LOH,O,B,(REPORT)
@LN+,8J BISREPORD,ILIND,1 .
@INC <On)
@WRL,_ {REPORT M LINE) 2-2,5-6,12-2,15-9,'SERIAL1 ,39-5,45-4 LIP,831224,\
B m
8,_„„
LS ELAciX1,183eN,84389,AMO .
@ULX
@DSP01,13,<REPORT),(LINE),„,/ HIT Fl TO CONTINUE WITH THE RUM' .
EiGTO END
L199
ALTERNATE
ERROR
ROUTINE............
Explanation:
Scenario
A police department in Texas has the need to work with thousands of items
spread over many reports. A run designer needs to provide users fast access
to the data. They also need the capability of several sorted keys so they can:
• Trace the owner of an abandoned car whose plates had been stripped -
Vehicle ID number as key
• List all 17 year old drivers to generate a memo reminding them of the
new photo license law - Driver's license number as key
• Trace the cause of hit and run accident based on the knowledge of a
license plate number - License plate number as key
Solution
Choose unique fields to provide alternate access paths to the same set of data.
Each new key will have its own Binary Find Index which in turn points to the
Main Index Report based on case number.
Math Index will point to actual data reports which weregrouped and sorted
by case number.
Disadvantage
In this case, the police were more concerned with access speed to the database
rather than mass storage utilization.
1112
Data Organization and index Schemes
Drivers Case
License
Main index
Report Data
Report
Dr!Vers Case
Name Sorted on
Case
Data
Report
License Case
Plate
Data
Report
Vehicle Case
Number
Data
Report
11-13
Data Organization and Index Schemes
Solution
Trade-off
11-14
Data Organization and Index Schemes
Telephone Application
11-15
Data Organization and Index Schemes
Quite often users and run designers are required to keep report sizes to 500
lines or less. Remember: MAPPER processes smaller reports much faster
than large reports. In this scenario, a run designer is working with thousands
of serial number items. How does the designer efficiently access this large
data set and yet comply with report size restrictions?
Solution
Disadvantage
11-16
Data Organization and Index Schemes
Inventory Application
.002 + 1
500 5636-7-
1.00
it resides in Report 1
199 + 1 — 200
500 99999
11-17
Data Organization and Index Schemes
Number Generator
@HSH v=vld,min-max
or
@LDV,N v=vid,min-max
11-18
Data Organization and Index Schemes
Scenario
A run designer has the need to write a data entry routine involving many
items. In this scenario, the designer's primary concern is to have all entries
evenly distributed across 3 consecutive reports. How does the designer
randomly distribute the data and then access the data without knowing in
what report each will be placed?
Solution
Tradeoffs
11-19
Data Organization and Index Schemes
11-20
Data Organization and Index Schemes
11-21
Data Organization and Index Schemes
Parallel Drawers
Scenario
A run designer has the need to design reports which exceed 256 characters in
width.
Solution
Tradeoff
1 1 -22
Data Organization and Index Schemes
Parallel Drawers
lb 1c ld
* 11,111.1 MIND ONO MI= MOO OWN MOND
1 1 -23
Data Organization and Index Schemes
1 1 -24
Data Organization and Index Schemes
Exercise
1 1 -25
A
Run Debug
1100
Run Debug 1100 Review
Appendix A
Run Debug 1100
Objectives
Upon completion of this module, you will be able to:
A-1
Run Debug 1100 Review
A-2
Run Debug 1100 Review
RDBP►
1MTEST REPORT:7EG
3 it-
A-3
Run Debug 1100 Review
• Help
• Exit
• Throttle
• Display
• Breakpoint
• Monitor
Execute
• Error
Function Definitions:
A-4
Run Debug 1100 Review
Help Function
RHO.
Rift REPORT:7EG
3 I•
RDB Commands
Throttle Breakpoint
F1 ..... Line step B n ....... Line number n
F2 Command step B Ln Label number n
F3 . ISIS Normal speed (start/stop) Un SOOSOS Variable number n
14 ...SS Stream (start/stop) B (name) .. Variable name "name"
B @cmd .... Statement "cmd"
Display B Clear breakpoint
R Run control report Monitor
-n ...... Rename number n
Un ..... Variable number n N Un SI Variable number n
(name) .. Uariable name "name" M <name> Variable name "name"
rsw$ Reserved word N rsw$ Reserved word
MSWISS SI Clear monitor
Other
@cmd .... Execute statement "cmd" A MOM II Quit run
........
A-5
Run Debug 1100 Review
Throttle Commands
The examples shown assume RDB was initiated manually. Results would be the
same if @RDB were entered as the first line of the RCR.
Run Debug 1100 Review
Throttle Example
• The following pictures are the result of consecutive Fl (line step)
requests. The line following the last SOE character is what will be
processed with the next Fl request.
RDBO
RUN TEST REPORT:7E0
3 O. *-
RDBO
RUN=TEST REPORTene
RDBO.
RUNTEST REPORT=7E2
30 ift
4 0 RDU,11 (USERA8=USERSL(TIMMMES TI LDU,P (USER) .
5 NORAB,2 'PRODUCT TYPE' ,1
RDBO.
RUN TEST REPORTeng
3 0' ie
4 0. RNA (USER)A8=USERS,(TIME)A8=TINE$ !VLF (USER)
5 0. MOR,81 11,2 " 'PRODUCT TYPE' A.
). WM -1 .
A-7
Run Debug 1100 Review
Display Functions
A-8
Run Debug 1100 Review
Display Example
• Display the value of the variable <user > .
I
RDI* RT:7E0
RUN:11 10
3
4 IP @LD1.1,11 (USql?Afil:USERSALL(TIME)A8::TIPIES LIV,P (USER) .
5 0 @SOL 8 B, 2 ' PRODUri TYPE' , i
01. @RNM .
DD.
RU TEST REPORT:7E8
3 Ilk
4 OP @LD1.1,11 (11SEF/AMSERSL(TIME)A8::TIMES LDV,P (USER) .
5 NORA B,2 'PRODUCT TYPE' ,1
6 Of @RPM -1
mum
A-9
Run Debug 1100 Review
Display Example
(
RD, al
RIMEST REPORT=718
3 O. 411
4 RNA (USERABISEEMTINDAMINIS LICP (USED .
5 ' MOR,B13,2 'PROM ,1
-1 .
(USEDACASER/
(
linO 1 NO rl shf0 hld chrs hid ino,
.DATE MAR 98 11:11:17 RID 23 26 FEB 98 MAPPER
.@991231 Production Status Refort Corporate Production B 8882
*St.Status.By. Product .Serra .ftoduc.Order.Cust.Produc.Produc. Ship .Ship .Spc.
*Cd. ______ __ Type .Number. Cost .Numhr.Code. Plan .Actual.
Date An. __ . _Order.
______ _ .Date _____ Cod.
___
. . . .
SH 831283 LS BLACKBOXO 746327 54237 FEDS 831281 831282 831203 58738
IP 831224 LS BLACKBOXI 436767 84389 ANCO 831223 831224
IP 831225 LS BLACXBOXI 436768 84398 AMCO 831223 831225
IP 831219 LS BLACXBOX2 637871 84353 INTR 831218 831219
OR 848118 LS BLACKBOX4 94754 ARCO
SC 848118 LS KAMM 675281 97441 FEDS 848131
IP 831222 LS BLACXBOX5 737582 84848 AMCO 831222 831222
SH 831202 LS BLACKBOX6 368661 54438 FEDS 831281 831281 831202 56937
SH 831289 LS BLACXBOX6 777324 54232 DICO 831227 8312 831209 S8538
SH 831283 LS BLACKBOX6 785367 52833 ARCO 831201 831282 831283 S8934
IP 831216 LS BLACKBOX6 926581 89381 INTR 831215 831216
OR 831218 LS BLACK:NV 99842 FEDS
OR 83122? LS BLACXBOX? 99725 INTR
SC 8481 LS BLACKBOX? 665481 97541 FEDS 848122
IP 83122? LS BLACXBOX? 733597 84351 AMCO 831227 83122?
SH 831282 LS BLACXBOX? 744627 44232 INTR 831281 831281 831202 S8531
IP 831215 LS BLACKBOX7 933581 84381 FEDS 831215 831215
OR 831239 LS BLACUOM8 92788 FEDS
A-10
Run Debug 1100 Review
Display Example
• Enter 'R' to display the RCR
( RDS
RftitalT REPORT:7EO
0. @MI -1 .
A-I I
Run Debug 1100 Review
Breakpoint Functions
The following example illustrates the use of breakpointing to halt the run at a
specified point, providing the ability to check the status of variables or
reserved words at any desired point in run execution.
A-12
Run Debug 1100 Review
Breakpoint Example
RDI31
Rift REPORD:7E2
3 if=
RDB
RUtTEST REPORT-?E8
3 4
RDBO.
MTEST REPORT:7E9 BREAKPOINT 18
L -0 " 'RETAIL' /WHOLE' /DEMO RESULTS' ,A,B,C+ C=A-B (TOTALMO .
-2
A-13
Run Debug 1100 Review
Breakpoint Example
• With the run breakpointed, check the contents of the variable < total >
before continuing
RT::71C0 BREAKPOINT:18
9 10. " 'RETAIL' 'WHOLE' DENO RESULTS' ,A,B,C+ C4A-B <TOTAL)I8 .
BREAEPOINT
19 O. @RNM -2
RBBB
Rift TEST REPORT:7E8 BREAKPOINT:10
9 0. @CAL,-0 " 'RETAIL' 'WHOLE','DEMO RESULTS' ,A,B,C+ C=A-B (TOTAL)I8
BREAXPOINT
14 -2
A-15
Run Debug 1100 Review
Monitor Functions
M V# Monitor Variable #
A-16
Run Debug 1100 Review
Monitor Example
• Enter 'm time$ ' to monitor the value of the reserved word 'TIMM'
• Each of the following displays is the result of execution via Fl (line step).
RiltiTEST REPOIr1=7E0
3 3E:
Ting-M:56: 311
USEDA8:USERS,(TINDA8=TIME$ LDU,P (USER)
RDBO,
ItiftTEST REPORT:77E9
3 Op *-
TIMM/1M 56 :31/
TINES:118:56 :45/
USER)48:USERS,(TIME)A8=TIME$ LDU,P (USER)
11107.116:5
,P. VORA " 'PRODUCT TYPE' ,1
A-17
Run Debug 1100 Review
Execute Functions
A-18
Run Debug 1100 Review
Execute Example
• Insert an @LDV statement before the first line of code in the RCI is
processed.
•• • : : :• ..• : : : :•:
RDB
RiltTEST REPORT:7E8
30 *
INSERT4 @LD1.1 (COUNTEDI2:11
3 ife-
A19
Run Debug 1100 Review
Error Mode
• To verify correction:
— Exit RDB
— Re-execute the run under RDB
A-20
Run Debug 1100 Review
Exercise
1. Copy the 'MARK' run (3E0) into your RCR. Execute the run manually
under RDB. What appears on the screen?
a. Line step the run five times. What line will be processed next?
b. Display the variable RETAIL. What are the contents?
c. Change the value of RETAIL to 400000.
d. Display the variable again. Has it changed?
e. Command step the run. What line will be processed next ?
f. Display the renamed result -1.
g. Return to the Run Debug prompt screen.
h. Stream step the run.
i. Continue RDB from the displayed result.
j. Exit the RDB utility.
2. Again, execute the run manually under RDB.
a. Monitor the variable named RETAIL. What changed on line 2 of the
display?
b. Set a breakpoint for line number 10. What changed on line 2 of the
display?
c. Stream step the run. What is the value of the variable < RETAIL>
when the run halts?
d. Exit the RDB utility.
3. Remove the parentheses from the @SUB statement option field. Insert
the RDB statement as the first statement of the RCR.
a. Execute the run
b. Step the run (F1) until there is an error.
c. After the run halts in error, enter RDB Error mode.
d. Display the renamed result 4. Can the result be shifted?
e. Return to the 'error mode' prompt screen.
f. Display the value of variable RETAIL.
g. Display the RCR. What steps are necessary to correct the error and
execute the run successfully?
A-21
B
Four-to-One
and
Five-to-One
Screens
Appendix Name
Appendix B
Four-to-One and Five-to-One Screens
Appendix Name
B-3
Appendix Name
FCC Characters
M Characters Emphasis
Tab Stop Protect Characters
No B RF V
Yes
Yesbr f v
Low
No j Z
Ei A
No
On Yes I z n
No @ p 0 T
Norm Yes ' P '4...:,. t
Yes
No H X L \
No Yes h x I <
No CS GW
Yes Yes c s g w .
Low
No , K [ 0 -
No
Yes k { 0 >
Oft ,.
No AG EU
Norm Yes
Yes
No I Y M I
No
Yes I Y m }
No 0
Normal
Yes ii
Lett
No P
Reverse Yes X
No Editing
No 0
Normal
Right Yes L
No T
Reverse Yes \
Normal
No .121J.::
,
Y es , I
Left
No 0
Reverse
Alphabetic Only , Yes Y
No E ,
Right Normal
Yes M
NoU p,
Reverse Yes
No 8
Normal Yes j
Left
No , R ,
Numeric Only Reverse Yes
No F
Noma!
Right Yrs , N
No V ,
ROMIG Yes ..
No , c
Normal Yes, K
Loft
No lt,:
Protected Reverse Yes
No a
Normal Yes 0
Right No w
Reverse Yes --
B-4
Appendix Name
4-tot Example
@brk
M line N d
N line S
Emphasis
Data State: $$
@brk out,-0,2,1,1,1,y„,4 .
NO NO NO
! NO NO YES
,..... - :._..
-..-
NO .........
:.. YES
:.........
...*.".:11
,....... NO
NO YES YES
( YES NO NO
) YES NO YES
' YES YES NO
- YES YES YES
B-5
Appendix Name
4-to-1 Example
• Run statements
Wok .
N a N
S @ s
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
NAME...:Ule
a N
@ s
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
STREET.:Ull
@a N
S
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
CITY...U12
dN BN a Nd Na N
AS BS B SB SB S
$$ $$$$$ 55$ 55$ 555$
STATE..:U13 ZIP:U14 PHONE:(v15)v16-y17
Mok out, -9,2,4,1,1,y„,4
• Output
I
NAME .:U18
STREET.:Uli
STATE..:U13 MP:1114 PHONE:(v15)v16 v17
B-6
Appendix Name
5-to-I
L H P X h p x
Black
t A :()Ytt I q y
Red
t
e 13 X b j r z
Green
r
Yellow C K S c k s {
C
Blue D L T I t I
0 Magenta E M U 1 e u }
r
S
F N V ,, f n y 0,
Cyan
White G 0 W ._ g o w
8-7
C
Working With
MAPPER
Forms
Working with MAPPER Forms
Appendix C
Working With MAPPER Forms
c-i
Working with MAPPER Forms
What is a Form?
C-2
Working with MAPPER Forms
Form Example
♦ This form creates the Line Zero (LZ) manual function menu. The three
basic parts for the form are function key mapping, screen image
commands, and context-sensitive help.
Line,. 1 14H286
.DATE 27 MAY 98 94:23:59 RID 14H 24 NAY 98 THALHUBER
.Line Zero Information (LZ) Function Forms Version: 35R1
PREP,(pr,hac)
FREY,1,Re*ume,rsm
FEEY,2,Paant,pnt
FHEY,4,Return,formret,7
FREY,8,Help,asphelpil
FREY,111,Quit,A
PC,1,6111 12"
FLD 3,24,5,35,an,(PR,boc)
F1,10,24„35,ov,(FR,tc), ' Line Zero Information
DFLD ,u,(ts,aijc);DFLD,',(ts,co,fc)
AREA:,4,25,3,33„(pr,mc)'
Report
END
DSPFORML242E,1,1
HELP,1 a
Report
2Paint 4Return 6Tasks Mew 1BEdit
C-3
Working with MAPPER Forms
Form Example
• LZ menu. Select F8 for context help
4Return 10Qui t_ _
Displaying a Form
— @SC (format 2)
o From another form
C-5
Working with MAPPER Forms
FKEY Command
FKEYIkynAitlelaction
FKEY command identifies
— what function key it is mapping
— What label should appear on what function key
bar (up to 6 characters)
— What action should be taken if that key is
pressed by the used.
C6
Working with MAPPER Forms
FKEY Action
C-7
Working with MAPPER Forms
• Below is the run code for the Search manual function menu.
I
Line). 1 Ro1100 5H286
.DATE 27 MAY 98 84:23:58 RID 511 24 MAY 96 THALHUBER
.Search CS) Function Forms Version: 35111
PREP, (pr bac)
nian14
FRENtiti,
FREY*
FNMA
PC 1
3,19,6L43,afb,(PR,Loci
FLP;3,I9, 43,c1.04(FR,tc )„ Search Report Data '
DELD,ai u:(tst#1,fc);DFLD,n,u,(ts,no,fc);DFLD„,(ts,co,fc)
AREA,4:26,4,41„(pr,mc)
Report or drawer __Ai
Format number _p
END
DSPFORM,265E,1,1
HELP,1 9
Report or drawer
_ 2Paint 4Return asks C 'M ew H elp 9 18Edit
0-9
Working with MAPPER Forms
C-10
Working with MAPPER Forms
OCT SUN NON TUE WED THU FRI SAT NOV SUN NON TUE WED THU FRI SAT
1998 1 2 34 5 6 1998 1 2 3
7 8 9 18 11 12 13 4 5 6 7 8 9 18
14 15 16 1? 18 19 28 11 12 13 14 15 16 1?
21 22 23 24 25 26 27 18 19 29 21 22 23 24
28 29 38 31 25 26 2? 28 29 38
DEC SUN NON TUE WED THU FRI SAT JAN SUN NON TUE WED THU FRI SAT
1998 1991 i 2 3 4 5
2 3 4 5 6 7 8 6 7 8 9 18 11 12
9 18 11 12 13 14 15 13 14 15 16 1? 18 19
16 17 18 19 28 21 22 28 21 22 23 24 25 26
23 24 25 26 27 28 29 27 28 29 38 31
30 31
FEE SUN NON TUE WED THU FRI SAT NAR SON NON TUE WED THU FRI SAT
1991 1 2 1991 1 2
3 4 5 6 7 8 9 3 4 5 6 7 8 9
le 11 12 13 14 15 16 18 11 12 13 14 15 16
1? 18 19 28 21 22 23 17 le 19 28 21 22 23
24 25 26 2? 28 24 25 26 2? 28 29 30
31
JAhead 2Back 3YrA4 !MLR_ 5 6 7 Hell) 9 Mit
C-11
Working with MAPPER Forms
FREysie It A p,calenaar
PC,(row5,g," i <M1)(1-3)";PC,,+37,___
"'(142)(1-3)"'
PC,+1,3; (141)(0-4)" PC„ +36; " 012)(8-4)" ;
DATA,<row),1,7L
SUN MON TUE WED THU FRI SAT SUN MON ITE WED THU FRI SAT
RDL,-2,<L) <C1>-28 011)s INC,6 (IX RLN,<L) (CV-28 012)s DEC,5 (L)
OU> (K2)
PIF (L) LT 8, (lin-2) ,
FID,0014),89,1,29,u,(MICl/GRE);FLD,+1,89,6,29,F,R1),WHI/BLID;
F11,0011>,49,1,29,u,(RIMOU/GRE);FLD,+1,49,6,29,f,(RU,WHI/BLU);
COIF (N) EQ 0,(1100)
C-12
Working with MAPPER Forms
C-13
Working with MAPPER Forms
'0' in key number subfield position associates this action to transmit key,
whatever it is for the particular terminal in use.
• Lines beneath SELECT action line
— What action to take if user transmits from fields 1-6
• Six fields are designated in the AREA section of this form by the
underscore (-) character.
— Field 1- Run called BIO will be executed
— Field 2 - Run called BIOC will be executed
— Field 3,4,5,6 all runs executed
• Also acceptable to execute any manual function based on the user's field
position
LIHE0 1 FMT RLO SHFT HLD CHM HLD LN0 UMW 5E8 0
.DATE 16 OCT 90 10:34:42 RID 5E 25 SEP 87 WEBMJG
.SELECT EXAMPLE DEMONSTRATION RUNS ENNA
PREP
FREY, 4, RETURN FORMRET, 4
FREY e„SELEd
1,1d0
2,BIOC
3,MATH
4,DEBT`
5,MONTHCAL
ALMEARCAL
MY 18 QUIT (P
FLD,3,16,18 tO4FBIORLBOC)
FLD,3,18, 14(rR,TO„' DEMONSTRATION RUNS '
DFLD„,(T Co Fc)
„
area 4,1 7 8„(PR,MC)
e
BIORHYTHM GENERATOR 1111111,
• OD Poll
C-14
Working with MAPPER Forms
Demonstration Runs
Biorhythm Generator
Biorhythm Compatibility
Math quiz
Mortgage Payment Calculator
Monthly Calendar
Two-Year Calendar with Picture
1 2 3 4Return 3 6 leQuit
1 Row:6 Co1:27 WOCT/16 16:41
C-15
Working with MAPPER Forms
C-16
Working with MAPPER Forms
HELP Identifier
C-17
Working with MAPPER Forms
Function Form AR
• FKEY command for key number 8 shows
— Key label says 'Help'
— Context-sensitive help is requested (DSPHELP)
— Form is immediately directed to line 21 (the first HELP identifier)
— Help text shown for field number one
• Start printing on line 8 of terminal screen
• Vertical bar character (f) on far right of line specifies width of text
• All lines immediately following this HELP identifier, and until next
HELP identifier, will be displayed as context-sensitive help
ul
M1,6141 AW
Fla z,5,6,71,afkgR,Loc)
F14;215,,714cy,(FRa tc),Z_Ada Report '
DFLD,inpLua(ts,aisic);DFLD„,(ts,co,tc)
AREA ,,' ,?,4,6?,,
Report or drawer inp
Title linp
C-18
Working with MAPPER Forms
Function Form - AR
C-19
Working with MAPPER Forms
0-20
Working with MAPPER Forms
• Numbered pages
— Can be called externally by using DSPFORM
— Can be called internally by Using 'PAGE' action
on FKEY
• Non-Numbered pages
— Referenced only from within same form by
PAGE FKEY action
C-21
Working with MAPPER Forms
#PAGE,[n]
C-22
Working with MAPPER Forms
C-23
Working with . MAPPER Forms
— FKEY,1,'
o All three examples map function key number 1 to
no action and put no label on the function key bar
o First one most efficient - Less characters to interpret
C-25
Working with MAPPER Forms
C-26
Working with MAPPER Forms
• RCR continued
Line 45
This is the third (and
last) page of this
example. The RollFw
has been disabled
because there are no
more pages. Press (3$
to page backward.
pc,I,1
• II • • • • • END REPORT . • IP • • •
C-27
Working with MAPPER Forms
1 2RollFw 3 4 5 6 7 8 9 10Quit
1
2
This is page two. From
here, you can page
foward or backward by
pressing F2 or F3
1 2 3RoilBw 4 5 6 7 8 9 Vault
C-28
Working with MAPPER Forms
C-29
Working with MAPPER Forms
• RCR continued
Line0. 45 Rol l
This is the third (and
last) page of this
example. The RollFw
has been disaLled
because there are no
'ore pages. Press f3$
to page backward.
pc,1,1
END REPORT
C-30
Working with MAPPER Forms
Displays a form
Calls and interprets a set of screen
control commands
• Similar to the @SC run command
• Allows you to specify which PAGE to
start at (initial page) in the form
*discussed later
— @SC does not
C-31
Working with MAPPER Forms
C•32
Working with MAPPER Forms
I
.DATE 2? MAR 99 97:29:40 RID il1E 2? MAR 90 MAPCOORD
.DSPFORM, FORMRET Example Demonstration Runs
opts,sl
data „9,1
ey ii8Quit„
fla,Z,140,3Z„afh,(pr,whifoga)
area„3,15,5,38„Cpr,m0
This is form A.
AGE
key, „Quit,.
fla,4,18,7,3z„afb,(pr,whi/gel)
area„5,19,5,38„(pr,mc)
This is form B.
1Resume 2Paint 3 4Return 5 Vasks ?View 8Help 9llndo 19Edit J
C-33
Working with MAPPER Forms
DSPFORKFORIVIRET Example
This is form A
114IxtFrm 2 5 7 8 9 1000
This is form A.
1NxtFrm 2 3 4 5 6 7 8 9 10Quit
C-34
Working with MAPPER Forms
C-35
Working with MAPPER Forms
C-36
Working with MAPPER Forms
DSPFORM Example
• DSPFORM,rd[c,pgn,tab,0]
• 0 option = Default
• Places this form on the top of the stack
• In this example, no other forms were on the stack
• If other forms were on the stack, this form would be placed on top
STACK
Form A
• DSPFORM,rd[cipgn,tab,l]
• Option 1, clears all current entries on stack
• Put this form on stack
Assuming stack currently looked like previous example (FORM A}, this
option would remove that form and put this form (B) on.
STACK
Form B
C•37'
Working with MAPPER Forms
DSPFORM Example
• DSPFORM,rd[c,pgn,tab,2]
• Option 2 - Put this form on top and mark current from for return
It marks current form on display for return from a FORMRET,2 action. This
means, there is a FKEY action called FORMRET which returns to a specific
form on the stack, and if that FORMRET uses a 2 option, the current form
will be displayed.
STACK
Form C
Form 13
• DSPFORM,rd[c,pgn,tab,3]
REMEMBER: Option 3 is not available on 1100 series
• Option 3 - Adds form specified on this DSPFORM action to top of the
stack
• First it saves the current screen (exactly as the screen currently exists).
• If FORMRET,3 action is encountered, it will re-display current screen
exactly as it exists (including a report, if one is on display)
STACK
Form D
Form C $
Form B m
C-38
Working with MAPPER Forms
DSPFORM Example
• DSPFORM,rd[c,pgn,tab,4]
• Do not put the specified form on the stack
Form will be displayed, but the stack will not be changed and you will never
be able to use the FORMRET action to return to this form.
STACK
Form D
Form C S
Form B m
• DSPFORM,rd[c,pgn,tab,5]
• Option 5 - Overwrite the current top entry with this form
STACK
Form F
Form C S
Form B m
C-39
Working with MAPPER Forms
C-40
Working with MAPPER Forms
FORMRET Example
• Stack has eight forms on it (Forms A through H)
This is form H
C-41
Working with MAPPER Forms
FORMRET Example
FORMRET[,O]
• Option 0 - Default option
• Return to previous entry (previous form on the stack)
Assuming that FORM H was the last form displayed, a FORMRET,O from
that form will redisplay FORM G.
STACK
Form H
Form G
Form F
Form E
Form D
Form C
Form B
Form A
This Is form G
C-42
Working with MAPPER Forms
FORMRET[,1]
STACK
Form H
Form G
Form F
Form E
Form D
Form C
Form B
Form A
This is form A.
This is form H.
C-43
Working with MAPPER Forms
FORMRET [,2]
STACK
Form H
Form G
Form F
Form E
Form D
Form C
Form B
Form A
M
This Is form B
S
This is form H
C-44
Working with MAPPER Forms
FORMRET[,3]
• NOTE: Option 3 is not available on 1100; it has been shown to inform you
that this option is available on other systems.
• Returns to the form that was save with a 3 option on the DSPFORM
command
• If no save, return to logo
• Current screen is saved exactly as it exists
If at a particular time, there are 3 forms and a report on display (as in a
'form-overlay' situation), all of them are saved in one entry on the stack.
STACK
Form H 1
Form G
Form F
Form E
Form D
Form C S
Form B m
Form A
S
This is form C
C-45
Working with MAPPER Forms
FORMRET[ 4]
• Returns to top entry of stack
• Typically used when current DSPFORM does not put entry on stack
(dspform,option 4)
STACK
Form H
Form G
Form F
Form E
Form D
Form C
Form B m
Form A
This is form H
C-47
Working with MAPPER Forms
FORMRET[,5]
• Redisplays report currently on display (if there is one) and re-displays the
form from the previous entry on the stack
• For options 5,6,7 of FORNMET, must have 'L' option in screen control
Tells the form to remember that a report was actively on display at the
time that form was displayed and to 'remember' that report
— If 'L' option is not active when a form is displayed (DSPFORM), the
report will not be 'remembered' and will not be accessible upon
retuniing to that form
STACK
Form H
Form G report
Form F
Form E
Form D
Form C
Form B
Form A
This is form G
C-48
Working with MAPPER Forms
FORMRET[,5]
C-49
Working with MAPPER Forms
FORNIRE1[,6]
STACK
If no report If report
Form H
Form G report
Form F
Form E
Form D
Form C
Form B
Form A
1MMM1.11.NIMII
This is form G
C-50
Working with MAPPER Forms
FORMRET[6]
I
Lined 1 Rall
.DATE 12 JUL 911 12:26:20 RID 2B 26 FEB 96 ACAS 2Be
.@991231 Production Status Report Corporate ProductionB
*St.Status.By. Product .Seria1.Proauc.Order.Cust.Produc.Produc. Ship .Ship .Spc.
*Cd. _ -- .In. Type .Number. Cost .Numbr.Code. Plan .Actual. Date .Order.Coa.
m=4_--Date
IP 831224 LS BLACXBOXI 436767 84389 AMCO 831223 831224
IP 831225 LS BLACKBOX1 436768 84390 AMCO 831223 831225
IP 831219 LS BLACXBOX2 637971 84353 INTR 831218 831219
OR 849119 LS BLACXBOX4 94754 ARCO
SC 840119 LS BLACXBOX5 675281 97441 FEDS 848131
IP 831222 LS BLACXBOX5 737582 84848 AMCO 831222 831222
SH 831283 LS BLACXBOXO 746327 54237 FEDS 831261 831282 831283 S8738
58 831282 LS BLACKBOX6 368061 54438 FEDS 831221 831281 831202 $6937
SH 831209 LS BLACKBOX6 777324 54232 DICO 83128? 8312 831299 s8538
SH 831283 LS BLACXBOX6 785367 52833 ARCO 831201 831282 831223 $8934
IP 831216 LS BLACXBOX6 926581 89381 INTR 831215 831216
OR 831219 LS BLACXBOX7 99842 FEDS
OR 831227 LS RACISM 99725 INTR
SC 8481: LS BLACXBOX7 665481 97541 FEDS 840122
IP 831227 LS BLACXBOX7 73359? 84351 AMCO 83122? 831227
SH 831292 LS BLACKBOX7 744627 44232 INTR 831201 831281 831202 88531
IP 831215 LS BLACXBOX7 933581 84381 FEDS 831215 831215
1Besume Mint 3 4Return 5 6Tasks ?View BHelp 9 Mat
1 Row:1 Col:24 90/4CT/16 11:59
C-51
Working with MAPPER Forms
FORMRET[,7]
if no report If report
STACK
Form H report
Form F
Form E
Form D
Form C
Form B
Form A
This is form H
FORMRET[,7]
(
Line 1 Rol D, 2
.DATE 18 JUL 98 12:26:20 RID 2B 26 FEB 98 ACAS
.0991231 Production Status Report Corporate Production 11068862
*St.Status.By. Product .Seriai.Proauc. Order.Cust.Produc.Produc. Ship .Ship .Spc.
*ca. Date .In. Type .Number. Cost Numbr.Code. Plan .Actual. Date .Order.Cod.
--- ---- - - OMMIDOOP
C-53
Working with MAPPER Forms
Function key bar normally displayed with a report is set to these values
This key ma ing is done internally in the code and can only be changed by
using the @: Y run command.
C-55
Working with MAPPER Forms
C-56
Working with MAPPER Forms
@FKY Command
• Allows run designer to set function key mapping
• Applies to @DSP, @DSX,@DSM,@OUM run commands
• Desired key mapping (FKEY commands) must exist in a report (or result)
• @FKEY associates them with specific report (or result) being displayed
• Specified function key mapping will remain in effect until the run
terminates
• If run does an @LNK to another run, another @FKY command
establishes new function key mapping, or it is 'turned off by specifying
@FKY with no report or result
C-57
Working with MAPPER Forms
Named Area
- 1NPUT$,INVAR$
o Only pick up Input from the current names area
C-59
Working with MAPPER Forms
Named Areas
• 2 named areas in the form in the run
— First named area is called 'fruit'
— Second named area is called 'pet'
• Both areas appear on the same screen display
• Only the information from one area will returned to the run
— The area that the cursor is currently in when the user presses transmit
• Name of that area will be contained in AREAS
• Field selection will be in MELDS
• Based on these two reserved words, logic of run will produce correct
output message at label 020
Linel 1 - 185E8
.DATE 16 MAR 98 12:14:17 RID 105E 16 MAR 99 WIPCOORD
.Names Area Example BY:
118901:brk .
prep;optsi sme,r514
ikey,4LReturniformret
fkegLikiluita A
flat3,i8,9,26,an,(pr,whiloya)
ifld ,(ts,ai)
area:fruit,6,11,7,24„(pr,mc)
Select Your Favorite
Apple
Orange
Pear
42,9,26, afb, (pr, whi/cya)
and,,ts, ai )
area, pet,11,43,7,24„ (mow)
S'el'ect 96itzt
Cat
Dog
Mouse NMI
C-60
Working with MAPPER Forms
Named Areas
Menu is displayed containing both areas
Ore turn t
Message is displayed
C-61
SCGEN Run
APPENDIX D
SCGEN Run
OBJECTIVES
1. Use the SCGEN run to build output screens and generate @SC code.
D-1
SCGEN Run
SCGEN Run
• Scratch-pad is displayed
• Position cursor, enter text and transmit
D•3
SCGEN Run
D-4
SCGEN Run
• Scratch-pad is redisplayed
• Position cursor to where user input field is to begin and select 'Field' (F1)
date7$
time$
D-5
SCGEN Run
1 2 3 4Return 5 6 8Help 9 le
D-6
SCGEN Run
• Receive scratch-pad
• Select 'View' (F3) to see how screen would appear to user
date7$
tine$
D-7
SCG EN Run
. • ... ..
• Receive scratch-pad
• Position cursor to upper left corner of optional frame to be placed around
text and select 'Frame' (F2)
daten
tines
D-8
SCGEN Run
Building Frames
• Next step is to position cursor to lower right corner of frame and transmit
date7$
tineS
D-9
SCGEN Run
Adding a Frame
Border inputs:
Border color Enter color of frame border
Protect? Should user be prevented from placing cursor on
border?
Line border? Y = Fine line border, N = Broad line border
D-10
SCGEN Run
Adding a Frame
• Receive scratch-pad reflecting added border
• Select 'View' (F3) to display screen as it will appear to user
......
. .. .
.. ... .. .
_•:•••••••:,
D-1 1
SCGEN Run
date7$
timeS
D-13
SCGEN Run
111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111
1
aate7$
time$
D-14
SCGEN Run
Generating SC Commands
• Fill out Title Select screen for 'A' report title
4Return 5 SHeip 9 18
JUN 98 CCM
Freeform Reports
D-15
SCGEN Run
chg inputS vi 2
Y1
..... END REPORT
JUNE?,_,1998
12:24:67
• Name input by user is captured via @CHG 1NPUT$ and placed in the
output area for display upon run termination
l RESULT
r.
ineft 1 87 JUN 981114:37
Ro - REPORT GENERATION Cal
..... END REPORT ....a
D-16