Mapper Rundesign Vol2
Mapper Rundesign Vol2
Run Design
Operations
Reference Manual
Volume 2:
Run Statements
May 1990
Printed in U S America
Priced Item 7831 9274-000
UNISYS MAPPER® System
Run Design
Operations
Reference Manual
Volume 2:
Run Statements
May 1990
Printed in U S America
Priced Item 7831 9274-000
The names, places, and/or events used in this publication are not intended to correspond to any individual, group, or association
existing, living, or otherwise. Any similarity or likeness of the names, places, and/or events with the names of any individual, living or
otherwise, or that of any group or association is purely coincidental and unintentional.
NO WARRANTIES OF ANY NATURE ARE EXTENDED BY THE DOCUMENT. Any product and related material disclosed herein are only
furnished pursuant and subject to the terms and conditions of a duly executed Program Product License or Agreement to purchase or
lease equipment. The only warranties made by Unisys, if any, with respect to the products described in this document are set forth in
such License or Agreement. Unisys cannot accept any financial or other responsibility that may be the result of your use of the
information in this document or software material, including direct, indirect, special, or consequential damages.
You should be very careful to ensure that the use of this information and/or software material complies with the laws, rules, and
regulations of the jurisdictions with respect to which it is used.
The information contained herein is subject to change without notice. Revisions may be issued to advise of such changes
and/or additions.
Correspondence regarding this publication should be forwarded using the Business Reply Mail form in this document, or remarks
may be addressed directly to Unisys Corporation, MAPPER Product Information, P.O. Box 64942 MS: 4792, St. Paul, Minnesota,
55164-0942, U.S.A.
Page Status
Page Issue
Volume 1
Volume 2
iv 7831 9274-000
Contents
Volume 1: Usage
7831 9274-000 v
Contents
vi 7831 9274-000
Contents
7831 9274-000 ix
Contents
x 7831 9274-000
Contents
7831 9274-000 xi
Contents
7831 9274-000
Contents
7831 9274-000 xv
Contents
Glossary
Index
This section presents the MAPPER run statements by run function call in
alphabetical order. Complete reference information is included about most
statements; those that are documented only in the online help system are
flagged with an asterisk in Table 7-1.
If you need tutorial information, refer to the Run Design Training Guide.
This section contains:
• A list of run statements by name
• A list of run statements by topic
• Reference information for run statements, presented alphabetically
Name Call
Background Run BR
Binary Find BFN
Break BRK
Break Graphics BRG *
Build Label Table BLT *
continued
Name Call
Element ELT
Element Delete EL-
Encode Report ECR
Exchange Variables XCH *
Execute MT
Name Call
Find FND
Find and Read Line FDR
Format FMT
Function Key FKY
Function Key Input KEY
Hash HSH
Host Read HRD *
Host Run HRN *
Host Sign-off HOF *
Host Sign-on HST *
Host Write HWR *
f Conditional F
ncrement Variable NC *
ndex ND
ndex User DU
nput Variable TV
nsert Line LNI *
nsert Variable NS *
Language LNG *
Last Line Number LLN *
Line Zero LZR
Link to Another Run LNK
List Merge LMG *
Load Field Name LFN
Load Format Characters LFC
Load System Message LSM
Load Variable LDV
Load Variable Array LDA
Name Call
Match MCH
Match Update MAU *
Message to Console MSG
Move Line LNM *
Name Call
Schedule SCH
Screen Control SC
Search SRH
Search Update SRU *
Send Message, No Response QSND *
Send Message, Expect Response QSNR *
Send Report SEN
Send Report to User SNU
Send Response Message QRSP *
Set Format Characters SFC
Sign off XIT *
Sort SOR
Sort and Replace Report SRR *
Start STR
Station Information STN
Submit SQL Statement SQL t
Subtotal SUB
Name Call
Totalize TOT
Trace TRC 1.
Wait WAT
Word Change WDC *
Word Locate WDL *
Word Process WPR *
Write Line WRL
• Last Line Number (LLN) - Loads a variable with the last line number of
a specified report.
• Line Zero (LZR) - Initializes or loads variables with data from line 0 of a
report or result.
• Load Field Name (LFN) - Loads variables with the names of report
fields that correspond to the column-character positions supplied.
• Load Format Characters (LFC) - Captures the display format of a
report.
• Log for Analysis (LOG) - Logs statements executed in a run.
• Retrieve from History (REH) - Retrieves the version of a MAPPER
report prior to the last system purge or merge process.
• Run Status (RS) - Creates a result showing the status of runs being
executed with your user-id.
Calculating
The following statements perform calculations on literal data, report data,
or dates and times:
• Arithmetic (ART) - Performs arithmetic on variables or constants.
• Calculate (CAL) - Performs arithmetic calculations on a report or result.
• Calculate Update (CAU) - Performs the same operation as CAL, but you
can also blend the changed lines back into the original report.
• Count (CNT) - Computes subtotals, percentages, standard deviations,
averages, entry counts, and other calculations on reports or results,
creating a result.
• Date (DAT) - Computes dates in a report or result.
• Date Calculator (DC) - Computes and calculates dates and times in
variables.
• Subtotal (SUB) - Subtotals report or result data.
• Totalize (TOT) - Performs arithmetic and move operations on report or
result fields.
Manipulating Variables
The following statements manipulate variables in several ways:
• Change Variable (CHG) - Changes or initializes the contents of a
variable.
• Clear Variables (CLV) - Clears the definition and contents of a set of
variables.
• Decrement Variable (DEC) - Decrements the numeric value of a
variable.
• Define (DEF) - Tests the contents and type of a variable or array.
• Define Variable Size (DVS) - Creates variables equal to the size of report
fields.
• Exchange Variables (XCH) - Exchanges a set of variables in your run
with a set stored in a level of the variable stack.
• Increment Variable (INC) - Increases the numeric value of a variable.
• Input Variable (ITV) - Accepts all input from OUV or interim OUT
output and initializes variables.
• Insert Variable (INS) - Inserts variable or constant data into a variable.
• Justify Variable (JUV) - Reformats the contents of numeric variables.
• Load Variable (LDV) - Loads or initializes variables with specified
contents.
• Load Variable Array (LDA) - Defines a variable array and puts data into
the array.
• Locate and Change Variable (LCV) - Locates a string in a variable and
optionally changes the string.
Controlling Runs
The following statements encompass several areas of run design, including
logic, subroutines, and utilities:
• Background Run (BR) - Begins a run in the background so that you can
still perform operations from the terminal.
• Break (BRK) - Puts the output area of a run into a result (-0).
• Build Label Table (BLT) - Builds label table definition lines for a run
control report.
• Cabinet Switch (CAB) - Switches the current cabinet to a different
cabinet.
• Call Subroutine (CALL) - Saves the contents and definitions of all
variables currently defined in the run and transfers control to a
subroutine; you can also pass the value of up to 40 variables to the called
subroutine.
• Clear Abort Routine (CAR) - Cancels an abort routine set by a Register
Abort Routine (RAR) statement.
ART (Arithmetic)
The Arithmetic (ART) statement performs arithmetic operations on
variables or constants. Variables capture the resulting numbers. Use the
ART statement for complex operations; use a Change Variable (CHG)
statement for simple computations.
In ART statements, you can use A, F, and I type variables containing
numeric characters.
Format
@ART exp vrslts .
Field Description
visits Variables to capture the results of the expressions. Initialize the variables for the
number of results you want to capture.
Operators
Table 7-2 lists arithmetic operators that you can combine to form an
expression.
Note: Values a and b are real integers and numbers and can include decimal
fractions or expressions composed of such numbers.
Second ** Exponentiation
Example
Raise 3 to the 4th power, divide the result into 2, and place the answer in vl:
@a r t 3**4/2 v116.2 .
Multiple Expressions
Evaluating multiple expressions in a single statement is more efficient than
using a separate ART statement for each expression.
Add v33 to v34 and put the answer in v36i3; subtract v34 from v33 and put
the answer in v37i3 (note that a semicolon [ ; ] separates the expressions):
@art v33+v34;v33-v34 v36i3,v37i3 .
Internal Computation
You can refer to variables that are created internally by an ART statement
(a, b, and so on), then use these variables for computing expressions within
the same ART statement, as in this example:
@art v1+v2;a*v3;b+5 ,v4i3,v5i3 .
Negative Numbers
If it is possible that a variable used in an arithmetic expression has a
negative number, place the variable in parentheses; otherwise, the
calculator reads it as part of an expression and the run errs. Place all
negative numbers in arithmetic expressions in parentheses. For example, in
this statement, v5 contains a negative number:
@art 3+(v5) v6i3 .
Function Description
Field Description
rmt? Program uses a remote file, Y or N. Default = N (remote file is not allowed).
xmt? After program executes, require user to press Transmit before returning to
MAPPER software, Y or N. Default = N (user automatically returns to MAPPER
software).
in INTNAME of the input file of the program run. If specified, the following filecard is
added to the program:
co,do Cabinet and drawer in which to place the result (must be specified if out is
specified).
ho? Append headings to the output file when it returns to the MAPPER system, Y or N.
Default = Y.
continued
continued
Field Description
out INTNAME of the output file returned to the MAPPER system. If specified, the
following filecard is added to the program:
line is the line size of the drawer specified in the co,do subfields.
args Arguments passed to the program, if the program takes arguments (maximum of
255 characters). Do not specify args if the program does not take arguments.
Comments
• If the file name contains spaces or if you specify arguments, enclose the
entire file name and the arguments within apostrophes ( '); however, do
not enclose variables, such as vl or v2, within apostrophes if they are
used as arguments. For example, ' *OBJECT/ABC ON PACK' or
'*OBJECT/ABC 1,CDE,'1/2.
Examples
AUX (Auxiliary)
'This section does not apply to the BTOS II MAPPER System.
The Auxiliary (AUX) statement sends a report or result to an auxiliary
printer connected to a display terminal.
V 1100: On OS 1100 MAPPER Systems, you can also send reports or results to
other kinds of auxiliary devices, such as diskette devices.
Format
@AUX,c,d,r,sn,[dev,dinos?,1 ,tabs1,dhdgs1,d1char?,Isp,transp?,
unit ,s1,spcc] .
Field Description
dev Auxiliary printer device name. Default = COP. To specify a device other than
the default, see the coordinator.
1100: On OS 1100 MAPPER Systems, you can specify devices other than
printers. Also, this subfield is not optional; there is no default.
dins? Delete the line numbers, Y or N. Default = N. Use Y if the report is 132
characters and you are printing in basic format.
1100: tabs? Include tab characters in the output, Y or N. Default = N, change them to
spaces.
dhdgs? Delete the report headings and end report line in the output, Y or N.
Default = N.
dichar? Delete the first character of each line in the output, Y or N. Default = N.
continued
continued
Field Description
V 1100: transp? Print reports exceeding 132 characters, write lines exceeding 80 characters
(for cassettes and diskettes), Y or N. Default = N.
V 1100: unit Unit on which to locate data in subsequent search operations. (This subfield
is applicable only for cassettes and diskettes.)
sl Site letter of the station to which the printer is attached. Default = local site.
1100: This subfield is not available on OS 1100 MAPPER Systems.
spcc Special print control character used to specify printer device controls.
Default = blank, printer ignores control characters in text and prints them
literally.
The usual printer device control code is a tilde (-). To change the control
character, see the Manual Functions Reference.
Comments
• An AUX statement does not create a result.
• You can direct output from an AUX statement to configured stations
only.
Note: For printing to start, the sign-on screen must be displayed on the
terminal connected to the specified printer.
• For more information on printing, such as suspending or stopping
printing or emphasizing text, see the Manual Functions Reference.
Example
Print report 2B0, at station 9 on device name COP with deleted line
sequence numbers, deleted headings, and double spacing:
@aux,0,b,2,9,cop,y„,y„2 .
Field Description
I Line number where the binary find starts its first sample.
Designating a line number slightly before the general location of the data speeds
up the binary find process. If the data is actually located before the line number
specified, the BFN statement searches the entire report to find the data. Use a
Find (FND) statement if you want to locate data after a specific line.
Ityp Line type to scan (if you specify the A option, you can leave this subfield blank, but
enter the comma).
vrpt Variable to capture the report number where the find was made.
continued
continued
Field Description
vino Variable to capture the line number where the find was made.
If no finds are made, the first variable contains the report number where a find
should have been made; the second variable gives the line number preceding the
line where a find should have been made.
Options
A Processes all line types.
B Builds an index containing the first data line of each report. Use
an index to speed up the find operations across multiple reports.
Enter a K in the p (parameter) field for the target field or fields.
Be sure the targets do not cross reports.
V 1100: On OS 1100 MAPPER Systems, targets may cross reports.
With the B option, the BFN statement creates a result that you
must replace into the report immediately preceding the first
report of the specified range.
If you would like the report numbers where the target items
reside placed in a field, enter an equal sign in the corresponding
parameter field.
Reserved Word
STAT1$ contains one of the following codes in case of an error:
1 Data not found
2 All lines with space fields filled (@ option)
3 Data not sorted
Comments
BR (Background Run)
This section does not apply to the OS 1100 MAPPER System. See "BR
(Background Run): OS 1100" in this section for a description of the BR
statement as it applies to the OS 1100 MAPPER System.
The Background Run (BR) statement starts a MAPPER run at your site and
executes it in background, allowing you to continue executing other
functions and runs at your terminal.
The system removes the current (-0) result from the run, if one exists, passes
it to the background run, and starts the run in background. The run
containing the BR statement then continues at the next statement.
Format
@BR[,c,d,r] run[,vld] .
Field Description
c,d,r Report to pass as a -0 result to the background run. Default = current -0 (the
system removes the current result from your run, if one exists, and passes it to the
background run).
Reserved Word
ORSTAN$ contains the station number that started the background run
(contains zero if the run is not being executed in background).
Comments
• You cannot use the following statements in a background run: DSG,
DSM, DSP, DSX, GOC (when display requested), GS (when display
requested), HST, ITV, OTV, OUM, OUT, OUV, RDB, REL, SC, XIT, or
XUN statements in a background run.
Note: Since this list encompasses several different kinds of MAPPER
systems, some run statements may not be available on your
system.
• A Return Remote (RTN) statement in a background run sends the
specified report to the calling terminal.
• If the background run fails, the run user receives a message indicating
there was an error.
• To check the status of the run, use the System function.
• To terminate an active background run, use the Kill function. To
terminate a queued background run, contact the MAPPER system
coordinator.
Example
Start the test run, pass the letters abed as input to the run, and pass
report 2B0 for processing in the run:
@br,O,b,2 test ,abcd .
The run containing the BR statement continues at the next statement after
the background run starts.
Field Description
lab Label to go to if the number of active background runs has already reached the
maximum allowed at your site. Default = run containing the BR statement stalls
until the background run is able to start.
Reserved Word
ORSTAN$ contains the station number from the s n subfield of the BR
statement that started the run, or the originating station number if not
supplied in the BR statement (contains zero if the run is not being executed
in background).
Comments
• Have the coordinator register the run in one of the following ways:
As a normal run eligible for background execution (you can execute
the run either normally or in background)
As a background run only
• You cannot use the following statements in a background run: DSG,
DSM, DSP, DSX, GOC (when display requested), GS (when display
requested), ITV, OUM, OUT, OUV, REL, RSI, SC, XIT
• You can use the DSG, OUT, and SC statements if you send the output to
another terminal.
• In addition to the statements listed above, the background run must not
contain a BR statement. In other words, a background run may not
start another background run.
• If the background run fails, the run user receives a message indicating
there was an error.
• To check the status of the run, use the Run Status (RS) function.
• To terminate an active background run, use the Stop function.
Example
Start a background run and transfer data to it:
@br ,123,099 test ,abcd
where:
123 Notify station 123 when the background run completes.
099 Go to label 99 if the number of active background runs has
already reached the maximum at this site.
test Start the run named test.
abcd Pass the literal value abcd as input to the run.
The run containing the BR statement continues at the next statement after
the background run has started.
BRK (Break)
The Break (BRK) statement turns the output area of a run into the current
-0 result and creates a new output area (containing only a date line).
Format
CiERK[,c,d,qj .
Field Description
c,d Cabinet and drawer letter of the new output area. The drawer letter is required if a
cabinet is specified. Default = cabinet and drawer of the run control report or
cabinet and drawer specified on a previous BRK statement.
1100: q Estimated number of output lines. For output exceeding 500 lines, estimating
improves efficiency by reducing I/Os.
Comment
• When a run encounters a BRK statement, all data currently in the
output area becomes the current result, -0 and a new, empty output area
(containing only a date line) is created. If you specify a cabinet and
drawer, the location of the current result is not affected. However, the
new output area is placed into the specified cabinet and drawer.
Examples
This example uses multiple BRK statements:
1. @b rk .
Datal
2. @brk,O,b .
Da ta2
3. @brk .
Da ta3
4. @brk .
Statement 1. The current output area resides in the same cabinet and
drawer as the run control report.
Statement 2. Following this statement, Da t a1 is the current -0 which is
in the same cabinet and drawer as the run control report.
The new output area however, resides in cabinet 0, drawer
B.
Statement 3. Following this statement, Da t a2 is in the -0 result in
cabinet 0, drawer B.
Statement 4. Following this statement, Da t a3 is in the -0 result in
cabinet 0, drawer B.
V 1100: This example applies only to OS 1100 MAPPER Systems.
This example places the output area into a result and estimates that the
following output area will be 2,500 lines:
@br k „ ,2500 .
CAL (Calculate)
The Calculate (CAL) statement performs arithmetic calculations and
conditional evaluations on reports or results, creating a result (except with
the 0 option). See the Manual Functions Reference for details on the CAL
function.
To create an update result that allows you to blend the changed lines back
into the original report or delete lines from the original report, use the
Calculate Update (CAU) statement. The CAU statement uses the same
fields and subfields as the CAL statement. See the online help system
(HELP,@CAU) for more information.
Format
WAL,c,d,r[,l,q,leb] o cc Ityp,p eq [vrelts]
Field Description
lab Label to go to if no data exists. (Be sure to use this field if there is any possibility
that the report does not contain data; otherwise, no result is created.)
ltyp Line type to process. If you specify the A option, you can leave this subfield
blank, but enter the comma.
p Parameters:
continued
continued
Field Description
receiving-label[,options]=expression[;...]
receiving-label(x-y)
options are equation options E, I, J(x), Kn, Nn, Rn, V, X, and *. Use them to
specify options on individual equations. To remove a function option from an
equation, enter a minus sign (-) after the equation option. For example, J-, K-, V-,
and so on.
vrsits Variables to capture the results of vertical operations and the contents of value
labels in the order initialized. Variables that capture vertical operations are loaded
in the order their fields exist in the report.
Options
A Processes all line types.
C Conditionally displays specific result lines. After all equations
are processed, include only those lines that meet a true condition
based on the last If Conditional (IF) statement in the result. For
example, if the last IF statement is IF:A=0, include only lines
where field A is equal to zero in the result.
E Erases fields (fill them with spaces) if the answer equals zero.
I Produces integer results, truncating any fractional part
(numbers to the right of a decimal point) in the result.
J(x) Justifies the numeric result value, where x is one of the following
justification options:
C Inserts commas in the integer portion every three digits,
eliminating nonsignificant zeros. Places the resulting
value in the leftmost portion of the field.
L Left-justifies and eliminates nonsignificant zeros. Places
the resulting value in the leftmost portion of the field.
R Right-justifies and eliminates nonsignificant zeros.
Places the resulting value in the rightmost portion of the
field.
X Eliminates leading nonsignificant zeros. Places the
resulting value in the leftmost column and fill the
remaining columns with zeros.
Z Eliminates nonsignificant zeros, right-justify, and fills
the preceding columns with zeros.
Kn Initializes a value label to n. Default value = 0.
L Lists all value label names and their final values at the end of
the result.
Nn Substitutes the numeric value of n for nonnumeric fields. The
default value of nonnumeric fields is zero. A nonnumeric field
has either no data (all space or tab characters) or data that has a
nonnumeric character in its leftmost significant position.
0 Omits result. Only receiving variables are loaded.
Rn Rounds results to the nearest n: R.0000000000000001 through
R100000 (nearest 100,000 units).
Note: To control rounding by equation, use R as an equation
option.
Reserved Words
STAT1$ contains the number of lines processed (of the line type specified).
STAT2$ contains the total number of lines in the report (excluding
headings).
Priority of Operations
Table 7-5 shows the priority by which the calculator performs arithmetic
operations.
Second ** Exponentiation
Table 7-6 shows the priority by which the MAPPER system evaluates
relational operations.
<= or =< Compare not greater than (less than or equal to)
>= or => Compare not less than (greater than or equal to)
Third OR (Boolean)
Note: The operators ampersand and comma (& and ,) do not perform a
numeric comparison but are based on a true 1 false concept. See the
Manual Functions Reference for details on using relational and
logical operators.
True/False Conditions
Table 7-7 shows the result of all possible true/false conditions. valuel and
value2 are usually relational expressions (such as a>1000).
Comments
ABS(x) LOG(x)
ACOS(x) LOG10(x)
ASIN(x) MAX(xl,...,xn)
ATAN(x) MIN(xl,...,xn)
AVG(xl,...,xn) MOD(x,y)
CBRT(x) RAD(x)
COS(x) RAN(x,y)
CTN(x) SIN(x)
DEG(x) SQRT(x)
EXP(x) SUM(xl,...,xn)
FRAC(x) TAN(x)
HCOS(x) VAVG(xl,...,xn)
HSIN(x) VMAX(xl,...,xn)
HTAN(x) VMIN(xl,...,xn)
INT(x) VSUM(xl,...,xn)
See Arithmetic (ART) for an explanation of these functions.
• You can use variables in any field of the CAL statement, including
equations. Variables can contain entire equations or parts of equations.
Since the system interprets variables enclosed in apostrophes as literal
data (for example, the statement uses literal vl rather than the contents
of the variable v1), do not enclose variables in apostrophes.
• Use a DEF statement to produce a numeric value that defines the
contents of a report field. Use the following format:
DEF(tield•label)
Following are the report field values and what they represent:
• You can include both characters and spaces in the contents of a report
field.
• Use the any of the following conditional statements in the equations:
IF:expression];
THEN:equation];
ELSE:equation];
FIRST:equation]; . . ]
SKIP:expression]; . . . ]
EXIT:expression]; . . . ]
For details on conditional statements, see the Manual Functions
Reference.
where:
099 Goes to label 99 if no data exists
Uses the L option to list all value label names
and their final values at the end of the result
25-7,33-8,65-15 Labels the Whole Sale$ field (column 25 for 7
characters), the Retail $$$$ field (column 33 for
8 characters), and the Demo Results field
(column 65 for 15 characters):
a , b+, c+ Fields a, b, and c, with the vertical operator + on
fields b and c
maxa=vmax(a); Puts the highest value found in the Whole Sale$
field (a) in the value label maxa
maxb=vmax(b); Puts the highest value found in the Retail $$$$
field (b) in the value label maxb
c=b-a Subtracts field a from field b and puts the
difference in field c
v1i9,v2i9, Captures the vertical total of Retail $$$$
v3i9,v4i9 (field b) in vl, the vertical total of Demo Results
(field c) in v2, the contents of the MAXA value
label in v3, and the contents of the MAXB value
label in v4
Field Description
@lab:(v,v,...)
continued
continued
Field Description
'' 1100: (p,p...) Parameters to pass to the subroutine (maximum of 40). Parentheses are
required (even if you do not pass any parameters). Enter one of the following
kinds of parameters:
*v Variable (system retains the original value from the calling run).
Comments
• The statement returns only the -0 result created in the subroutine and
the variables that you passed with the CALL statement. Renamed
results (-1 to -8) remain unchanged.
• Use the RETURN statement to exit the subroutine and return to the
line following the CALL statement.
• To pass all the variables in an array, specify only the name of the array;
to pass a specific array member, specify the array name and member
number ([n]). An entire variable array counts as one variable of the 40
allowed. See LDA in this section.
Example 1
This statement transfers control to label 054 and passes only v102 and v103
to the subroutine. The subroutine uses the values of v102 and v103 for
<drw> and <line>, respectively.
@I dv v101 i 4=1234,v102h1=b, v103 i4=5
@ca l 054 (v102, v103) .
. (other processing)
@054:(<drw>,<Iine>) .
@fnd,0,<drw>„<line> a 'cunt' kamco <rpt>i4,<Iine> .
@return .
In the example, when control returns, the variables used in the main routine
and subroutine have been affected as follows:
• V101 still contains 1234 because it was not passed to the subroutine.
• V102 (<drw> in the subroutine) still contains the letter b because the
subroutine did not change it.
• V103 (<line> in the subroutine) contains a new value because the Find
(FND) statement in the subroutine changed it.
• <rpt> is not defined any longer because it was used only in the
subroutine.
Example 2
This statement transfers control to label 99 and passes v102, v103, and
v104. The subroutine uses the values of v102, v103, and v104 for <scan>,
<item>, and <qty>, respectively.
@ca I I 099 (v102,v103,v104) .
. (other processing)
t2099:(<scan>,<item>,<qty>) .
.(other processing)
@return .
The system returns v102, v103, v104, and the -0 result created in the
subroutine. All other variables remain unchanged since you did not pass
them to the subroutine.
Example 3
. (other processing)
@100:(<datal>,<data2>) .
@I dv <da ta1>=5000,<da ta2>=2500 .
@return .
The system returns 5000 in v101, but does not change v102 because it was
preceded with an asterisk when passed with the CALL statement.
Example 4
V 1100: This example applies only to OS 1100 MAPPER Systems.
This statement transfers control to label 100 and passes v101 and strings
hokey and pokey. The subroutine automatically initializes <data2> and
<data3> as S type variables of the same size as the strings.
@call 100 (v101,'hokey', 1 pokey') .
. (other processing)
@100:(<datal>,<data2>,<data3>) .
The system returns the current value of v101, but does not return any
variable comparable to <data2> or <data3>.
Field Description
c,d,r Report that contains a command handler routine. (Specify only if the routine is in
another run control report.)
V 1100: The report containing the command handler routine must be in ll-^ —
character set type as the calling run control report.
rel? Transfer release control (") to the run, Y or N. Default = N. If you specify Y, the
run user cannot execute the Release Display (") function because the caret (-) is
intercepted by the run.
lab Label where the command handler routine starts. Use 0 to cancel the currently
registered command handler routine. To begin the routine at the first line of the
external run control report, use LIN1 in this field.
Reserved Words
ICVAR$ captures user input from the control line whenever the user
transmits from the control line. Follow these guidelines when using
ICVAR$:
• Use only with a CHD statement.
• Place ICVARS before the variable in the CHG statement, and put the
CHG statement before the DSM, DSP, OUT, or SC statement.
or
CHG rw v[,v...,v]
Field Description
v Variable you are changing. To define or redefine the variable, include the variable
type and size.
exp Expression by which you want to set the value of the variable.
vid Value to place into the variable. You can specify the value using a variable, literal,
constant, or reserved word.
rw Reserved word that determines the kind of input data you want to capture in the
variable.
Reserved Words
You can use only the following reserved words to capture user input with the
CHG statement:
ICVAR$ (see CHD)
INMSV$ (see OUM)
INPUT$ (see OUT)
INSTR$ (see OUT)
INVAR$ (see OUT)
INVR1$ (see OUT)
Put reserved words that capture user input before the variable.
Examples
Using Expressions
You can use variables, constants, reserved words, and the following
operators in a CHG statement expression:
addition (+)
subtraction (-)
multiplication (*)
division (/)
integer division (If)
Precede each operator with a space. If you include a variable in the
expression, the variable must have been defined prior to the CHG
statement.
The system evaluates the expression from left to right, following no
precedence rules. Therefore, use only simple expressions with the CHG
statement.
• H type variables:
Produce a result based on the order of the character set, even for
numbers (for example, 9 + 1 = : , not 10 [this assumes that the number 9
was right-justified in the variable]).
V 1100: On OS 1100 Systems, the example also assumes the run control
report is in a full character set drawer.
• S type variables:
Produce a result based on the order of the character set, even for
numbers.
• 1100: 0 type variables:
Produce octal answers.
• To simply increase or decrease the numeric value of a variable, use the
Increment Variable (INC) or Decrement Variable (DEC) statement.
Examples
Initialize <testoctal> as a four-character octal variable with an initial value
of 2:
@chg <testoctal>o4 2 .
Field Description
linl Line number in the first report at which to begin the comparison.
Default = line 2.
lint Line number in the second report at which to begin the comparison.
Default = line 2.
4131 Line type to compare in the first report. If you specify the A option, leave this
subfield blank but enter the comma.
continued
continued
Field Description
Ityp2 Line type to compare in the second report. If you specify the A option, leave
this subfield blank but enter the comma.
vinol Variable to capture the line number in the first report where the fields are not
identical.
vcoll Variable to capture the column in the first report where the fields are not
identical.
Owl Variable to capture the line number in the second report where the fields are
not identical.
vcoll Variable to capture the column in the second report where the fields are not
identical.
Options
A Processes all line types. Each line is compared regardless of line
type.
C(S) Distinguishes between uppercase and lowercase letters.
V 1100: On OS 1100 MAPPER Systems, this option applies only to
full character set (FCS) reports.
Examples
Compare reports 2D0 and 3D0:
@cmp,0,d,2,6,0,d,3,6,20,099 " 12-9,61-17 *,1,2 \
12-9,61-17 *,1,2 v1i4,v2i3,v3i4,v4i3 .
where:
0,d,2,6 Compares twenty lines, beginning at line 6, in
0,d,3,6,20 reports 2D0 and 3D0
099 Goes to label 99 if the report fields are not the same
Uses no option
12-9,61-17 Compares column 12 for 9 characters and
1,2 column 61 for 17 characters in the issuing report
12-9,61-17 with column 12 for 9 characters and column
1,2 61 for 17 characters in the receiving report
Compares asterisk lines only
v1i4,v2i3, If the report fields are not the same, captures
v3 i 4, v4 i 3 issuing and receiving report line numbers and
columns where the reports are not identical in v1, v2,
v3, and v4
The run continues at the next run statement if the report fields are the
same.
where:
0, b , 2 Compares fifteen lines, beginning at line 2
0,c,,1, ,15 (default) in reports 2B0 and 1CO.
c(s) Detects uppercase and lowercase differences.
15-9 Compares column 15 for 9 characters in the
2-9 issuing report with column 2 for 9 characters in the
receiving report.
❑ Compares tab lines only.
v1i4,v2i3, If the report fields are not the same, captures
v3 i 4, v4 i 3 issuing and receiving report line numbers and
columns where the reports are not identical in vl, v2,
v3, and v4, then continues at the next statement.
CNT (Count)
This section applies only to the OS 1100 MAPPER System.
The Count (CNT) statement computes subtotals, percentages, standard
deviations, averages, entry counts, and other calculations on reports or
results creating a result. See the Manual Functions Reference for more
information.
Format
tICNT,c,d[, r] o cc Ityp,p [vrolts] .
Field Description
!typ Line type to process. If you specify the A option, you can leave this subfield
blank, but enter the comma.
p Parameters:
visits Variable to capture the number of lines for the corresponding output result. Up to
eight variables may be returned by the statement.
Options
A Processes all line types.
B Extends the boundaries for scaling intervals to the minimum
and maximum values defined in the scaling option. Every
interval between those boundaries is displayed, even those with
no entries.
C Distinguishes between uppercase and lowercase letters.
Default = the system processes and displays the keys as
uppercase.
D[n] Processes only those keys that occur n or more times, where n is
an integer greater than 1. Default = 2.
E Extracts result fields from the last occurrence of each unique
key. Default = first occurrence.
F Extracts result fields from the first occurrence of each unique
key. When using a minimum (<) or maximum (>) operator,
default = minimum or maximum field.
H Displays only the first set of headings in the result when you
process more than one set of parameters in a single statement.
I Includes out-of-range keys. Substitutes the minimum or
maximum boundary value, when applicable, for an out-of-range
key. The key field is then considered valid, and all its values are
counted. Default = the line is discarded for values outside the
boundaries.
Nn Substitutes invalid numeric data with the value n. Default = 0.
0 Omits data lines from the result. Only heading lines, grand total
summary, and warning messages are included in the output
result. The T and W options are automatically implied when the
0 option is specified.
Date intervals:
nD n = number of days (default)
nW n = number of weeks
nM n = number of months
nY n = number of years
Time intervals:
nS n = number of seconds
nM n = number of months
nH n = number of hours
v Does not count lines with invalid numeric, date, or time fields.
Default = 0 for numeric operations; January 1,1944, for date
calculations; or 00:00:00 for time operations.
W Adds messages at the end of the result showing the number of lines
skipped due to invalid key or data fields.
Z Displays all intervals in the result, even those with no entries. This
option allows you to create a scale with no gaps. Use this option only
with the S option.
* Flags invalid subtotals, averages, standard deviations, maximums,
and minimums if invalid data were used in the calculations.
Reserved Words
STAT2$ contains the number of lines ignored in all results for invalid or
out-of-range key conditions.
STAT3$ contains the number of lines ignored in all results for invalid
numeric, date, or time values. The value is meaningful only if you specified
the V option.
Numeric Operators
Entry Count (=) Counts the number of entries for each unique key.
Subtotal (+) Subtotals values for each unique key in the key
field.
Percentage (%) Provides the entry counts for unique keys
expressed as a percentage of the total entries in
the field.
Subtotal Percent (+%) Expresses the subtotal for each unique key as a
percentage of the grand total of the key field.
Average (/) Computes the average by subtotaling values and
dividing by the number of entries.
DAT (Date)
The Date (DAT) statement performs computations on dates (from 1944 to
2043) within a report or result and creates a result.
V 1100: On OS 1100 MAPPER Systems, y betwweni964
and 2063.
Format
tiOAT,c,d,r o cc Ityp,p .
Field Description
!typ Line type to process. If you specify the A option, you can leave this subfield blank
but enter the comma.
p Parameters:
continued
continued
Field Description
If you specify a format for either a + or - field (but not both), that format is assumed
for both fields.
If you do not specify a format for the = field, the format specified for the + field (if
one exists) is assumed; otherwise, the format specified for the - field is assumed.
Options
A Processes all line types.
T Converts a time field to decimal hours. The time field must be in the
format HH:MM:SS or HHMM. Use the + parameter to specify the
field to convert and an = parameter in the field in which to place the
converted time. If you do not specify a result field, the converted
time is placed into the original time field.
W Converts a date field into days of the week.
n Specifies the number of work days in a week for computations,
where n is the number of work days.
',....-%
DC (Date Calculator)
The Date Calculator (DC) statement performs arithmetic calculations on
dates (from 1944 to 2043) or times that reside in variables, or on literal
dates or times.
Format
(SDC eq vrslts
Field Description
vrsits Variables to capture the results of the equations in the order presented.
Comments
Field Description
n Number identifying the date format (0 through 8) or time format (0 through 3).
Field Description
expression Calculations using literal data or variables (using the date and time
formats listed earlier), constant labels, labels created previously in the
same DC statement, or any combination of these.
Examples
V1 equals today's date plus 90 days in DATE7$ format:
@dc today+90 v1h18 .
V1 equals today's date in DATE1$ format; v2 equals current time in
TIMEO$ format:
@dc dl=today;time v1i6,v2h8 .
V1 equals the day of the week on which June 4, 1990 fell; v2 equals 900626
plus five days, changed to DATE7$ format; v3 equals the number of days
difference between the date in v2 (label B) and today's date:
@dc dw=d7( ' j one 4, 1990' ) ; d7=d1(900626)+5;
b-today v1h10,v2h18,v3 i 4 .
V1 equals 900604 (v5) plus 60 days in DATE1$ format; v2 equals the day of
the week that is the date in vl (a); v3 equals the date in vi (a) in DATE7$
format; v4 equals the date in v3 (c) minus two days in DATE7$ format:
@I d v v5 i 6=900604 .
@dc d1(v5)+60;dw=a;d7=a;c-2 v1i6,v2h10,v3h18,X
v4h18 .
1100:
fDCR,c,d,r,key .
Field Description
key The one- to eight-character key that was used to encode the report.
-level Encryption level. If the report was coded with a level, you must specify the
same level here.
V 1100: This subfield is not available on OS 1100 MAPPER Systems.
Comments
• Use caution when encoding and decoding reports. Do not forget your
key. A report cannot be decoded if you lose or forget the key because no
record of it is kept by the MAPPER system. Your coordinator cannot tell
you what it is.
• Because of high processing overhead, excessive use of this statement
may affect system performance.
• System messages are produced in these cases:
- You specified the incorrect key or encryption level.
- The encoded report is corrupted.
- The report is not encoded.
V 1100: On OS 1100 MAPPER Systems, the decoding process produces
invalid characters under those circumstances.
Whenever the system produces these invalid characters, it displays a
system message indicating an error and flags each invalid character in
the result with an SOE character.
If the encoded report is corrupted, characters in the result shown as
SOEs cannot be recovered.
V • 1100: If you are using a normal ASCII terminal, you may not be able to
decode a report that was encoded from a National Character Set (NCS)
terminal.
Examples
Decode report 10B0, which was encoded using the key jak:
@dcr,0,b,10,jak .
V 1100: The following example does not apply to OS 1100 MAPPER Systems.
Decode report 2CO3 which was encoded using the key ins with level 6:
@dcr,0,c,2, ins-6 .
DEF (Define)
The Define (DEF) statement tests a variable, substring, or reserved word for
its current contents or characteristics, or sets another variable to a value
based on the option used.
Format
4DEN,0,1abl setv,testv .
Field Description
0 Option that specifies the information you want to determine about the variable.
You can specify only one option. If you do not specify an option, the DEF
statement returns a code that describes the contents of testy.
lab Label to go to if testy is not defined. (To simplify your run logic, if you want the run
to continue on the next line, use LIN1 in this subfield instead of a label number.)
sets Variable in which the MAPPER system returns a value describing the variable or
reserved words tested.
testy Variable or reserved word to test. To test a member of an array, use testv[n],
where n is the member (brackets are required).
Options
A Determines the alphabetic drawer. The variable to be tested must
contain a valid numeric drawer (a positive octal number that
identifies the drawer and cabinet within the system). The variable
being set must be type A or H.
C Determines the number of significant characters (any characters
other than spaces). Tab characters are significant characters.
A 1
F 2
S 3
I 4
H 5
V 1100: 0
If you do not use an option, the DEF statement sets the setv variable to a
value from 0 to 7, depending on the contents of the testy variable:
setv testy
Note that the contents of testy can include either just the characters
indicated or both the characters and spaces.
Examples
Determine the kinds of characters in <chars> and return the code in <code>:
@def <code>il <chars> .
DIR (Directory)
The Directory (DIR) statement loads variables with information about a
data name from the system directory. With the DIR statement, you can
determine whether a data name is valid and the kind of data the name
represents (cabinet, drawer, or report).
Format
OIR[,lab] name [vcablnet,vdrawer,vrpt,vhirptr] .
Field Description
vhirptr* Variable to capture the higher report number if the data name defines a range
of reports.
Variables that do not apply for a particular data name are loaded with spaces unless they
are defined as I type variables.
77 1100: Variables that do not apply for a particular data name are loaded with spaces.
Reserved Word
STAT1$ contains one of the following error codes if the data name supplied
is invalid and the run continues at the label (the run errs if you do not use
the label):
1 Data name was not found in the system directory.
2 Data name does not begin with an alphabetic character (A to Z).
3 Data name contains invalid characters (A, ;, /, comma, space, tab).
V 1100: Data name contains no alphanumeric characters (A to Z or
Oto 9).
4 Data name contains more than 16 characters.
Example
Load variables with information about data name order-status:
@Wir,099 order-status <cabinet>a4,<drawer>h1,1
<report>a4,<hireport>a4 .
where:
099 Goes to label 99 if data name order-status does not
exist
order - status Specifies the data name to obtain information about
<cab i net>a4 Loads <cabinet> with the cabinet number of
order-status
<drawer>hl Loads <drawer> with the drawer letter
<r epor t>a4 Loads <report> with the report number
<h i r epor t>a4 Loads <hireport> with the higher range report
number
DRW (Drawer)
The Drawer (DRW) statement loads variables with the following
information: number of characters per line, next report to add, highest
report number, and the report and line limits in a drawer.
Format
@ORW,c,d[,1ab vcpl ,vcs,vmtno,vintn,vnxrd,vh1 rptd,vInd,
vrptsd,vrImt,v1 Imt] .
Field Description
0 LCS
1 FCS
2 FCSU
V 1100: vmfno Variable to capture the MAPER file number (for example, 1,2, or 3) where the
drawer resides. (MAPER files are OS 1100 program files where the MAPPER
database resides.)
V 1100: vmfn Variable to capture the internal MAPER file name (for example, M00001,
M00002, or M00003) where the drawer resides.
vnxrd Variable to capture the next report number available in the drawer if a new
report were added.
vhirptd Variable to capture the highest report number used in the drawer.
Reserved Word
If a drawer exists, STAT1$ contains the number of the highest report
created. If the drawer does not exist, STAT1$ contains 0, and the run goes
to the specified label. If you did not use a label, the run continues at the
next statement.
Example
Load vl with the number of characters per line in cabinet 0, drawer B, and if
that drawer does not exist, continue the run at label 5:
@Wrw,0,b,005 v1i3 .
Field Description
tabp Tab character after which to place the cursor. Use a negative number to
indicate the number of tab positions to move backwards. Maximum = 100.
Default = the Roll field in the control line (position 0).
interim? Continue the run without the user pressing Resume, Y or N. Default = N.
dspl Line number of the specified report at which to start the display. Default =1.
dspf Format of the report to display. (Omit this field if you are displaying a format
defined with a FMT or SFC statement.)
Comments
Examples
Display a message (located on line 4 of the current result) at the top of the
current screen:
@dsm, -0,4 .
Display report 2D0, place a message (located on line 4 of report 12A0) on the
top of the screen, and position the cursor at the tenth tab position:
@dsm,O,a,12,4,1O,,,,O,d,2 .
Field Description
tabp Tab character after which to place the cursor. Use a negative number to
indicate the number of tab positions to move backwards. Maximum = 100.
Default = the Roll field in the control line (position 0).
f Report format. (Omit this field if you are displaying a format defined with a
FMT or SFC statement.)
interim? Continue the run, Y or N (Y causes the run to display the report and continue
and N stalls the run until it is resumed). Default = N.
continued
continued
Field Description
hold Number of lines already on the display screen that you want to hold. Report
is displayed beginning with the first nonheld screen line.
V 1100: On OS 1100 MAPPER Systems, you can also enter the letter H to
display the report headings.
Comments
Display report 1CO, starting at line 8 and continuing the run after the
display:
@dsp,O,c, 1 , 8 ,,,y .
Display format 5 of report 1DO, starting at line 3:
@dsp,O,d,1,3„5„,' This line displayed on control line.
Field Description
lab Label at which to continue execution if the specified fields are not found.
field Fields whose size you want to define (can be field names or column-character
positions). Separate fields with commas.
Variables to define. Specify the variable name or number and type, for example,
vi h, v2s, and so on. Separate variables with commas.
Comments
• Generally, you use a DVS statement with named fields, because a name
does not directly specify the field size. The run defines the size of the
variable when it executes. Any input parameter or screen using the
affected variable adjusts to changes in field sizes.
• In a DVS statement, you specify the variable and its type; you do not
specify the variable size. The run assigns a size to the variable equal to
its corresponding report field.
Examples
Initialize a variable to the size of the Cust Code field in report 2B0, for use
as an input parameter:
@dvs,0,b,2 'custcode' vlh .
@chg input$ v1 .
Initialize variables to the size of the Order Number and Ord Qty fields from
the current -0, and create a screen using their sizes:
@dvs 'ordernumber', 'ordqty' <num>h,<qty>i .
@brk
Enter Order Number: 0<nump,
Enter Quantity: 0<qty>,
@brk out,-0,2,23,1,1,y,„p .
@chg input$ <nunP,<qty> .
Field Description
key The one- to eight-character key used to encode the report. Valid characters
are A-Z and 0-9.
V 1100: On OS 1100 MAPPER systems, since tne -level subfield is not
available to scramble the data more, use more characters for the key to make
it more difficult for an unauthorized user to guess the key.
-level Level at which to encode the report. Valid levels are 1-8. The higher the level,
the more the data is scrambled. Default =1.
V 1100: This subfield is not available on OS 1100 MAPPER Systems.
Comments
• Use an encryption level to specify the amount of scrambling. The higher
the level of encryption, the more the data is scrambled. Note that the
higher levels of encryption consume more system resources to process
the report.
V 1100: Encryption levels are not available on OS 1100 MAPPER
Systems.
• Specify the dspscram? subfield to allow encoded reports to be
transferred to the OS 1100 MAPPER System. If you enter a Y in this
subfield, the system uses the encryption process used on the OS 1100
MAPPER System, allowing the report to be decoded using the OS 1100
MAPPER System.
V 1100: When encoding reports on OS 1100 MAPPER Systems, the
dspscram? subfield does not apply; the subfield is for encoding reports
on other systems so that they can be decoded on OS 1100 MAPPER
Systems.
• Use caution when encoding reports. Do not forget your key. A report
cannot be decoded if you forget the key because no record of it is kept by
the MAPPER system. Your coordinator cannot tell you what it is.
• You cannot move encoded data between drawers with different report
widths because you will not be able to decode it. If a drawer width is
changed, all encoded reports in that drawer will be corrupted and they
will not be able to be decoded.
V • 1100: Do not update an encoded report. Any change to the encoded
report corrupts the report and you will not be able to decode it. Protect
your report from updates by using an update password (see the
Password [PSW] function in the online help system [HELP,PSW]).
• You may not be able to decode data with a normal ASCII terminal if the
data was encoded with a National Character Set (NCS) terminal. Also,
a report containing special NCS characters cannot be encoded with a
normal ASCII terminal.
Encoding a report approximately doubles its size.
Examples
This example encodes report 10B0, using the characters jak as the
encryption key. The report headings are also encoded:
tbecr ,O,b, 10, jak ,y .
V 1100: The following example does not apply to OS 1100 MAPPER Systems.
This example encodes report 2CO3 using the characters salplan as the
encryption key at encryption level 3. If you display the result, the encoded
data appears as scrambled data:
@ecr,0,c,2,salplan-3„,y .
Field Description
lab Label to go to if the run encounters an error. See the STAT1$ reserved word
status codes following this table.
qual Qualifier.
fn Name of the file to delete, or the file name containing the element to delete.
ver Version.
Reserved Words
STAT1$ contains the following status codes if the statement is not able to
delete the file:
0 Requested element not found in specified file.
1 File does not exist.
2 File already assigned to MAPPER system.
3 File already assigned exclusively to MAPPER system.
4 File already assigned to another user.
5 File already assigned exclusively to another user.
6 File rolled out.
7 Facilities currently unavailable.
8 Private file, under different project-id.
9 Read or write restrictions on the file.
10 File is not sector-formatted mass storage file.
11 File is not program file (if element is specified).
12 File is a MAPPER file.
13 System I/O error.
14 Facility warning or reject.
15 Insufficient or improperly formatted statement.
STAT2$ contains the system message number. User this number in the
Load System Message (LSM) statement to retrieve the text of the message.
Example
ELT (Element)
'This section applies only to the OS 1100 MAPPER System.
The Element (ELT) statement copies a MAPPER report or result to a
standard OS 1100 program file or symbolic element, or to a data file.
If the file you are copying is not a currently assigned file, the ELT statement
assigns it with a maximum granularity of 262,143 tracks.
Condition
The file must be a sector-formatted file with no read or write keys.
Format
@ELT,c,d,r[,lab] qual,inkcyc,elt,ver,mapperf?,hdgs?,
cs,newcycn .
Field Description
qua/ Qualifier.
ver Version.
continued
continued
Field Description
L Fieldata
F ASCII (default)
U ASCII, uppercase
newcyc? Create a new cycle, Y or N. Y creates a new cycle (+1) for the file and ignores
the entry in the cyc subfield. Note that the run errs if you try to create a new
cycle of a nonexistent file.
Reserved Words
STAT1$ contains error codes:
1 File (relative cycle requested) does not exist.
2 File is already assigned to the MAPPER system.
3 File is already assigned exclusively to the MAPPER system.
4 File is already assigned to another user.
5 File is already assigned exclusively to another user.
6 File is rolled out.
7 Facilities currently unavailable.
8 Private file, under different project-id.
9 Read or write restrictions are on the file.
10 File is not sector-formatted mass storage file.
11 File is not program file (if the element is specified).
12 File is a MAPPER file.
13 System I/O error.
14 Facility warning or reject.
15 Insufficient or improperly formatted statement.
16 File is not a data file (if the element is not specified).
17 Cycle attempted on nonexistent file.
18 Attempted to write past end of file.
STAT2$ contains a line number identifying the system message. Use a
Load System Message (LSM) run statement to read the message. Place the
number in STAT2$ in the ms g n o subfield in the LSM statement.
Example
This example creates myqual*myfile (qualifier*file) and copies the data
from report 2B0 to the file. If there is an error and the system cannot copy
the data, the run goes to label 99.
@elt,O,b,2,99 myqual,myfile .
Field Description
Ityp Line type to scan. If you specify the A option, you can leave this subfield blank,
but enter the comma.
p Find parameters.
vrpt Variable to capture the report number where the first find was made.
vino Variable to capture the line number where the first find was made.
Options
A Processes all line types.
C(S) Distinguishes between uppercase and lowercase letters.
V7 1100: C(x) Alters the find process based on the character set order.
Ordinarily the system processes the report based on the
character set of the drawer. The C option allows you to
choose the character set type on which to base the find. Use
one of the following:
C(F) Full character set (FCS)
C(L) Limited character set (LCS)
C(S) Strict comparison; distinguishes between
uppercase and lowercase letters.
Rx(-y I ','y) Scans a range of reports from report x through report y; scan
reports x,y,...y. (Note that the format Rx,y requires
apostrophes around the comma.)
'' 1100: On OS 1100 MAPPER Systems, you do not need to
enclose the comma in apostrophes.
Examples:
r2','5 Scan reports 2 and 5
r2-10 Scan reports 2 through 10
r2-10','14 Scan reports 2 through 10 and 14
Searches for spaces.
Searches for the slant character.
Comments
• The FDR statement is different from a Find (FND) statement in that
the FDR statement may be followed by an RLN statement instead of an
RDL statement. It is generally more efficient to use an FDR/RLN
combination instead of an FND/RLN combination.
• If a find is made, the report in which the find is made becomes the
current -0. Any previous -0 result is released.
• See also RDC, RDL, and RLN in this section.
where:
5 5
Uses no options
'stcd' Looks in the St Cd field (column 2 for two
characters)
0 Processes tab lines only
ip Looks for the characters ip
<r epo r t> i 6 Captures the report number where the find was
made in <report>
<line>i6 Captures the line number where the find was
made in <line>
r I n ,‹I ine>,099 Captures the order number on the found line (in
'order' <ord>i <line>) in <ord>
Field Description
mapped? Create the report in MAPPER format, Y or N. Default = N, creates the report
in standard data file format. To create a file in binary format (from a binary
report), enter a B.
' 1100: Binary files are not available on OS 1100 MAPPER Systems.
V 1100: Include the full file name. The qualifier and file name must conform to
OS 1100 file naming standards. Only alphabetic, numeric, and the special
characters dollar sign ($) and minus (-) can be included. Refer to the
ECL Operations and Programming Reference for complete information on files,
elements, and cataloging. Default character set of the file to create = F (full
character set; creates an ASCII file).
' U Series and UNIX: Include the full path name. The directory in which the
file is to be created must exist. The maximum length of the file name is 14
characters; the maximum length of the path name and file name is 70
characters. File names can be uppercase or lowercase letters but are
created (or must already exist) exactly as typed. For example, Abc must be
accessed with an uppercase A and lowercase b and c.
' A Series: Include a usercode and pack family (optional). File names must
be uppercase letters. If a usercode is not specified, the file is created under
the user's usercode. If a pack family is not specified, the file is created on the
pack family equated to DISK in the family statement. The file is created with
security set to PUBLIC (I/O).
continued
continued
Field Description
fn V BTOS: Use the full path name: [volume]<directory>fi/ename. The volume and
(cont.) directory in which the file is to be created must exist. BTOS does not default
to the current directory when creating the file. File names are not case
sensitive.
V PC MAPPER: Include the complete path name. The directory you specify
for the file must exist.
Comments
• If you create a file using the name of an existing file, the existing file is
overwritten.
• If the file being loaded does not exist, the FIL statement creates the file.
• To keep information such as report number and date the report was last
updated with the file, create the file with headings. This writes the date
line into the file, so when you retrieve the file, the date line of the
original report is part of the result.
• If the MAPPER report contains tab characters and you do not create the
file in MAPPER format, the tab characters are translated to spaces. See
Appendix C for information on translating tab characters to tab or other
characters using the $TABA$ command.
• To control the format of the data in the files you create, use the data
control commands described in Appendix C.
• U Series and UNIX: You can create the file in MAPPER format (which
is unreadable by UNIX) or in standard UNIX file format (which can be
processed by UNIX utilities).
Field Description
c,d,r Report containing the Screen Control commands that create a custom
function key bar, control line, or both, for the following DSP, DSM, or OUM
statement to display.
vu; kin OS 1100 MAF I-Ln oysteni, yuu jai root Ube a IC [-INT statenient to
customize the control line.
Comments
• The DSP, DSM, and OUM statements continue to use the report you
specified until one of the following conditions occur:
The run terminates.
The run links to another run via the Link to Another Run (LNK)
statement.
You designate another Screen Control report with the FKY
statement.
You use another FKY statement with no report specified.
• To return control to your run, use the KEY screen control command.
Example
This example sets up Screen Control commands in the output area,
performs a Break (BRK) statement to make them accessible as -0, then uses
FKY and DSP statements to display reports with and without a customized
function key bar:
@brk .
fkey,l,'Resume',rsin
fkey,2,'Paint',pnt
fkey,4,'Return',KEY
fkey,10,'Quit',"
@brk fky,-0 .
@d sp , 0 , c ,1 . (Report 1C0 appears with a custom function key bar.)
@i f fkey$ = 4 gto 010 ; .
. (other processing)
@fky .
@d s p , 0, b ,2 . (Report 2B0 appears with the default function key bar.)
FMT (Format)
The Format (FMT) statement creates a display format for a following output
display, such as that created by a Display Report (DSP) or Output Mask
(OUM) run statement. You can select which fields to display by specifying
either field names or column characters.
✓ 1100: On OS 1100 MAPPER Systems, you can also select columns to print
the next time you call the Auxiliary (AUX) or Print (PRT) run statements.
Format
@FMT[,c,d,r] field[,fleld,...,fleld] .
Field Description
Comments
• You can use field names or standard column-character syntax to define
report fields:
- If you name the fields, the display includes the columns of each field
as well as the character immediately following the field.
If you use the column-character positions, the run displays only the
columns specified.
• The system always includes column 1, which contains the line type
designator, in the format.
• You can list fields in any order; however, fields are always displayed in
the same order they appear in the report.
FMT (Format)
The Format (FMT) statement creates a display format for a following output
display, such as that created by a Display Report (DSP) or Output Mask
(OUM) run statement. You can select which fields to display by specifying
either field names or column characters.
V 1100: On OS 1100 MAPPER Systems, you can also select columns to print
the next time you call the Auxiliary (AUX) or Print (PRT) run statements.
Format
@FMT[,c,d,r] .
Field Description
Comments
• You can use field names or standard column-character syntax to define
report fields:
- If you name the fields, the display includes the columns of each field
as well as the character immediately following the field.
- If you use the column-character positions, the run displays only the
columns specified.
• The system always includes column 1, which contains the line type
designator, in the format.
• You can list fields in any order; however, fields are always displayed in
the same order they appear in the report.
Examples
Display the St Cd, Ship Date, and Cust Code fields of the current -0:
@fmt 'stcd','shipdate','custcode' .
@dsp , -0 .
Display column 2 for 3 characters, column 45 for 5 characters and column 64
for 7 characters from report 2B0:
@fmt ,O,b,2 2-3,45-5,64-7 .
@dsp,O,b,2 .
FND (Find)
The Find (FND) statement scans vertically through one or more reports or a
result for one or more items.
Format
o cc Ityp,p [vrpt,vino]
Field Description
Ityp Line type to scan. If you specify the A option, you can leave this subfield
blank, but enter the comma.
p Find parameters.
vrpt Variable to capture the report number where the first find is made.
vino Variable to capture the line number where the first find is made.
Options
A Processes all line types.
C(S) Distinguishes between uppercase and lowercase letters.
V 1100: C(x) Alters the find process based on the character set order.
Ordinarily the system processes the report based on the
character set of the drawer. The C option allows you to
choose the character set type on which to base the find. Use
one of the following:
C(F) Full character set (FCS)
C(L) Limited character set (LCS)
C(S) Strict comparison; distinguishes between
uppercase and lowercase letters
Rx(-y I '31 Scans range of reports from report x through report y; scan
reports x,y,...y. (Note that the format Rx,y requires
apostrophes around the comma.)
V 1100: On OS 1100 MAPPER Systems, you do not need to
enclose the comma in apostrophes.
Examples:
r2','5 Scan reports 2 and 5
r2-10 Scan reports 2 through 10
r2-10','14 Scan reports 2 through 10 and 14
Searches for spaces.
Searches for the slant character.
Comments
• A find is different from a search. A search creates a result, but a FND
statement loads a variable with the line number where the find is made.
• If the specified data is found, the statement:
Renames the report where the find is made to -0. Note that any
previous -0 result is released.
Loads variables with information.
• To update a single line, use a FND statement followed by a Write Line
(WRL) statement (see WRL in this section).
Example 1: Searching a Drawer for an Item
Search for the letters ip in the St Cd field and capture the report and line
numbers where the find is made:
@frid,O,b " 'stcd' ❑ ,ip vli6,v2i6 .
where:
Uses no options
'stcd' Looks in the St Cd field (column 2 for two characters)
❑ Processes tab lines only
ip Looks for the characters ip
v1i6 Captures the report number where the find is made in vl
v2 i 6 Captures the line number where the find is made in v2
Field Description
END[,n,n,n] Call to go to the end of the run (terminates the run and displays the output
area).
For runs started with a Link to Another Run (LNK) statement, n,n,n are up to
three integer status codes that the linked run can pass back to the original
run. The original run can access the codes using the reserved words
STAT1$, STAT2$, and STAT3$. The codes are ignored if the run was not
started via LNK (see LNK in this section).
[+]n Integer representing the number of lines following the current line. When the
system encounters continued lines (reverse slant N at the end of a line), it
considers the current line as the last line of the continuation sequence.
-n Integer representing the number of lines preceding the current line. When the
system encounters continued lines (reverse slant [\] at the end of a line), it
considers the current line as the last line of the continuation sequence.
R PX Call to go to another run control report in the same cabinet and drawer and
execute the run statements.
r Report number of a run control report in the same cabinet and drawer (cannot
be a result).
Note: +n, • n,and r can be variables. Do not, however, type a minus sign in
front of the variable. The plus sign is optional with the line number, so
if v1 contained 5, you could use @gto lin v1. Here is another example:
@gto lin v2, where v2 contains the value -5, is the same as saying
@gto lin -5.
Comments
• The GTO RPX statement executes the run statements in the specified
run control report with these considerations:
The run control report being entered must be in the same cabinet
and drawer as the run that has the GTO RPX statement.
All security checks for the first run must be met by the run control
report being entered.
All variables established in the run having the GTO RPX statement
are valid in the run being entered. Label names used in the calling
run can be used in the RPX run.
The run being entered by a GTO RPX statement need not be
registered. However, since the RPX run control report resides in a
drawer especially for MAPPER runs, inform your coordinator that
you intend to use RPX in the run as part of the run plan.
• For information on computed IF/GTO statements, see IF in this section.
Examples
Go to a line with a label equaling the contents of v6:
@gto v6 .
Terminate the run and display the contents of the output area:
@gto end .
Execute the run statements in report 2 of the same cabinet and drawer
beginning at line 3:
@gto rpx 2 .
HSH (Hash)
The Hash (HSH) statement assigns a hash number within a specified range
to a given piece of input. As long as the specified range remains the same,
the statement always produces the same numeric value for a given piece of
input.
Format
@FISH v=v1d,min-max
Field Description
vid Data to which the system assigns a hash number. Specify the data using a
variable, constant, reserved word, literal, or any combination.
min-max Range within which the system assigns a hash number, where min is the
lowest number in the range and max is the highest number in the range.
Comments
• The HSH statement performs a routine to assign a numeric value to the
input. As long as the range remains the same, the routine produces the
same numeric value for a given piece of input.
• A hash value can serve as a numeric identifier to index information.
Using a hash value rather than an alphabetic or numeric scheme to
index data ensures a more even distribution of data.
Examples
Index employee information among reports:
@hsh <empinfo>=user$,1-100 .
Assign a hash number within a range of 1 to 100 to the combined input of
the user-id and local site identifier:
@hsh <hash>=user$Ilrsd$,1-100 .
Field Description
q Number of lines to display from each report. Default = all heading lines up to
eight lines.
user User-id to index or "all" to index all users. Default = current user.
sdate First update date to be included in the date range (format DDMMMYY).
Default = all. This is the date of the most recent update to the report, or the
creation date if there are no updates.
endate Last update date to be included in the date range (format DDMMMYY).
Default = current date. This is the date of the most recent update to the
report, or the creation date if there are no updates.
endrpt End report number for report range. Default = highest report number.
Examples
Index cabinet 0, drawer A, and create a result containing the first three lines
from each report updated by the user newuser:
tDi du ,0,a,3,newuser .
Index a range of reports under the user-id of newuser:
ti)i du ,O,b ,7,newuser ,01 jan90,30no' v '90,5,10 v1i3,v2i9, \
v3i4,v4i4 .
where:
0, b Indexes cabinet 0, drawer B reports
7 Displays seven lines of data from each report indexed
newuser Indexes user-id newuser
01 jan90 Indexes reports starting on January 1, 1990
30no' v ' 90 Indexes reports ending on November 30, 1990
5 Starts index at report 5
10 Stops index at report 10
vii3 Captures number of reports found in v1
v2 i9 Captures number of lines found in v2
v3i4 Captures number of reports in drawer indexed in v3
v4 i4 Captures highest report number created in v4
IF (If Conditional)
The If Conditional (IF) statement tests the relationship between two or
more values and specifies the statements to execute when the test condition
is true or false.
Formats
Basic Format
@IF' ,C] vail op val2 stmtl . ; stmt2 .
Logical OR
@IF[ ,C] veil op val2,val3[,va14,...,valn] stmtl . ; stmt2 .
Logical AND
ILDIF[ ,C] vall op va12 & op va13 (45 op va14 ...
... & op vain] stmtl ; stmt2 .
Computational IF/GTO
@IF' ,CI vall op val2,(lab)1,val3,(18b),...,valn,
(lab)] . ; stmtl .
Field Description
vail Data to compare to another value. You can specify the data as a variable,
constant, literal, or reserved word.
= or EQ Equal
GE Greater than or equal
> or GT Greater than
LE Less than or equal
< or LT Less than
NE Not equal
NOT = or NOT EQ Not equal
NOT < or NOT LT Not less than
NOT > or NOT GT Not greater than
continued
continued
Field Description
stmtl . Run statement or statements to execute when the condition is true. Include
the space-period-space after the statement. To omit the statement, include
only the space-period-space.
stmt2 . Run statement or statements to execute when the condition is false. Include
the space-period-space after the statement. To omit the statement and
terminate the IF statement, include only the space-period-space.
,val3,valn A comma (logical OR) and a third value, fourth value, and so on.
& op val3 & An ampersand (logical AND), another relational operator, and a third value,
op vain fourth value, and so on.
,(lab) A comma and label number or location in the run to go to if the IF statement
condition is met (TRUE).
Valid entries for lab (computed GTO), in addition to a label number, include
the following:
stmt2 Statement indicating the action to take if the IF statement condition is not met
(FALSE).
Comments
• Use the IF statement for conditional branching or the execution of
another statement.
• If the condition is true, the statements are executed until a branch is
encountered or the equation is terminated with a period. If the
condition is false, the statements following the semicolon are executed.
If vl equals v2, load vl with 1 and continue on the next line; or else release
the screen:
@i f v1 = v2 Idv v1=1 . ; rel .
If <vall> and <val2> are not equal, go to label 3; or else release the screen:
@i f <val1> ne <val2> gto 003 ; rel .
If v22 is greater than 10 AND less than 50, go to label in v99; or else
continue:
@i f v22 > 10 & < 50 gto v99 ;
If vl equals 2, execute the Load Variable (LDV) statement (load v3 with the
value 4), go to label 1 and continue; if vl does not equal 2, go to label 2:
@i f v1 = 2 Idv v3=4 gto 001 ; gto 002 .
Execute the LDV statement (load v3 with the value 4) only if vl equals 2; in
either case (TRUE or FALSE), go to label 2 and continue:
@i f v1 = 2 Idv v3=4 ; gto 002 .
Note that in the previous example, the run goes to label 2 even if the
condition of the IF statement is not met, because the GTO statement is the
next logical statement to execute.
This example uses an unknown trailing substring. (The 0-3 specifies the
last three characters; the starting column position is unknown.) If the last
three characters of vl contain the letters mon, go to label 25:
@if v1(0-3) = mon,(025) ; .
This example uses a known trailing substring. (The 3-0 specifies the known
starting position of 3 for the remainder of the field.) If the characters
beginning with character 3 through the end of the field contain the letters
fri, go to label 26:
@i f v1(3-0) = fr i,(026) ; .
If the value of <testl> is equal to <count>, the value of <testi.> is increased
by 1; otherwise, <testi.> is increased by 2:
@if <testi> = <count> inc <testi> . ; inc,2 <testi> .
IND (Index)
The Index (IND) statement creates a result containing a listing of a specified
number of lines from all reports in a drawer.
Format
@IND,c,d[,q, lab] .
Field Description
q Number of lines to display from each report. Default = heading lines (up to eight).
Reserved Words
STAT1$ contains the number of reports in the drawer.
STAT2$ contains the total number of lines in the drawer.
Comments
• The result contains a date line and lists the number of reports in the
drawer, the total number of lines in the drawer, the number of lines
contained in each report, and a specified number of lines from each
report.
• If you are indexing reports that are fewer than 80 characters wide, the
information containing the number of lines from each report is added as
trailer lines.
Example
Index cabinet 0, drawer A, and create a result containing the first four lines
from each report in the drawer (if no report exists, go to label 2):
@ind,O,a,4,002 .
Field Description
Comments
• The OUV/ITV combination does not alter or affect the current -0.
• The ITV statement following an OUV or interim OUT stalls the run
until the user presses a function key or Transmit. While the run is
stalled, the ITV statement controls the terminal and all input.
• Normally, if output is on display and you enter data on the control line
and press Transmit, MAPPER software interprets the input. With the
ITV statement, any data entered on the control line is ignored by
MAPPER software and interpreted by the ITV statement. You can
capture data entered on the control line if you place a tab character at
home position.
• Data starts from a tab character; data following the first tab character is
captured in the first variable, data following the second tab character is
captured in the second variable, and so on.
. (other processing)
Field Description
v Variable to reformat. If the variable you specify does not contain numeric data, the
system does not change the variable.
Options
C Inserts commas in the integer portion of the variable every third
digit, eliminates leading zeros, right-justifies the contents, and blank
fills all remaining characters to the left of the number.
Notes: 1. You must remove commas inserted by the C option
before executing a Change Variable (CHG) or If
Conditional (IF) statement against the variable. Use
any other option to remove commas.
V 1100: On OS 1100 Systems, you do not need to remove
commas before using CHG or IF statements.
2. If inserting commas would expand the variable beyond
the defined size of the variable, the variable remains
unchanged.
D Deletes all commas and leading zeros, and right-justifies the
contents within the variable.
L Eliminates leading and trailing zeros, left-justifies the contents, and
blank fills all remaining characters to the right of the number.
R Eliminates leading and insignificant trailing zeros, right-justifies the
contents, and blank fills all remaining characters to the left of the
number.
X Eliminates leading zeros, left-justifies the contents, and zero fills all
remaining characters to the right of the number.
Z Eliminates insignificant trailing zeros, right-justifies the contents,
and zero fills all remaining characters to the left of the number.
Examples
In the following examples, A stands for a blank character position.
Initialize <string> to a type A, 12-character variable with a value of
6543.210:
@Idv <str ing>a12=6543.210 . <string> = 6543.210AA00
Field Description
I Line number at which to start the scan. (The LCH statement processes data
lines only; if you specify a heading line, the scan begins with the first data
line.)
o Options field. The A, F, and M options are always assumed (see Options).
, A skipped subfield. (This subfield is not used in LCH statements. Type the
comma before entering the other variables.)
vlines Variable to capture the number of lines located that contain the target string.
vrpt Variable to capture the report number where the target string is located.
Options
A Processes all line types. If used alone, this option instructs the
system to ignore the first character of the target string, and to
change the line type of all lines having finds to the first character of
the replacement string. The A, F, and M options are always
assumed.
C Distinguishes between uppercase and lowercase characters.
Without this option, case is ignored.
V 1100: On OS 1100 MAPPER Systems, tnis option applies only to full
character set (FCS) reports.
F Processes all line types and uses the first character of the tgtstr
and repistr subfields as part of the target and replacement
strings. The A, F, and M options are always assumed.
V 1100: On OS 1100 MAPPER Systems, the F option processes all line
types and locates and changes the entire string. It does not locate
strings that start in column one. The A, F, and M options are always
assumed.
M Treats the first character of the target string as the line type
designator. This option takes the place of a line type subfield
(normally shown as i t yp). You must use the M option to locate a
string beginning in column 1. The A, F, and M options are always
assumed.
O Creates a result containing the items found.
OU Creates an update result, after which you can do one of the
following:
• Delete the found lines from the report with a Delete (DEL)
statement.
• Delete the found lines from the report and place them in a result
(-0) with an Extract (EXT) statement.
• Make changes to the update result and blend the updated lines
from the result back into the report with an Update (UPD)
statement.
where:
40,099 Starts scan at line 40 and goes to label 99 if no target
string is located
afm Uses A, F, and M options
2-79 Starts scan in column 2 for 79 characters
execut i on/ Specifies target and replacement strings: each
processing time the word execution is encountered, replace it
with the word processing
<lines>i4 Captures the number of lines located that contain
the target string in <lines>
Field Description
lab Label at which to continue execution when no finds are made or when n
occurrences are not found (see the Bn option). To continue execution at the
label when a find is made, use the N option. (To simplify your run logic, if you
want the run to continue on the next line, use LIN1 in this subfield instead of a
label number.)
o Option that determines how to search the variable for data (see Options).
v Variable to be scanned. You can specify any type of variable, and you can
specify a substring or an array member.
tgtstr The data you want to locate within the variable (called the target string). You
can specify the data using a variable, literal, constant, or reserved word.
Within the target string, the transparent character is a wildcard character; that
is, the transparent character matches any character in that position.
The default transparent character is the space. Therefore, any spaces in the
data are treated as wildcard characters. You can use the Tx option to
change the default transparent character when you need to locate spaces.
continued
continued
Field Description
replstr The data (from 0 to 256 characters) to replace the target string. If you do not
use the Bn option, the statement replaces all occurrences of the target string
with the replacement string.
To completely remove the target string, enter nothing for the replacement
string (for example, target/ ).
vpos Variable to capture the character position within the variable of the first
occurrence of the target string.
With the Bn option, vpos captures the character position of the nth
occurrence of the target string within the variable.
voccs Variable to capture the number of occurrences of the target string within the
variable. This is useful when doing a change or locate with the B option.
Options
B(n I n-x) Bail out option—with the Bn and Bn-x option, indicates which
occurrences of the target string are to be processed.
Bn Locates only the nth occurrence of the target string
(variable vpos captures the character position within
the variable of the nth occurrence), or locates and
changes n occurrences (vpos contains the character
position of the first changed occurrence).
Bn-x Locates and changes from n through x occurrences of the
target string, where n is the first occurrence to process
and x is the number of subsequent occurrences from n to
process. Variable vpos captures the character position
of the first changed occurrence.
C Distinguishes between uppercase and lowercase characters.
Lr Locates a specific line type where x is the line type. The first
\......" character in the variable must match the line type designator
the statement stops processing variable.
column 15 column 34
locate columns
Locate the second occurrence of the word cat in vl starting at column 15 for
20 characters:
@lcv,001 b2 v1(15-20) cat v2i6 .
where:
001 Goes to label 1 if fewer than two occurrences of the word
cat are found
b2 Bails out on the second occurrence of the word cat
v1(15-20) Scans vl starting in column 15 for 20 characters
ca t Locates target string cat
v2 i 6 Captures the character position where the second
occurrence of the word cat begins
After the statement executes, v2 contains 22 (the column in vl where the
second occurrence of the word cat was found).
Change the second, third, and fourth occurrences of the word DOG to cat in
v1:
iP1 cv l*b2-3 v1 DOG/cat v2i6 .
where:
l* Makes the change only if the first character of vl is an
asterisk (the line type indicator)
b2-3 Changes target string starting at the second occurrence for
three occurrences
v1 Scans vl
DOG Locates target string DOG
cat Changes target string DOG to cat
v2 i 6 Captures character position of first occurrence of target
string changed
Since the first character of v1 matches the character specified in the L
option, the change is made. V2 equals 11 and v1 contains:
*CATDOGCAT c a t CAT c a t CAT c a t CATDOG
1 2 3 4 5
v2=11
Use the M option to locate each occurrence of the string black followed by
any three characters, followed by the number 1. Each time the locate string
is found, the characters black are changed to green, the next three
characters remain unchanged, and the last character, 1, is changed to 2.
@Icv m vl 'black/1M1'/'green 2' v2i6,v3i6 .
where:
m Specifies the mask option — transparent characters
in the replacement string are not inserted into the
variable being changed
vl Scans vl
'blacktAi\l'/ Specifies the target string and change string
delimiter ( / )
'green 2' Specifies the replacement string (characters with
which to replace each occurrence of the target string)
v2i6 Captures the column of the first occurrence changed
in v2i6
v3 i 6 Captures the number of occurrences changed in v3i6
V1 now contains:
greenbox2*greencan2*greenbag2*greencup2
Field Description
o Option that determines how data is put into the variables in the array (see
Options).
nametypesize Name of the variable array to initialize immediately followed by the variable
type and number of characters allowed in each member of the array.
vid Information to load in each member of the array (variables, literal data,
constant, or reserved word).
Options
C Centers data within the variable.
L Left-justifies the data within each variable.
P Packs data into each variable so that the variable contains only
significant characters.
If you pack data that does not contain any significant characters,
the variable into which you packed the data becomes a variable
of 0 length. And, if you try to use a variable of 0 length in a run
statement, the results are unpredictable.
To avoid creating a variable of 0 length, use the Define (DEF)
run statement to determine the packed size of a variable before
you pack it. See DEF in this section.
Example
Initialize an array of variables called <qty> as an integer array containing
five array members, and load information into each member of the array:
@Ida <ci ty>i 61 51=1, 12, 123, 1234, 12345 .
The members <qty>[1] through <qty>[5] contain the following information:
<qty>[ 1] = 1
<qty>121 = 12
<qty>13] = 123
<qty>14] = 1234
<qty>151 = 12345
Field Description
o Option that determines how data is put into the variable or variables (see Options).
v Variable into which you want to put data. To define or redefine the variable,
include the variable type and size.
vld Data you want to put into the variable. You can specify the data using a literal,
constant, variable, reserved word, or any combination of these.
Options
C Centers data within the variable.
V 1100: H Tests the remote run link. Use the format LDV,H v=rms, where
v is the variable to capture the result (0 = offline; 1 = online)
and rms is the remote site number.
L Left-justifies the data within the variable.
Packing Variables
With the P option, you can delete leading or trailing spaces from a variable.
This is called packing a variable. Do not, however, pack a variable to
contain no characters at all. If you do, other functions trying to use the
variable may err.
Once you pack a variable to contain fewer than its original number of
characters, you must reinitialize the variable to make it larger. If you try to
place more than the original number of characters in a variable, you lose the
extra characters.
Field Description
/V Receiving variable.
iv Issuing variable.
(delim) Character to use as a delimiter. Default = tab character. The parentheses are
required.
Field Description
0 Option that determines how data is put into the variable or variables (see Options).
Variable into which you want to put data. To define or redefine the variable,
include the variable type and size.
vld Data you want to put into the variable. You can specify the data using a literal,
constant, variable, reserved word, or any combination of these.
Options
C Centers data within the variable.
V 1100: H Tests the .emote run link. Use the format LDV,H v=rms, where
v is the variable to capture the result (0 = offline; 1 = online)
and rms is the remote site number.
L Left-justifies the data within the variable.
Packing Variables
With the P option, you can delete leading or trailing spaces from a variable.
This is called packing a variable. Do not, however, pack a variable to
contain no characters at all. If you do, other functions trying to use the
variable may err.
Once you pack a variable to contain fewer than its original number of
characters, you must reinitialize the variable to make it larger. If you try to
place more than the original number of characters in a variable, you lose the
extra characters.
Field Description
ry Receiving variable.
iv Issuing variable.
(delim) Character to use as a delimiter. Default = tab character. The parentheses are
required.
Load <cab> with the cabinet number, <drawer> with the numeric drawer
number, and <report> with the report number of the last report or result
processed or on display:
@Idv,w <cab>i4=cab$,<drawer>i6=drw$,<report>i4=rpt$ .
Use an unknown trailing substring to load v2 with the minutes and seconds
(MM:SS) substring from vl (the 0-5 specifies the last five characters, but the
starting character position is unknown):
@Idv,w v1a8=time$ . v1 now contains hh:nrEss
@Idv v2i5=v1(0-5) . v2 now contains mm:ss
Use a known trailing substring to load v2 with the seconds (SS) substring
from vl (from the previous example — the 7-0 specifies the substring
beginning with the seventh character through the end of v1):
@Idv v2i2=v1(7-0) . v2 now contains ss
Field Description
Comments
• The variable receives a string of Xs and blank characters. The Xs stand
for character positions displayed, similar to report 0.
• An LFC statement works only in runs registered as format sensitive.
• Use an Set Format Characters (SFC) statement after an LFC statement
to set format characters.
Example
Capture the format of the current result in variable vl:
tbl tc vls80
The variable receives a string of Xs and blank characters. The Xs stand for
character positions displayed, similar to the format lines in report 0.
Field Description
Reserved Word
STAT1$ contains one of the following codes in case of an error:
1 Report heading is improperly formatted for field names.
2 Columns supplied do not fall within field boundaries.
3 Field name in the report heading has no significant characters.
4 Field name is not unique in the report heading.
5 Field name was truncated because of the variable size, and the name
is not unique in the report heading.
STAT2$ contains the number of the field in error.
Comments
• See Section 3 for a general description of named fields.
• The LFN statement is especially useful for converting an existing run to
one that uses named fields. It is also useful for translating column
position data, such as that obtained from the Output Mask (OUM)
statement (see OUM in this section), into field names.
• You can have field names enclosed in apostrophes; this makes it easier
for you to create run statements.
• If a specified variable is not large enough to contain an entire field
name, any trailing characters in the name are truncated.
• If the specified columns do not represent an entire field, the statement
loads the name followed by a partial field description.
• If the run cannot load a field name, it continues at the label.
• If the statement has no label and a field name cannot be loaded, the run
continues at the next statement, loading the variable with the actual
column-characters (for example, 2-2).
Example
Load field names from report 2B0:
@I fn,0,b,2,y 2-2,45-3 v1h18,v2h18 .
where:
0, b , 2 Loads field names from report 2B0
y Encloses field names in apostrophes
2-2,45-3 Gets names from column 2 for two characters and
column 45 for three characters
v1h18 Loads vl with the name from positions 2-2 (v1 = 'StCd')
v2h 18 Loads v2 with the name from positions 45-3
(v2 = 'CustCode(1-3)')
Field Description
Reserved Word
LINK$ contains 0 if the run is not started by a LNK statement or nonzero if
the run is started by a LNK statement.
Comments
• A LNK statement differs from a Run Start (RUN) statement, in that
when it starts a run that executes a GTO END statement, it returns
control to the calling run. See RUN and GTO in this section.
• The system can transfer up to 40 input parameters, as well as the
current result (-0), to the called run for processing.
• You cannot link to a run that is registered for a greater number of
variables, labels, or variable characters.
V 1100: On OS 1100 MAPPER Systems, registering runs for different
numbers of variables, labels, or variable characters is not available.
• The called run can return up to three numeric status codes via the
GTO END statement, which you can use to signify whatever you like.
The current -0 result is also available to the calling run. To capture the
numeric status codes once control returns to the calling run, examine
the reserved words STAT1$, STAT2$, and STAT3$.
LOC (Locate)
The Locate (LOC) statement locates a character string within a report or
result and, with the 0 or OU option, creates a result.
Format
@LOC,c,d,r[,1,101:0] o cc tgtstr [vcol,vIno,vrpt] .
Field Description
I Line number at which to begin the scan. (The LOC statement processes data
lines only; if you specify a heading line, the scan begins with the first data line.)
o Options field. The A, F, and M options are always assumed (see Options).
vcol Variable to capture the number of the column preceding the column where the find
starts.
vino Variable to capture the line number where the target string is located.
vrpt Variable to capture the report number where the target string is located.
Options
A Processes all line types. If used alone, the first character of the
target string is ignored. For example, if the target string is I abc
( I represents a tab character), the A option looks for the string abc
on all line types. The A, F, and M options are always assumed.
C Distinguishes between uppercase and lowercase characters.
V 1100: On OS 1100 MAPPER Systems, this option applies only to full
character set (FCS) reports.
F Processes all line types and includes in the target the first character
of the t g t s t r subfield. The A, F, and M options are always
assumed.
M Uses the first character of the target string as a line type designator.
This option takes the place of a line type subfield (normally shown
as i t yp). For example, if the target string is I abc ( I represents a
tab character), the M option looks for the string abc on tab lines.
Use with the F option to find the string on all line types, even when
the string starts in column 1. The A, F, and M options are always
assumed.
0 Creates a result containing items that are found.
Note: With the 0 option, the variable v CO contains 0, the variable
vino contains the total number of lines that contain the target
string (not the line number where the target string was
located), and the variable vrpt contains the report number
where the target string was located.
OU Creates an update result; then you can perform one of the following
operations:
• Delete the found lines from the report with a Delete (DEL)
statement.
• Delete the found lines from the report and place them in a result
(-0) with an Extract (EXT) statement.
• Make changes to the update result and blend the updated lines
from the result back into the report with an Update (UPD)
statement.
You cannot execute the LOC statement with the OU option against a
result.
Sx Starts scan at line x, where x is a positive number.
Sx-y Starts scan at line x and stop at line y.
Sx','n Starts scan at line x and scan n lines. The comma must be enclosed
in apostrophes ( ').
1100: On OS 1100 MAPPER Systems, you do not need enclose the
comma in apostrophes.
Tx Sets x to a transparent character to match any character in that
position. Do not use it in the first character position of the target
string. If you do not specify the T option, all blank characters are
transparent. For example, the character string "A D" with the T
option locates all A-space-space-D strings; without the T option,
"A D" locates all four-character strings with A in the first character
position and D in the fourth character position, such as ABCD,
A 2D, and A%CD.
Example
Locate the characters fed:
@loc,0,b,2„099 afm 2-79 fed <col>i3,<I ine>i 5 .
where:
099 Goes to label 99 if no target string is located
afm Uses the A, F, and M options
2-79 Starts scan in column 2 for 79 characters
fed Locates the target string fed
<col> Captures a number one less than the column number
where the target string was located in <col>
<I i ne> Captures the line number where the target string was
located in <line>
Field Description
msgno Message number. If you are using this statement in an error subroutine, capture
the message number with the reserved word XERR$ (see RER in this section).
vmsg Variable in which to place the message. Specify 80 characters for the variable size
so that the entire text of the system message fits in the variable.
Example
Load v2 with the message in message number vl:
tbldv,w v1i4=xerr$ Ism,v1 v2s80 .
or
@Ism,xerr$ <error>s80 .
Field Description
lab Label to go to if the report number or drawer does not exist. Use this subfield
alone to find out whether the report or drawer exists. (To simplify your run
logic, if you want the run to continue on the next line, use LIN1 in this subfield
instead of a label number.)
vhdgs Variable to capture the number of heading lines. For a result, this always
equals 1.
V 1100: vcs Variable to capture the number of the set typ.... 0 = LCS, I = FCS,
and 2 = FCSU.
V 1100: vupds Variable to capture th= n.,,,d-snr of updates to the report it wa-
vdept Variable to capture the department number if the report has a department-
private read password.
vuser Variable to capture the user-id if the report has a user-private read password.
continued
continued
Field Description
vrpw Variable to capture the read password, or the word LOCKED if the report has
a read password.
vwpw Variable to capture the write password, or the word LOCKED if the report has
a write password.
vIgn Variable to capture the number of the language with which this drawer was
created.
V 1100: On OS 1100 MAPPER Systems, the vIgn subfield does not apply.
Reserved Words
STAT1$, STAT2$, and STAT3$ contain the following information under
these circumstances:
If the report exists:
STAT1$ Date of the last update in DATE1$ format YYMMDD
STAT2$ Creation date of the report in DATE1$ format YYMMDD
STAT3$ Save flag date, if one exists. If the save flag contains an
invalid date, STAT3$ = 0.
If the report has never been updated:
STAT1$ 0
If the report does not exist:
STAT1$ Highest report number in the drawer
STAT2$ (Disregard)
If the drawer does not exist:
STAT1$ 0
STAT2$ (Disregard)
Comments
• The v r pw and vwpw variables contain the word LOCKED if the report
has a read or write password. The word LOCKED is also indicated if
the user is not signed on in department 2 (the MAPPER system
coordination department).
V 1100: On OS 1100 MAPPER Systems, the word LOCKED is also
indicated if the user is not signed on with the key user sign-on accessible
to coordinators, which is not necessarily in department 2.
• If the report or drawer does not exist, the run continues at the label or, if
you did not specify a label, the run continues at the next statement.
• If you specify a renamed result that is not previously renamed with a
Rename (RNM) statement, the run errs; it does not go to the specified
label.
V 1100: Under the same circumstances on the OS 1100 MAPPER System,
the run continues at the specified label.
Example
Capture the number of lines in report 2B0, in <lines> (if that report or
drawer does not exist, the run goes to label 99):
@lzr,0,b,2,099 <I ines>i5 .
MCH (Match)
The Match (MCH) statement matches fields in two reports, then moves data
from the issuing report to the receiving report, creating a result.
To create an update result that allows you to blend the changed lines back
into the original report or delete lines from the original report, use the
Match Update (MAU) statement. The MAU statement uses the same fields
and subfields as the MCH statement. See the online help system
(HELP,@MAU) for more information.
Format
@MCH,lc,iddr,rc,rd,rr[dab] o !cc iltypdp rcc rltyp,rp
Field Description
lab Label to go to if the issuing or receiving report is not sorted (valid only with
the P option).
iltyp Line type in the issuing report to match against. (If you specify the A option,
you can leave this subfield blank, but enter the comma.)
rltyp Line type in the receiving report to match against. (If you specify the A
option, you can leave this subfield blank, but enter the comma.)
Options
A Matches all line types.
B Blends issuing and receiving report lines in a result. Data must be
presorted. Do not use this option with the M or N options. This
option does not apply to the MAU statement.
C(S) Distinguishes between uppercase and lowercase letters.
V 1100: On OS 1100 MAPPER Systems, this option applies only to full
character set (FCS) reports.
D Deletes match information lines from the result. The D option is
always assumed.
E Does not move blank fields from the issuing report. For matched
items appearing in multiple lines of the issuing report, if the last
item of the group is blank, the function does not move the data.
F Does not fill move fields in a no-match condition. This option does
not apply to the MAU statement.
M Includes in the result only lines containing fields that match
between the compared reports. Do not use this option with the B
option. The M option is always assumed with the MAU statement.
N Includes in the result only lines containing fields that do not match
between the compared reports. Do not use this option with the
B option.
P Specifies that issuing and receiving reports are presorted by fields to
be matched. Do not use this option with the Q option.
V 1100: See also Appendix D for information about which character set
to specify when presorting.
Or
where:
0,b,2 Compares lines in reports 2B0 and 2C0
0,c,2
Field Description
vld Variables, literal data, reserved words, or any combination of these (up to 48
characters), to make up the message. If you use spaces, enclose the
message in apostrophes.
V 1100: vrsp Variable to capture the operator response (up to 60 characters). If you use
this field, the run waits for a response before continuing.
The system console displays the message preceded by the following signal:
MAPPER*nnn*
Examples
Field Description
site-id Site identifier of the remote MAPPER system. Default = first site configured
for the specified network identifier.
rmu User-id registered on the remote MAPPER system. Default = user-id of the
user executing the run.
rmd User department number for the remote MAPPER sign-on. Default =
department number of the user executing the run.
rmpw User-id password for the remote MAPPER sign-on. Default = password of
the user executing the run.
trnrpt Report that contains a translation table used to translate characters between
the local and remote MAPPER sites. The translation reports must be in
drawer F of the user's language cabinet. Default = no translation used.
Comments
V • U Series, UNIX, and PC MAPPER: The user must be registered to
execute the INTER_RUN run on the remote MAPPER system. Contact
the coordinator to verify access to the INTER_RUN run.
V • 1100: The user must be registered to execute the INTER-RUN run on
OS 1100 MAPPER Systems.
V • A Series: The user must have a usercode on the remote system and
must be registered to execute the INTER_RUN run on the remote
MAPPER system. Contact the coordinator to verify usercodes and
access to the INTER_RUN run.
• You must specify either the network identifier or the site identifier. If
you do not specify the site identifier, MAPPER software defaults to the
first site configured for the specified network identifier.
If you specify only the site identifier, MAPPER software reads the
network configuration report for the correct network identifier. Contact
your MAPPER system coordinator for the network and site identifiers
configured on your system.
Example
Sign on to remote host SYS15, site identity z, with sign-on
newuser,7,newuser and monitor the sign-on to the remote site:
@net,SYS15,z,newuser,7,newuser „y .
Field Description
ic,id,ir Issuing report on the remote MAPPER system (if you specify a result, you
must also specify the cabinet and drawer, for example, 0,b,-2).
rc,rd,rr Receiving report on the local MAPPER system. If you leave the rr subfield
blank or enter 0, the issuing report is returned as a result (-0).
Example
Read report 2B0, on the remote MAPPER system and place the data into
report 5B0, on the local MAPPER system (go to label 99 in case of an error):
• nrd,O,b,2,0,b,5,099 <error>s80 .
• dsp,-0 .
. Other processing
Field Description
"cmd" Run name or manual function call to execute at the remote site, including
input parameters to be sent to the run or manual function. Enclose the
request in quotation marks ( " ).
Comments
• With the NRM statement, since the terminal remains under local
control, the screen and keyboard retain the look and feel of the local site
regardless of the kind of system to which the user is connected. This
allows you to design distributed applications that let users process data
on different systems transparently.
• To return to the local site, the run user can type two release characters
(^^) and press Transmit.
If the NRM statement started a run, you can have the remote run
execute a Network Return (NRT) statement to return to the local site.
• The run containing the NRM statement remains active while the
statement executes at the remote site.
• To maintain the transparency of a run executing at a remote site, be
sure to include error and abort routines in the remote run. See RAR and
RER in this section for information on abort and error routines.
The routine should return the run user to the local site via an NRT
statement in case of an error.
Example
Sign on to remote host SYS15, MAPPER site k, then use the NRM
statement to execute a run named abc:
@net ,SYS15, k, newuser ,7, newuser .
@nrm "abc" .
Field Description
Comments
• To process the results generated from an NRN statement, rename the
results.
• Using the NRN statement to execute statements that load variables
may cause conflicts with the INTER_RUN run that processes NRN
requests. Do not use variables v1 through v15 in the NRN statement
because they are reserved for the INTER_RUN run.
V' 1100: On OS 1100 MAPPER Systems, the name of the run is
INTER-RUN.
V • 1100: Passing a run statement that terminates control of a run causes
the INTER-RUN run to end. Examples of this category of run
statements are RUN and GTO RPX.
Example
You can then use a Network Read (NRD) statement to read the result into a
report on the local MAPPER system.
See NWR in this section for more examples.
Field Description
"cmd" Run name or manual function call to execute at the local site, including input
parameters to be sent to the run or manual function. Enclose the request in
quotation marks ( " ). If no "cmd" is specified, the run returns control to the
local site and continues at the statement following the NRM statement.
Example
A run named abc has been executed from another site. The last line of run
abc includes an NRT statement to return control to the local site. Once
control is returned to the local site the run that executed abc via an NRM
statement continues executing at the next line:
@n r t .
Field Description
Entry Description
0 Duplicates the report within the drawer. STAT2$ contains the report
number of the new report.
-1 through -8 Creates a renamed result, which you can use with the Network Run
(NRN) statement.
Examples
Write report 2B0, to report 3B0, on the remote MAPPER system (if an error
occurs, go to label 99):
@nwr,O,b,2,0,b,3,099 <error>s80 .
Send report 1CO, to the remote MAPPER system and rename it -1 in
cabinet 0, drawer C. Use the NRN statement to execute a Match (MCH)
statement between the renamed result and report 1DO, and rename the
result -2. Send the -2 result back to the local MAPPER system via the
Network Read (NRD) statement and display the result:
@nwr,0,c,1,0,c,-1,099 v1s80 .
@Mrn,099 "@mch,O,d,1,-1 " 12-9,31-8 ,1,a
2-9,33-8 ,1,a rnm -2" v2s80 .
@nrd,0,c,-2,0,c„099 v3s80 .
@Wsp,-0 .
OK (Acknowledge Message)
The Acknowledge Message (OK) statement acknowledges any outstanding
message queued to your station.
Format
@Olq,lab,vrsp] .
Field Description
Examples
Acknowledge an outstanding message and continue the run at the next
statement (if there are no queued messages, go to label 3):
titok , 003 .
1100: The following example does not apply to OS 1100 MAPPER Systems.
As an example of how you might use an OK statement in a run, suppose
your terminal beeps, notifying you of a message. You start a run that saves
the message in a report.
First the run executes a Wait (WAT) statement with the M option to
suspend the run while the system passes information to it that a message is
waiting. If you started this run without a message waiting, the run waits for
1000 milliseconds, expecting the message, but then continues at the next
line; otherwise, the run continues at the label, where it acknowledges the
message and saves it in a report. Then the run displays information about
the saved message. Here is the run:
@65:wat,m,60 1000
@brk .
No message was received.
@gto end .
@60:ok dup,-0 idv,pw v1i4=cab$,v2a1=adrw$,v3i4=rpt$ .
@brk .
The message is in report v3v2v1.
@brk out,-0,2,5,1,1,y .
V 1100: The following example applies only to OS 1100 MAPPER Systems.
As an example of how you might use an OK statement in a run, suppose
your terminal beeps and you press Message to acknowledge the message.
You start a run that duplicates the message into a report and captures the
report number, drawer, and cabinet number where the system has added
the new report. The run then acknowledges the message (OK) and displays
the information. Here is the run:
@dup,-0 idv,pw v1i4=cab$,v2a1=adrw$,v3i4=rpt$ .
@ok brk .
The message is in report v3v2v1.
@brk out,-0,2,5,1,1,y .
Field Description
0 Options field (see Options). Enter options in lowercase characters. If you do not
specify options, you must designate the options field with two apostrophes (' ').
Options
-b Executes the command in the background and is minimized as an
icon on the screen.
-f Causes the output of the command to be returned as a result in
drawer A. If you enter a file name immediately following the
-f option, the statement places a copy of the output from the
command into that file. (You cannot use this option with the
-w option.)
-w When the command is finished executing, the MAPPER system
pauses until you enter the exit command in the active window to
return to the active screen. (You cannot use this option with the
-f option.)
Comments
• If you use the -b option but do not specify a command, the operating
system command interpreter (CMD.EXE) session is displayed as an
icon. You must open the icon, execute any commands, and exit back to
your MAPPER session. Your MAPPER session shows a WAIT message
until you exit from the CMD.EXE session.
• If you use a reverse slant ( \ ) to define a directory path in an 0S2
statement, it must be enclosed in apostrophes. This prevents the
directory path from being misinterpreted as a MAPPER run statement
that continues on the next line.
Example 1: Accessing the Operating System
This statement accesses the native OS/2 operating system (you must enter
the apostrophes to preserve the positions of options and commands):
@os2 " " .
Example 2: Listing the Contents of a Directory
This statement lists the contents of the \mapper directory on drive C: and
places the output in a cabinet 0, drawer B result:
tbos2,0,b -f 'di r c:Irnapper ' .
Field Description
k,id,ir Report that contains the headings to be used in the mask (single mask) or of
the issuing report (double mask). Default = report 0.
if Format in which to display the mask (single mask) or of the issuing report
(double mask). Default = basic format.
rf Format of the receiving report mask (double mask). Default = basic format.
Reserved Word
INMSV$ captures user input from the function mask screen. Use these
guidelines:
- Use INMSV$ only with an OUM statement.
- Place INMSV$ before the variable names in the Change Variable (CHG)
statement.
- Place the CHG statement before the OUM statement.
Use string (type S) variables. You can use alphanumeric (type A) or
Hollerith (type H) if the data fits in them.
Comments
• Use the blank function mask to load run parameter data into a variable.
For a single mask, an OUM statement returns the option line and up to
four decoded parameter lines. For a double mask, it returns the option
line and up to two decoded parameter lines.
• The first variable initialized by INMSV$ contains the entire option line.
In a single mask, you can capture up to four parameter lines. In a
double mask, you can capture the two parameter lines allowed (one each
for the issuing and receiving masks). Each parameter line requires
three variables.
The first variable contains the starting column numbers of the fields
where the run user entered parameters. Each starting column
designation in the variable is three characters long, right-justified,
and filled with zeros. The three-character designations for all
starting columns are packed to the left in the variable. For example,
parameter entries starting in columns 2 and 45 in the mask yield a
variable containing 002045.
Whenever you use a format other than basic, the column numbers
are those defined in report 0 for the format. For example, if format 1
displays a field that actually starts in column 126, the variable
contains 126 for the starting column number, not the column
number where the field was displayed on the screen.
Use a 120-character variable to hold the maximum 40 fields
possible. The system fills unused character positions with blanks.
The second variable contains the corresponding field sizes, three
characters each, packed to the left in the variable.
The third variable contains the entire parameter line expanded
according to the format of the mask.
The run stalls until the user presses Transmit, then it continues with the
data in the specified variables.
Note: To use field names in your run rather than column positions, use the
first and second parameter line variables with the Load Field Name
(LFN) statement.
• The screen display contains a function key bar. You can customize the
function key bar so that you can include operations not available with
the standard function key bar. See FKY in this section.
' 1100: On OS 1100 MAPPER Systems, the function key bar may or may
not be available at your site.
Example 1: Using a Single Mask
Display a single function mask:
@chg inmsv$ v1s80,v2s120,v3s120,v4s132,v5s120,1
v6s120,v7s132 .
Citum,0,d,1,1 „„„ 'TEST' .
where:
@chg inmsv$ Loads INMSV$ with variables
v 1 s80 Loads vl with the option line
v2s 120 Loads v2 with the first parameter line field starting
columns
v3s 120 Loads v3 with the first parameter line field sizes
v4s 132 Loads v4 with the first parameter line
v5s 120 Loads v5 with the second parameter line field
starting columns
v6s 120 Loads v6 with the second parameter line field sizes
v7s 132 Loads v7 with the second parameter line
oum,O,d,1 ,1 Displays a blank function mask derived from
report 1DO, format 1, to receive user input
' TEST' Displays the title TEST above the mask
6. @ INC,3 V10 .
7. @ IF V10 < V11 GTO 001 .
Here is a description of each line:
1. Initialize the column-character position.
2. Determine the number of fields selected based on the number of
characters in v2.
3. Obtain the starting column number.
4. Obtain the field size.
5. Obtain the field from the parameter line.
6. Increase the column-character position by 3.
7. Loop back if there are more columns.
You now have all the options, column-character positions, and parameter
entries in variables. Use these variables in statements such as Sort (SOR),
Search (SRH), and Totalize (TOT), depending on the kinds of parameters
the run user enters in the mask. An SOR statement does not get far, for
example, if your variables contain search parameters.
OUT (Output)
The Output (OUT) statement clears the output area, clears any defined
function key bar, and displays lines from a report or result on the screen.
You can use it to display an entire screen or overlay an existing screen.
You may also use the Screen Control (SC) run statement to display data on
the screen. The SC statement provides many features not available with the
OUT statement. See SC in this section.
Format
@DUT,c,d,r,1 ,q[,out I ,tabp,erase?,interlm?,pdq,protect ,Ixmt?,
outsp1,61 I nk1,sn,lab] .
Field Description
I Line number in the report or result from which the output is to start.
outl Line on the screen where the output is to start. Default = top line of the
screen.
tabp Tab character after which to position the cursor. A positive number is the
number of tab positions to advance (maximum is 100) and a negative number
is the number of positions to move back (maximum is 100) from the home
position. Default = home position.
interim? Interim display (the run continues without the user resuming), Y or N.
Default = N.
pdq Number of lines to push down on the screen (push down quantity).
protect Protected format option (see "Options for Protect Subfield" in this
subsection).
continued
continued
Field Description
fxmt? Force transmit (the run continues and you can load variables with ICVAR$,
1NPUT$,INSTR$, INVAR$, or INVR1$), Y or N. Default = N.
outsp Determines how data is sent to the screen. A, B, or space. Default = space.
B Sends data, but not spaces. (If data exists on a line, only the
columns containing new data are overwritten. The old and new
data is blended together on the same line.)
space Sends the data, including spaces, if fewer than six consecutive
spaces appear between the characters. If six or more spaces
appear between the characters, the data is sent, but not the
spaces. This allows the screen to be painted faster.
blink? Change the less than (<) sign to a left blink character and the greater than (>)
sign to a right blink character before displaying data, Y or N. Default = N.
Hardware capabilities of supported terminals may not allow blinking.
V BTOS and PC MAPPER: Blinking display is not supported. This subfield
is not used.
V 1100: sn Station number where output is to be displayed. If you omit this field or
specify 0 (zero), output is displayed at the station executing the run.
2 Low intensity
3 Blinking characters, alternating low and
normal intensities
If protected and unprotected fields appear on the same line,
start the unprotected field with a tab character and end it
with a comma. To use different intensities on the same line,
place an unprotected field between the protected fields.
V BTOS: Hardware display intensity is not supported. For
four-to-one output, leave line 3 blank. For five-to-one
output, leave line 4 blank. The P option for the protect
subfield is not used
4 Fields are defined on four lines for one output line (see
"Four- and Five-to-One Output" in this section):
• Line 1 contains M control characters.
• Line 2 contains N control characters.
• Line 3 contains emphasis characters.
• Line 4 contains the data to display.
(See your display terminal documentation for more
information on controlling emphasis.)
5 Fields are defined on five lines for one output line (see
"Four- and Five-to-One Output" in this section):
• Line 1 contains M control characters.
• Line 2 contains N control characters.
• Line 3 is the color line, with one of the codes listed in
Table 7-10.
• Line 4 contains emphasis characters.
• Line 5 is the data to display.
Reserved Word
V 1100: If you use the i a b subfield and the OUT statement cannot be
completed, the run goes to the label. Examine STAT1$ for the status code:
1 Station does not exist or it is a batch port, remote run, or
background station.
2 Station is not available because it is not currently connected to the
MAPPER system.
3 No one is signed on at the specified station and interim? was not
specified.
4 User at the specified station did not respond to the message wait
signal within one minute.
5 User answered the signal and received the screen, but did another
operation rather than supply input.
Comments
• An OUT statement places lines from a report or result on the screen,
then clears the output area.
• The OUT statement stalls the run until the user presses Transmit,
unless you specify a Y in the interim? or txmi t? subfields.
• In an OUT statement, you can specify:
- Where to display the data
V 1100: (includes displaying data on a different terminal)
- Where to position the cursor
- Which fields to protect
• You cannot use an OUT statement in a run started in background (BR
statement) or from a remote site (RRN statement).
V 1100: On OS 1100 MAPPER Systems, you can use an OUT statement in
background runs if you send the output to another terminal using the
sn subfield.
• When the output is displayed, you can load input variables using
INPUT$, INSTR$, ICVAR$, INVAR$, and INVR1$. See "Capturing
Input" in Section 4 for more details about these reserved words. To
resume the run after the output is displayed, press Transmit. You can
also press Resume to resume the run, but the data entered on the
screen is not captured.
• Put reserved words before the variable name in the Change
Variable (CHG) statement, and be sure the CHG statement precedes the
OUT statement (INSTR$, INVAR$, INVR1$).
• Initialize variables with INPUT$ following the OUT statement.
• Do not put other run statements on the same line after an OUT
statement. The logic scan of the line terminates after executing the
OUT statement.
• The I/O and LLP counts are reset following a noninterim OUT
statement.
Examples
Display five lines of the current result, starting at line 2, on the first line of
the screen:
@out,-0,2,5,1 .
where:
-0 Displays lines from the current (-0) result
4 Starts at report line 4
1 Displays one line
1 Starts the display on the first line of the screen
n Does not erase the screen
Y Specifies interim display (the run continues even if the user
does not respond)
2 Pushes currently displayed data down two lines before
displaying this line
M Code Protected Emphasis Tab Stop Field Changed* Low Intensity Video On
B N Y Y N Y
A N Y Y N N
B N Y Y Y Y
C N Y Y Y N
D N Y N N Y
E N Y N N N
F N Y N Y Y
G N Y N Y N
H N N Y N Y
I N N Y N N
J N N Y Y Y
K N N Y Y N
L N N N N Y
H N N N N N
N N N N Y Y
0 N N N Y N
Y Y Y N Y
a Y Y Y N N
b Y Y Y Y Y
c Y Y Y Y N
d Y Y N N Y
e Y Y N N N
f Y Y N Y Y
g Y Y N Y N
h Y N Y N Y
i Y N Y N N
j Y N Y Y Y
k Y N Y Y N
I Y N N N Y
m Y N N N N
n Y N N Y Y
o Y N N Y N
Y = Yes, N = No.
9 N N N N N
A N N N N Y
B N N N Y N
C N N P P P
D N N Y N N
E N N Y N Y
F N N Y Y N
G N N P P P
H N Y N N N
I N Y N N Y
J N Y N Y N
K N Y N Y Y
L N Y Y N N
M N Y Y N Y
N N Y Y Y N
0 N Y P P P
P Y N N N N
Q Y N N N Y
R Y N N Y N
S Y N N P P
I Y N Y N N
U Y N Y N Y
V Y N Y Y N
W Y N P P P
X Y Y N N N
Y Y Y N N Y
Z Y Y N Y N
E Y Y P P P
\ Y Y Y N N
] Y Y Y N Y
Y Y Y Y N
- Y Y P P P
Some of the intensity settings may not be valid because of limitations in the
terminal hardware.
V U Series: The following is a description of the attributes of each terminal:
• SVT-1210 Reverse video, no distinction between normal and low
intensity
• SVT-1220 Normal intensity definition appears as high
and intensity
UVT-1224 Normal/high intensity
Reverse video
Blinking characters
• PC Refer to your PCU emulation documentation for PC
capabilities
Color Characters
The third line in a five-to-one output contains the color code. Find the
appropriate code in Table 7-10. Color codes sent to a monochrome terminal
are ignored by MAPPER software.
Note: Note that if you select the same color for background color and
character color, the result is "invisible" characters.
V BTOS: Seven colors, plus black, are supported in the text mode. The only
available background color is black. If you select black as the character
color, the selected background color is used instead against a black
background. If you select the same color for characters and background,
green characters on a black background are used instead.
BACKGROUND
B R G Y B M C W
l e r l l g y h
k d n w u t n t
Black @HPX h p x
C
H Red A I Q Y a i q y
A
R Green B J R Z b j r z
A
C Yellow C K S [ c k s C
T
E Blue D L I \ d l t 1
R
Magenta E M U ] e m u )
Cyan F N V f n v —
White G 0 W _ g o w ?
Emphasis Characters
Emphasis characters consist of the column separator, the underscore, and
the strike-through.
Because of hardware limitations of the supported terminals, MAPPER
software ignores all emphasis characters. The emphasis characters are
described here because the code character line is required for four-to-one or
five-to-one displays.
V 1100: On OS 1100 MAPPER Systems, emphasis characters are sent to the
terminal, but hardware capabilities vary among terminal types. See your
display terminal documentation for more information on controlling
emphasis.
Table 7-11 lists the applicable codes for emphasis characters.
space
Yes
Yes
Yes Yes
-Yes
Yes Yes
Yes Yes
Yes Yes Yes
For example, if you want your input fields to be displayed with underscores,
select a $ from the table above. If you wish to create a vertical line, select a
series of ! characters.
Now that you have had a brief look at edit codes and emphasis characters,
you are ready to see how MAPPER software defines screens that use them.
Four-to-One Screens
These screens make full use of edit codes and emphasis characters. They
allow you to specify the following:
• An M code
• An N code
• An emphasis character
• A displayable character
All can be specified for the same screen position.
You must place each of the codes and characters in the same column of four
successive lines of source code. The M code must be on the first line, the N
on the second, the emphasis character on the third, and the displayable
character on the fourth.
Examples
For example, suppose you want the name of a field to be low intensity,
reverse video, with protected fields. First, you would select an N from the M
table, an S from the N table, and code the four lines as follows:
N (M byte)
S (N byte)
(Emphasis character)
State: (Displayable character)
If you would like the input field to contain a tab stop, have normal intensity,
be left-justified, and allow alpha characters only, select a lowercase d from
the M table and an uppercase A from the N table:
N d (M byte)
S A (N byte)
(Emphasis character)
State: (Displayable character)
Now you are ready to code a simple data entry screen. Suppose you need to
enter the name, street, city, state, zip, and phone of a new customer. The
state field should allow only alphabetic input. The input fields should be
normal intensity, have tab stops, and be filled with underscores. The field
labels should be low intensity and protected.
This example illustrates the four-to-one coding for a data entry screen.
1. abrk .
2. N
3. S
4. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
5. Name:
6.
7.
8. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
9. Street:
10.
11.
12. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
13. City:
14. dN d N d Nd Nd N
15. AS BS B SB SB S
16. $$ $$$$$ $$$ $$$ $$$$
17. State: Zip: Phone:( )
18. @brk .
Name:
Street:
State: Zip: Phone ( ) -
City:
Field Description
sc/ Line number of the screen at which to begin the display. Default = current screen
line.
col Column position at which to begin the display. Default = current column position.
vld Data to display. The data can be a variable, constant, literal, reserved word, or any
combination.
Comments
• Enclose literal data containing spaces in apostrophes.
• It is more efficient to use the OUV statement followed by a Wait (WAT)
or Input Variable (ITV) statement than it is to use the Break-Output
(BRK-OUT) sequence.
• Use the OUV statement while debugging your run to display the
contents of variables while the run is executing.
• If an ITV statement immediately follows the OUV statement, the ITV
statement stalls the run until input is entered.
Example
Display the contents of <output> on line 23 starting in column 10:
titouv,23,10 <output>
PRT (Print)
The Print (PRT) statement prints reports and results on the system printer.
The PRT statement does not create a result.
Format
tiVRT,c,dkr,dinos?,f,prtsite,cys,a111,1sp,dstn„hdgs?' .
tIPRT,c,dkr,dinos?,1,prtsite,cys,a1 1?,Isp,bonner,formsld,hdgsn .
Field Description
prtsite MAPPER site at which to print the report (valid entries are A-Z).
Default = local site.
V 1100: On OS 1100 MAPPER Systems, device name or number of any printer
available to the system. Default = first available printer in the printer group
configured as the default.
all? Print all the reports of the specified drawer, Y or N. Default = N. Leave the
report field blank if you use this subfield.
continued
continued
Field Description
dstn Destination printer model. The model defines how the report is to be printed.
You can set up special forms with different models. See the MAPPER system
coordinator for available models. You can select a specific printer in this
subfield, or you can let the MAPPER system select the default printer.
V 1100: This subfield is not available on OS 1100 MAPPER Systems.
V BTOS: Uses a complete, valid BTOS printer name (for example, [LPT]) or
spool name for the dstn field. Consult the MAPPER system coordinator for
configured devices and spoolers.
V 1100: banner Print banner name. Embedded tab codes or spaces are not permitted when
using this subfield.
V 1100: formsid Indicates the predefined or special forms identification. See also the
PRINTFORM run (enter printform,help).
Example
Print report 2B0:
@pr t ,O,b,2„ „2
where:
0,b ,2 Prints report 2B0
I7 Prints all columns without line numbers in basic format
2 Prints two copies
Field Description
lab Label in the report where an abort routine begins. To begin the routine at the first
line of the external run control report, use LIN1 in this field.
Reserved Words
The following reserved words contain zero until a run aborts. The system
resets them to zero whenever the run executes a noninterim display with a
Display Graphics (DSG), Display Message (DSM), Display Report (DSP),
Output (OUT), or Screen Control (SC) statement.
AXDRW$ contains the drawer letter of the run control report where the run
aborted.
XDRW$ contains the drawer of the run control report where the run
aborted.
XFUN$ contains the name of the last statement (the statement call)
executed before the run aborted.
)(LINES contains the line number in the run control report where the run
aborted.
XRPT$ contains the report number of the run control report where the run
aborted.
Comments
• If a run user aborts a run and the run has an abort routine registered,
the system runs the abort routine and cancels any previously registered
abort and error routines and update locks.
• Place the RAR statement as close as possible to the beginning of the run.
If the user aborts the run before the run executes an RAR statement, the
run has no abort routine to go to.
• The system cancels the abort routine when the run terminates, but you
can also use the Clear Abort Routine (CAR) statement to cancel the
routine.
• The abort routine cannot contain the statements GTO RPX, RAR, RER,
or RUN. You can use an RSR statement only if it starts an internal
subroutine.
• If a user presses Abort while an abort routine is executing, the run
aborts.
• I/O and LLP limits and cabinet restrictions from the aborted run also
apply to the abort routine.
• A noninterim display specified by any of the following statements in
your abort routine continues normal run processing when a user tries to
abort a run:
DSG, DSM, DSP, OUT, SC
This feature prevents users from terminating a run prematurely.
• The values of reserved words 10$ and LLP$ reflect the number of I/Os
and LLPs used in the abort routine and the run.
V 1100: On OS 1100 MAPPER Systems, 10$ and LLP$ reserved words in
an abort routine reflect the I/Os and LLPs in the abort routine itself.
continued
S[nmbr-of-Ins] Sets streaming mode, which means that the run executes one
logic line (or one statement if you had been pressing F2) at a
time in a scrolling, uninterrupted manner. To stop streaming
mode, press Abort.
U Displays the run control report for updating (the run control
report becomes the current -0).
-n Result to display.
Comments
• When you start the RDB utility, it displays line 3 of your run control
report and the RDB prompt. Your run is now under control of the RDB
utility.
• When the run encounters an error, it stops and displays a system
message but leaves you in RDB mode. All variables and results are
available for you to examine.
• When the run encounters a statement that displays output, such as an
Output (OUT) or Display Report (DSP) statement, the RDB utility
repaints the previous output screen and displays the current statement.
• When the run encounters a Run Start (RUN) statement, the RDB utility
terminates. To continue the RDB utility, the run started via the RUN
statement must contain an RDB statement.
Examples
After requesting a display of the contents of v3 (space, space, 1, 5):
8 @lzr,O,v2,1 v3i4 .
9 @lok,O,v2,1 .
MEI* v3
- 15-
B prm Stops the run at the point (breakpoint) specified in prm. Only
one breakpoint can be active at a time, and the previous
breakpoint is cleared when you set a new one. Enter one of
the following commands or B to clear the breakpoint:
Sets streaming mode, which means that the run executes one
logic line (or statement, if you had been pressing F2) at a time
in a scrolling, uninterrupted manner. To stop the run, press
F4 a second time.
continued
reswd$ Displays the name of the reserved word you specify (for
example, USER$ or LLP$), followed by its contents enclosed
in slant characters.
Comments
• When you start the RDB utility, it displays the RDB prompt followed by
a line containing the name and location of the run. Below this
information, line 3 of your run control report appears (up to 70
characters of the line on an 80-character screen; up to 122 characters on
a 132-character screen).
Note: If you request the RDB utility using the RDB run statement, the
utility displays the first statement following the RDB statement.
Your run is now under control of the RDB utility. The next statement to
execute is displayed at the lowest displayed line on your screen.
• When the run encounters an error, press Resume to activate RDB error
mode. In error mode, you can examine all variables, reserved words,
and renamed reports and results as they existed when the run erred.
While in error mode, only the RDB commands that display information
(-n, R, Vv, reswd$) are allowed. See Table 7-13.
• When the run encounters a statement that displays output, such as an
Output (OUT) or Display Report (DSP) statement, the RDB utility
displays the screen as requested. When you resume the run, it clears
the screen and displays the RDB prompt.
• When the run encounters a Run Start (RUN) statement, if you were the
last person to update the newly started run, the RDB utility continues to
be active in that run.
• When the run executes a Defer Updates (DFU) statement, the RDB
utility skips to either the Commit Updates (CMU) or Decommit Updates
(DCU) statement, whichever comes first. The system executes any
intervening statements and displays them in streaming mode, that is, in
a scrolling, uninterrupted manner.
Examples
After requesting a display of the contents of v3 (RDB prompt line request
was RDB• v3 ):
RDB•
RUN=RUN IT REPORT=10F0
5 • @lzr,O,v2,1 v3i4 .
6 • @lok,O,v2,1 .
V314=/ 31/
After requesting a display of the contents of <drawer> (RDB prompt line
request was RDB• <drawer>):
RDB•
RUN=RUN IT REPORT=10F0
5 • @lzr,O,v2,1 v3i4
INSERT-• @I dv v2=d
5 • @I zr ,O,v2,1 v3i4 .
RDB•
RUN=RUN I T REPORT=10F0 MON I TOR=V3
Field Description
Ityp Line type to process (leave this blank if all types are to be read).
vdata Variables (up to 40) to capture the data. To initialize a variable to the size of a
field, specify only the variable name and type (for example, v1h, v2s, and so
on).
Comments
• You must follow the RDC statement with an output line because an
RDC statement does the following in sequence:
Reads a line
Places the data read in variables
Writes the data to the output area
Reads the next line
• Use only one line in the output area for the variables to be written by
the RDC statement.
• The column-character fields do not have to be specified from
lower-numbered to higher-numbered columns.
• An RDC statement generates one line in the output area for each line it
reads from the input report.
• You can define the size of a variable to load in an RDC statement or you
can define the variable to match the size of a corresponding report field.
This is especially useful with a named field, because the name does not
directly specify the field size; it also allows the RDC statement to adjust
to a change in the size of a field.
Example 1: Reading All Lines
Read all lines of the current result, capture the data in vl, and include the
variable in the output:
@r dc , -0 1-256 v1s256 .
v1
Example 2: Reading Data from Two Fields
Read data from two fields and capture the data in vl and v2:
@rdc,O,b,2 'custcode','shipdate' v1h,v2i
v1 v2
where:
0,b,2 Reads lines in report 2B0
'custcode' , Reads data from the Cust Code and Ship Date
'shipdate' fields
vlh Initializes vl as a type H variable to the size of the
Cust Code field to capture the data read from that
field
v2 i Initializes v2 as a type I variable to the size of the
Ship Date field to capture the data read from that
field
where:
0, b , 2 Reads lines in report 2B0
6 Starts reading at line 6
50,0 Scans 50 lines, but reads tab lines only
099 Goes to label 99 if line 50 or the report does not exist
'status' Reads data from the Status Date field (column 5 for
six characters)
'shiporder' Reads data from the Ship Order field (column 71 for
five characters)
v1i Initializes vl as a type I variable to the size of the
Status Date field to capture the data read from the
field
v2h Initializes v2 as a type H variable to the size of the
Ship Order field to capture the data read from the
field
v2 v1 Places the data in the output area in this format
under the headings SHIPPING ORDER and DATE
LAST STATUS CHANGE
Field Description
When you load variables of a specified size, the size of the variable
determines how many columns are read. For example, in the following
statement, v1 contains a value of the line starting in column 5 for 10 positions:
To define a variable to the size of a field, specify only the variable name and
type (for example, v1 h, v2s, and so on).
Reserved Word
LINE$ contains the next line number to read. If the last line read was
beyond the end of the report, LINE$ contains a zero.
Comments
• The column-character fields do not have to be specified from
lower-numbered to higher-numbered columns.
• If you need to read a series of lines in the same report, read the first line
using the RDL statement; read subsequent lines using the Read Line
Next (RLN) statement. See RLN in this section.
• You can define the size of a variable to load in an RDL statement or you
can define the variable to match the size of a corresponding report field.
This is especially useful with a named field, because the name does not
directly specify the field size; it also allows the RDL statement to adjust
to a change in the size of a field.
• See also RDC and RLN in this section.
Example 1: Reading Lines from a Field
Read lines from one field in report 2B0:
tbrd1,0,b,2,6 'custcode' vlh .
where:
0,b,2 Reads lines in report 2B0
6 Reads line 6
'custcode' Reads data from the Cust Code field
vlh Initializes vl as a type H variable to the size of the
Cust Code field to capture the data read from that
field
Field Description
Reserved Word
If the run continues at the label, STAT1$ contains an error code indicating
the reason (if any) why the data cannot be retrieved by the system. If you do
not use the 1 a b subfield and an error occurs, the run errs.
Error codes:
4 Drawer was added since last purge (prior version does not exist).
13 Prior version does not exist.
16 Internal software error.
17 Specified MAPPER file is being merged.
Example
Retrieve report 2A0, and go to label 99 in case of error:
@reh,O,a,2,099 .
Field Description
lab Label in the report where the error routine begins. To begin the routine at the first
line of the external run control report, use LIN1 in this field.
Reserved Words
The following reserved words contain zero until a run errs. The system
resets them to zero whenever the run refers to CERR$ or executes a
noninterim display with a Display Graphics (DSG), Display Message (DSM),
Display Report (DSP), Output (OUT), or Screen Control (SC) statement.
V 1100: On OS 1100 MAPPER Systems, the system resets them to zero
whenever the run executes a noninterim display with the DSG, DSM, DSP,
OUT, or SC statements.
AXDRW$ contains the alphabetic drawer of the run control report where the
run erred.
XDRW$ contains the numeric drawer of the run control report where the
run erred.
)(ERRS contains the message number of the error — use this number to
retrieve the message with a Load System Message (LSM) statement.
)(FUNS contains the failing statement call when the run erred.
)(LINES contains the line number in the report where the run erred.
XRPT$ contains the report number of the run control report where the run
erred.
Comments
• If an error occurs, the system runs the registered error routine and
cancels anypreviously registered abort and error routines and update
locks.
• Place the RER statement as close as possible to the beginning of the run.
If an error occurs before the run executes the RER statement, the run
has no error routine to go to.
• The system cancels the error routine when the run terminates, but you
can also use the Clear Error Routine (CER) statement to cancel the
routine.
• The error routine cannot contain the statements GTO RPX, RAR, RER,
or RUN. You can use an RSR statement only if it starts an internal
subroutine.
• If an error occurs while an error routine is executing, the run terminates
with a normal system message.
• I/O and LLP limits and cabinet restrictions from the run also apply to
the error routine.
• A noninterim display specified by any of the following statements in
your error routine continues normal run processing:
DSG, DSM, DSP, OUT, SC
• Any reference to the reserved word CERR$ sets CERR$ and )(ERRS to
zero and continues normal run processing.
V 1100: On OS 1100 MAPPER Systems, any reference to CERR$ reserved
word clears CERR$ and continues normal run processing.
• The values of reserved words 10$ and LLP$ reflect the number of 1/0s
and LLPs used in the error routine and the run.
V 1100: On OS 1100 MAPPER Systems, 10$ and LLP$ reserved words in
an error routine reflect the U0s and LLPs in the error routine itself.
• Error routines registered in called routines (via the CALL statement)
override previously registered error routines; however, when control
returns to the calling run, the system automatically reregisters the
original error routine.
V 1100: On OS 1100 MAPPER Systems, the system does not
automatically reregister the original error routine; you must reregister it
yourself.
• If you do not register an error routine in the called routine, in case of an
error, control goes to the error routine in the calling run.
V 1100: On OS 1100 MAPPER Systems, control does not go to any error
routines previously registered in the calling run.
V • 1100: Use the RUNERR error subroutine as a debugging tool during
development of your runs or as an error notification routine in
production runs. See the online help system (HELP,@RER) for more
information.
Example
This statement registers the external error routine at label 5 in report 2E0:
ther,0,e,2 005 .
Field Description
c,d Cabinet and drawer into which the report should be placed.
hdgs? Add headings from the receiving drawer to the result, Y or N. Default = N.
V U Series and UNIX: Include the full path name. File names can be
uppercase or lowercase but must exist exactly as typed. For example, Abc
must be accessed with an uppercase A and lowercase b and c.
V' A Series: Include a usercode and pack family (optional). File names must
be uppercase.
V BTOS: Use the full path name: [volume]<directory>filename. File names are
not case sensitive.
V PC MAPPER: Include the complete path name. The directory you specify
for the file must exist.
Comments
• If the line length of the drawer into which you are retrieving a
MAPPER-formatted file is less than that of the file, any extra characters
in the file are truncated. If the file is not in MAPPER format, extra
characters are wrapped to the next line.
• If you created a file with headings and retrieved it with headings, the
result contains two sets of headings. Conversely, if you create a file with
no headings and retrieved it with no headings, the result contains no
headings, only the date line.
• When you retrieve a file that is not in MAPPER format, the RET
statement always adds the date line to the result. A report created with
headings and not in MAPPER format always contains two date lines
when you retrieve the file.
Example
' PC MAPPER: The following example does not apply to the Personal
Computer MAPPER System.
Retrieve a file that is not in MAPPER format:
&et,O,b,n,n KW/PROD/STATUS .
The file WORK/PROD/STATUS is created as a result in cabinet 0, drawer B,
with no headings.
PC MAPPER: The following example applies only to the Personal
Computer MAPPER System.
This statement retrieves the status.new file in the \ work \ prod directory,
which is not in MAPPER format. The statement does not add headings to
the cabinet 0, drawer B result.
&et,O,b,n,n '\work\prod\status.new' .
Field Description
c,d Cabinet and drawer into which the report should be placed.
qua/ Qualifier.
elt Element name. Leave this field blank for a data file.
ver Version.
hdgs? Add headings from the receiving drawer to the result, Y or N. Default = N.
ststr Character string to locate. The retrieval starts on the line that contains this
character string.
Reserved Words
STAT1$ contains the following status codes if the statement is not able to
retrieve the file:
1 Insufficient data.
2 Improperly formatted name (such as an illegal character).
3 Facility reject.
4 File does not exist.
5 File rolled out.
6 File exclusively assigned to another run.
7 Facilities currently unavailable.
8 Private file, under different project-id.
9 File may not be read (write only or missing key).
10 File is not sector-formatted mass storage file.
11 File is not program file (if element specified).
12 Element requested does not exist.
13 Report requested did not exist yesterday.
14 File is MAPPER file: Use the manual Retrieve File (RET) function.
15 Specified MAPPER file is being merged.
16 Internal software error.
17 Cannot retrieve report while file is being merged.
18 Locate string is not found.
19 Program file must include element name.
20 File exists but is not readable.
Example
Retrieves the file myqual*myfile starting at line 100:
@ret,0,a,099 myqual,myfile 100 .
where:
0,a Places the result in cabinet 0, drawer A.
099 Goes to label 99 in case of error.
myqua I Retrieves a file with a qualifier of MYQUAL.
my f i I e Retrieves the file named MYFILE.
100 Starts retrieving at line 100.
Field Description
Comments
• The RFM statement moves the columns specified and the line type
designator from the issuing report to the receiving report. If the issuing
report contains any period type lines, the entire period type line is
moved to the receiving report.
• The RFM statement processes all line types.
• Note that you can also use a Read Continuous (RDC) statement to
reformat a report using the output area of the run (see RDC). Use the
Match (MCH) statement if you want to conditionally move and extract
data from two different reports or between a displayed result and a
specified report, where both contain matching data (see MCH).
Example
Move data from report 2B0 to report 2D0:
tbrfm,0,b,2,0,d,2 " 'product' ,a 'product' ,a .
Or
Field Description
vdata Variables (up to 40) to capture the data. To initialize a variable to the size of a field,
specify only the variable name and type (for example, v1h, v2s, and so on).
Reserved Word
LINE$ contains the next line number to read. If the line read is beyond the
end of the report, LINE$ contains a zero.
Comments
• Since the RLN statement continues processing a previously specified
report, the only statements allowed between RDL and RLN (or FDR and
RLN) statements are those that do not end the processing on the report,
such as IF, CHG, and LDV.
• When most other statements, such as those with a manual function
counterpart, begin processing, they signal to MAPPER software that the
run has finished processing the previous report. Some of these
statements include ART, DC, DEV, FND, LZR, MCH, SRH, SOR, TOT,
and WRL.
• When you load variables of a specified size, the size of each variable
determines the number of columns the statement reads.
For example, in the following statement <data> contains ten characters
of data starting with column 5, even though you specified 2 characters in
the cc field:
@r I n„099 5-2 <da ta>h10 .
• To have the run automatically initialize a variable to the size of a field,
specify only the variable name and type (for example, <datalh>,
<data2s>, and so on). The RLN statement initializes the variables the
appropriate size for the fields it reads.
Example 1: Reading Data from a Field
Read data from the Cust Code field and capture the data in vl:
@r In 'custcode' viii .
where:
'custcode' Reads data from the Cust Code field
v1h Initializes vl as a type H variable to the size of the
Cust Code field to capture the data read from that
field.
Field Description
Comments
• You can assign different passwords to access different reports many
times in the run. For example, this statement assigns two read
passwords to a run:
@rpw,xxx,yyy .
• This statement changes the second read password (from the previous
example) so the run can access a different report. The first read
password remains assigned:
@rpw„zzz .
Example 1: Using One Read Password
Use a read password of readme:
ek pw, r eadme .
thrh,O,b,2 " 'custcode' 0,amco .
RS (Run Status)
This section applies only to the OS 1100 MAPPER System.
The Run Status (RS) statement creates a -0 result listing the status of runs
being executed with your user-id.
Format
tIRS[,0,run,sn] .
Field Description
run Run name (leave blank for the status of all runs).
sn Station number (for the status of only those runs at this station).
Options
Blank All active and suspended runs
A Active runs only
B Background runs only
S Suspended runs only
Examples
Obtaining the status of all runs:
s
Obtaining the status of the background run myrun:
@rs,b,myrun .
Obtaining the status of all runs at station 123:
@r s „ , 123
Field Description
tmo Number of seconds to wait for demand input at the terminal. If left blank, no
timeouts occur. Pressing Abort before receiving manual control aborts the
RSI statement.
continued
continued
Field Description
@RUN run-id,acct/,proj-id
fn File name. If specified, the MAPPER system submits an ECL ADD statement
after demand mode sign-on is complete.
If omitted from the RSI statement, the following file-related subfields are left
blank.
q Number of text lines to display before giving manual control to the user.
Default =1 (minimum). Maximum = one less than the vertical screen size of
the display terminal. If a demand program executes a control command that
the Communications Control Routine (CCR) for the MAPPER system
interprets before it solicits input from the terminal, it discards everything that
preceded the control command.
Field Description
lab Label where the subroutine starts. This field is required. To begin the routine
at the first line of the external run control report, use LIN1 in this field.
Reserved Words
Use the reserved words ACDRW$ and CRPT$ in an external subroutine to
determine the drawer and report number of the calling run control report.
Comments
• To save the contents of all currently defined variables and pass control to
a subroutine, use the Call Subroutine (CALL) statement. You can pass
variables to the subroutine, manipulate them, and pass them back to the
calling run without affecting any of the other currently defined
variables.
• You can refer to all variables and results in the calling run from
subroutines. When you return to the calling run, newly created
variables and results in the subroutines become available. However, if
in the subroutine you reinitialize variables or rename results from the
calling run, the subroutine overwrites them.
• You can nest subroutines in a run. Internal subroutines can call
subroutines that call other subroutines up to 10 levels. However, you
can call only one external subroutine.
Field Description
"cmd" Run name or manual function call to execute, including input parameters to be
sent to the run or manual function. The quotation marks ( " ) are required.
V 1100: This field is not available in limited character set (LCS) run control
reports.
Comments
• The manual equivalent of the RUN statement is to start a run by
entering the name of the run.
• You can identify up to 40 variables to capture in the started run with
INPUT$ (see Table 4-1 for maximum variable sizes). If you plan to use
these variables as parameters in report processing functions such as
Binary Find (BFN) or Search (SRH), you should use the Load Variable
(LDV) statement with the P option to pack the variables (see LDV).
• Do not put other run statements on the same line after a RUN
statement. The logic scan of the line terminates after executing the
RUN statement.
• You can also start utility runs such as chart runs. See the online help
system (HELP,@RUN) for details.
Example
Start the run named test and send the variables vl and v2 and the character
string SAM to that run (the run initializes these as variables with INPUT$).
The current result (-0) is also available to the run:
@run test,vl,v2,SAM .
SC (Screen Control)
Use the Screen Control (SC) statement to create menus, input screens, and
overlays using screen commands.
You can use screen commands to perform basic screen operations, which
include positioning the cursor, clearing the screen, defining fields, and
defining screen attributes. You can also use screen commands to design
reports that define fields, box data in a specified area, and map function
keys. See "Screen Commands" in this subsection for more information.
When the SC output is displayed, the run is suspended until the user
presses Transmit or a function key, unless the statement options indicate
an interim output or a forced transmit.
You can also design your screens using a menu-driven screen generator
called the SCGEN run. For more information, see Section 5, or enter ap t
on the control line, tab to SCGEN, and press Help.
The SC statement has two formats. Use format 1 to directly specify screen
commands, or use format 2 to access a report containing screen commands
(also referred to as a form).
Condition
If you use format 2, a report containing executable screen commands must
exist.
Formats
@6C[ tabp,sn,lab] o scmnd .
@ISC,c,d,r[,1,q,tabp,sn,lab] o [fldtxt] .
;•••-",,‘
Format 1
@SCE tabp,sndab] o scmnd .
Field Description
tabp Tab position at which to place the cursor, where a positive number is the
number of tab positions forward (maximum of 100) from the home position
and a negative number is the number of tab positions backward (maximum of
100) from the home position.
1100: sn Station number where output is to be displayed. If you omit this field or
specify 0 (zero), output is displayed at the station executing the run.
Format 2
tiSC,c,d,r[,1,q,tabp,an,lab] o [fldtxt] .
Field Description
Line number in the specified report at which to start reading screen control
commands. Default = 2.
q Number of lines to read in the specified report. Default = all lines to the end of
the report.
tabp Tab position at which to place the cursor, where a positive number is the
number of tab positions forward (maximum of 100) from the home position,
and a negative number is the number of tab positions backward (maximum of
100) from the home position. Default = home position.
V 1100: sn Station number where output is to be displayed. If you omit this field or
specify 0 (zero), output is displayed at the station executing the run.
17v17 1100: lab Label to go to if the output to another station cannot be completed
successfully. If you omit this field and the run cannot be successfully
completed, it is terminated with an error.
fldtxt Field text — text to be inserted into unprotected fields (see the FLD and
DFLD/AREA commands under "Screen Commands"). This field can contain a
list of items separated by commas. The first item is placed in the first field,
the second item in the second field, and so on. Note that this field is not
interpreted unless the T (field text) option is specified in the SC statement.
Options
B Blink. Changes the less than (<) and greater than (>) signs to the
left and right blink characters in all literal text. The blink
characters may vary from terminal to terminal. See also the LB and
RB commands in "Text Handling Commands" in this subsection.
C Center. Allows screen output (such as menus) designed to be
centered on standard 80-character display terminals to be centered
on terminals of other widths.
Reserved Words
Use reserved words to tailor screens to the site, user, and terminal. Using
reserved words also enhances the portability of screens.
You can use the following reserved words with the SC statement. (See
Appendix B for the contents of each word.)
- ADRW$ - DEPT$ - RPT$
- AKEY$ - DLINE$ - STNUM$
- CAB1$ - F1$ through F10$ - T1C$
- CAB$ - KKEY$ - TIME$
- DATEO$ through DATE8$ - LRRSD$ - USERS
- DAY$ - MAPER$ - )(KEYS
- DEPN$ - MKEY$
The following reserved words are recognized only by the SC statement:
ALERT$ The current site alert message text.
DBASE$ The current site database size threshold message text.
V 1100: The DBASE$ reserved word is not available on
OS 1100 MAPPER Systems.
V 1100: DMSG$ System down or purge time message text.
DUPLX$ The current site duplex file integrity error message text.
V 1100: The DUPLX$ reserved word is not available on
OS 1100 MAPPER Systems.
LOGO$ Site-defined text for the sign-on and active screens.
STERR$ The current site startup error message text.
V 1100: The STERR$ reserved word is not available on
OS 1100 MAPPER Systems.
Screen Commands
There are six categories of screen commands. Each category comprises a
unique set of commands; the commands are described in the subsections
that follow.
• Cursor control commands
• Screen editing commands
• Field and attribute commands
• Text handling commands
• Screen printing commands
V PC MAPPER: Screen printing commands are not available on Personal
Computer MAPPER Systems.
• Setup commands
How Screen Commands Are Interpreted
• To provide a known starting point, the system automatically moves the
cursor to the home position before the first screen command is
interpreted.
• Screen commands are executed in the order they are specified.
• When commands are read from a report, a trailing space in any subfield
or a space in column 1 terminates the scan of the current report line.
You can use the remaining portion of the line for comments.
• Not all screen commands produce the same results on all types of
display terminals. Whenever possible, screen commands that cannot be
executed on a particular terminal are ignored.
How Data Is Interpreted
• By default, the SC statement disables any current function key mapping
before executing the first screen command. Use the K option to keep the
current function key mapping enabled.
• Any string of data that is not the name of a valid screen command is
treated as literal text.
Syntax Rules for Screen Commands
• Use semicolons ( ; ) to separate commands.
• If a screen command is too long to fit on one report line, you can
continue it on the next line. Any command subfield that specifies text,
such as field or message text, recognizes the reverse slant ( \ ) as the
continuation character when it occurs outside of literal delimiters.
• Follow these guidelines when specifying screen coordinates:
If you omit a value, the current cursor position is used.
If you specify a signed value (for example, +3 or -10), it is assumed to
be relative to the current cursor position.
The home position is 1,1 (row 1, column 1).
• Enclose attribute parameters in parentheses. This is necessary because
the attribute parameters together are actually one subfield. For
example:
at t ,(rv,whi/red)
• Literal text, such as field or message text, that contains spaces, commas,
or semicolons must be enclosed in apostrophes ( ' ) or whatever literal
delimiter is in use. See the TIC command under "Text Handling
Commands." When using format 1 of the SC statement, the TIC$
reserved word is usually the easiest way to accomplish this.
• If you are building screen commands in a run output area, use a
sequence of two apostrophes to produce one apostrophe in your data.
• Literal text that contains spaces must be enclosed in a double set of
literal delimiters.
This example statement uses format 1 and displays "Glen Ellyn." The
delimiters are % and'. Note that the TIC command defines % as a
literal delimiter.
@sc " prep;tic,%;'96Ien Ellyn96'
• When using format 2 of the SC statement, use a sequence of two
apostrophes to produce one apostrophe in your data.
When using format 1, define the literal delimiter to be a character other
than an apostrophe and use the reserved word TIC$ to equal an
apostrophe in the literal text. This example statement defines the
delimiter as % and displays "We've".
@sc " prep; i c ,%;94NeAti c$36-ve96 .
• To insert variables in literal text, follow the general guidelines set for
literal text and place the variable name in the literal text.
For example, this statement places the value of v2 in the literal phrase.
@sc " prep;tic,%;'96Let %'v2'% out%'
Command Description
PC,r,c Position Cursor. Moves the cursor to the specified row (r) and column (c)
position. When specifying relative cursor coordinates, the cursor wraps
around the edges of the screen as if you were moving the cursor manually.
CR[,n] Cursor Return. Sends a cursor return to move the cursor to column 1 of the
next screen line. Repeat n times. Default =1.
TAB[,n] Tab Cursor. Tabs the cursor forward n positions. Default =1. If n is
negative, the cursor tabs backward. Note that when you use the TAB
command, the cursor position becomes unknown by the SC statement.
Therefore, after you use the TAB command, you cannot use a command that
references the current cursor position until you use a command that
reestablishes the cursor location (such as HC, PC, FLD, or MSG).
\--, Table 7-15 lists the commands that perform on-screen editing operations.
Command Description
CS Clear Screen. Erases the entire display and moves the cursor to the home
position.
ED Erase Display. Erases the display from the current cursor position to the end
of the screen.
EUD Erase Unprotected Display. Erases the unprotected portion of the display
from the current cursor position to the end of the screen. Attributes and
protected fields are not erased.
PD Protect Display. Protects the display beginning at the cursor position and
continuing to the end of the display. Using PD does not alter the text and
attributes that you are planning to display. You can also use PD to prepare
the screen for overlaying.
DIL[,ri] Delete in Line. Deletes the unprotected character under the cursor, shifting
succeeding characters, up to the end of the field or line (whichever occurs
first), to the left. Repeat n times. Default =1.
DID[,n] Delete in Display. Deletes the unprotected character under the cursor,
shifting succeeding characters, up to the end of the field or display
(whichever occurs first), to the left. Repeat n times. Default =1.
IIL[,n] Insert in Line. Inserts a space at the current cursor position, shifting the
character under the cursor and all succeeding characters up to the end of
the field or line (whichever occurs first), to the right. Repeat n times.
Default =1.
11D[,n) Insert in Display. Inserts a space at the current cursor position, shifting the
character under the cursor and all succeeding characters up to the end of
the field or display (whichever occurs first), to the right. Repeat n times.
Default =1.
continued
Command Description
DL[,n] Delete Line. Deletes the line the cursor is located on, moving the remaining
lines up. Repeat n times. Default =1.
IL[,n] Insert Line. Inserts a blank line at the cursor location, moving the line the
cursor is located on and all remaining lines down. Repeat n times.
Default =1.
DUP[,n] Duplicate Line. Duplicates the line the cursor is on onto the line directly
below it. The cursor is positioned on the duplicated line. Repeat n times.
Default =1.
EEL Erase to End of Line. Erases from the current position to the end of the line
or field, whichever occurs first. Attributes and protected fields are not erased.
Use field and attribute commands to define fields, areas, and their
attributes. You can place attributes anywhere on the screen. The attribute
you define extends forward to the immediate left of the next attribute or to
the end of the screen, whichever occurs first. See "Field Attribute
Parameters" in this subsection for more information.
- Attribute (ATT)
- Define Attribute (DEF)
- Field (FLD)
- Message (MSG)
- Prepare Screen for Painting (PREP)
- Define Field (DFLD) and AREA
Field Description
attr Attribute to be output. See "Field Attribute Parameters" in this subsection.
r,c Cursor position where attribute begins. See Syntax Rules for Screen
Commands under "Screen Commands" for rules on specifying attributes.
Example
This example positions the cursor to row 2, column 1, and outputs to the
screen an attribute that has protected input and a color of white on blue:
att,(pr,whi/blu),2,1
Field Description
attr Attribute to define. See Field Attribute Parameters under "Field and Attribute
Commands" in this subsection.
Example
This example defines attribute number one as having protected input and a
color of white on blue:
def,1,(pr,whi/blu)
After the statement executes the FLD command, the cursor appears on the
last line of the field, two columns beyond the end of the field.
Following is a description of the subfields:
Field Description
GC Cursor position of the upper left corner of the field. See Syntax Rules for Screen
Commands under "Screen Commands" for rules on specifying screen
coordinates.
0 Options.
Border options:
A Attributes. Outputs field attributes even if the field is being boxed. Use this
option to produce a highlighted box around a field. Use only with the B
option.
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. See also the A option.
F Frame. Frames the field with emphasis. This option is terminal dependent.
S Sides. Draws lines on the left and right sides using emphasis. This option is
terminal dependent.
T Top. Draws a line at the top of the field using emphasis. This option is
terminal dependent.
U Underline. Draws a line under the field using emphasis. This option is
terminal dependent.
continued
continued
Field Description
Justification options:
✓ Varies the size of the field to fit the text supplied. Default (no text) and
maximum size is csiz. The field is left-justified within the columns bounded by
c and csiz; use this with the R or C options to alter justification.
Miscellaneous options:
E Empty. If the field is empty (no text), do not display it. Use this option for
status fields that should only be displayed if relevant.
1. If a field is not defined with the PR parameter and is empty when placed
on the screen, protect it from user input.
attr Attribute that defines the characteristics of the field. (See Attribute Parameters.) If
no attribute is specified, no attributes are output.
end-attr Attribute that terminates the field. This parameter is not required.
text Literal text to be inserted into the field. If you do not specify text, the data within
the boundaries of the field remain unaltered. If you use the T option on the SC
statement, text supplied in the fldtxt field of the SC statement is used instead. See
also the P option.
Example
This example shows how the FLD command is used to create the Add
Report (AR) function form. The A, B, and F options in the first FLD
command create a highlighted border if permitted by the terminal type. The
second FLD command places the menu title in the center of the top line of
the border. Execute the AR function to see the result.
prep,(pr,bac)
fkey,1,Resume,rsm
fkey,2,Paint,pnt
fkey,4,Return,formret,7
FKEY,8,Help,dsphelp,1
fkey,10,Quit,"
PC,1,61;'AR'
FLD,2,6,6,69,afb,(PR,boc)
FLD,2,6„69,cv,(PROc)„' Add Report
dfld,inp,u,(ts,ai,fc);dfld„,(co,fc)
area„3,8,4,65„(pr,mc)
After the statement executes the MSG command, the cursor appears in
column 1 of the line on which the message is displayed.
Following is a description of the subfields:
Field Description
0 Options:
E Presents the text in system message format. That is, center the
message text on the line and translate the < and > characters to left
and right blink characters.
attr Attribute to be used on the message line. The default attribute is reverse video
(RV) and the user's configured system message color from the user registration
report.
V 1100: Default = white on rec.,
RTfIC• rlami tit = Whit= nn 1,10,4
V
text Literal text for the message (up to 79 characters).
Example
This example displays a message on line 1 using the text supplied. The
user's default message attribute is used.
msg,1,e„'that input is not valid'
Format
PREP[,attr]
Field Description
attr The attribute to use in place of the default. See Field Attribute Parameters
under "Field and Attribute Commands" in this subsection.
Example
This example protects the input menu being created by subsequent screen
commands and displays the background colors as defined by the Terminal
Definition Report for the terminal type.
V 1100: On OS 1100 MAPPER Systems, displays tne Dacxgrouna colors as
defined by the terminal type.
prep,(pr,bac)
Field Description
name The name of the field you are defining. You can use a maximum of 12
characters.
opt Options.
S Sides. Draws lines on the left and right sides using emphasis.
Justification options:
✓ Varies the size of the field to fit the text supplied. Default (no text) and
maximum size is determined by the length of field as specified in the
AREA command data. The field is left-justified (use with R or C options
to alter justification).
continued
continued
Field Description
Miscellaneous options:
at& Attribute that defines the characteristics of the field. (See Attribute
Parameters.) If no attribute is specified, no attributes are output.
text Literal text to be inserted into the field. If you use the T option on the SC
statement, text supplied in the fldtxt field of the SC statement is used instead.
See also the P option. If you do not supply text, the field will be blank.
Field Description
name The name of the area you are defining. You can use a maximum of 12 characters.
The MAPPER system stores up to 10 named areas in memory. Naming an area
alters the way input is received from the screen. When XKEY$ or a function key is
pressed with the cursor in a named area, only the input from that portion of the
screen is received. If the area is output from a run:
AREA$ contains the name of the area from which input occurs.
FIELD$ contains the field number within the area in which the cursor is
located.
r,c Cursor position coordinates for the upper left corner of the area. See Syntax
Rules for Screen Commands under "Screen Commands" for specifying screen
coordinates.
opt Options.
Border options:
A Attributes. Displays the background attributes of the area even if the area is
being boxed. Use only with the B option.
B Box. Draws a box within the outer edge of the area if the terminal supports
box drawing characters. See also the A option.
F Frame. Frames the area with emphasis. This option is terminal dependent.
Miscellaneous options:
D Delimiter. Marks fields with a field delimiter character only. Named fields are
not recognized. Allows you to place text immediately following a field.
attr Attribute that defines the background characteristics of the area.
dild,num,u,(ts,no,fc)
dild,date,u,(ts,ai,fc)
dfld„u,(ts,ao,fc)
dfld„u,(ts,ai,fc),user$
dfld„,(co,fc)
area„4,11,8,56„(pr,mc)
Command Description
SOE[,c I ,n] Places a start-of-entry (SOE) character at the current cursor position. The
value supplied for n is the number of SOEs to display. Default =1. The value
supplied for c is the special character that you are using to redefine the SOE
character. The following example shows & as the special character to
represent the SOE character. For example:
LB[,c I ,n] Places a left blink character at the current cursor position. The value supplied
for n is the number of left blinks to display. Default =1. The value supplied
for c is the special character you are using to represent the left blink
character. See the RB command for an example.
RB[,c I ,n] Places n right blink characters at the current cursor position. Default = 1.
The value supplied for c is the special character you are using to represent
the right blink. For example:
TIC[,c I ,n] Places n current literal delimiter characters at the current cursor position.
Default = 1. Redefines the literal delimiter character, which is initially the
apostrophe, to a special character supplied by c. This is useful when
apostrophes are used in text. For example:
EMP Command
Use the emphasis command to highlight or emphasize text on the screen.
You can place emphasis anywhere on the screen.
Format
EMPI,P,P,...,P1
Field Description
C or I Separates columns
U or _ Underscores
Strikes through
DATA Command
Use the DATA command to display a specified number of lines of text data
starting at a specified screen position.
The text data to display begins in column 1 of the report line immediately
following the DATA command. The text is displayed exactly as it appears;
spaces or commas within the data do not terminate the scan.
Note: The DATA command is valid only if screen commands are being read
from a report.
Format
DATM,r,c,rslz,csiz,pn,o]
Field Description
r,c Cursor position at which to start displaying the text. See Syntax Rules for Screen
Commands under "Screen Commands" for rules on specifying screen
coordinates.
rsiz Number of rows on the screen for the displayed text (paged text if the pn
parameter is specified). Default =1.
csiz Number of columns on the screen for the displayed text (paged text if the pn
parameter is specified). Default = report line length, or screen width, whichever is
smaller.
pn Page number. Indicates that the following report lines consist of page-formatted
data, and specifies the default initial page to be processed. This page number
may be overridden. See DSPFORM Action and PAGE Action in this subsection.
Use paged data to handle multiple menus within the same report, or for textual
information too lengthy for a single screen, such as application documentation.
o W option. Interpret reserved words, inline attributes, and literal delimiters in DATA
text.
#PAGE Identifier
A page identifier that marks the beginning and end of a form page.
Format
#PAGEhn]
Field Description
Comments
• The identifier must begin in column 1 of the report and the word PAGE
must be in uppercase (#page does not work).
• Pages may be numbered or unnumbered. However, only a numbered
page can be used as the initial page. Once the initial page is displayed,
the PAGE action allows access to any page.
Example
Page data can be structured as follows:
SC format Section description
#P AGE , 1 Page identi fier
#PAGE,END
Setup Commands
The setup commands perform a variety of tasks such as sounding a beep at
the terminal, altering terminal setup, stopping the scan for screen
commands, controlling graphic display modes, overriding current options,
and mapping function keys.
BEEP Command
The BEEP command causes the terminal beeper to sound once. Use it to
signal the terminal user that an error or other special condition has
occurred.
Format
BEEP
After your run executes the BEEP command, it places the cursor at the
home position. You can execute only one BEEP command for each SC
statement.
Note: Not all terminals support this functionality.
CP Command
V This section on the CP command does not apply to the BTOS H MAPPER
System or the Personal Computer MAPPER System.
The CP command alters the terminal setup (control page).
Format
CP I , P 1
The CP command accesses the terminal setup and inserts the text string p .
Any special sequence (control string introducer) required is inserted
automatically.
Note: Be careful when altering the terminal setup; it may affect the ability of
the MAPPER system to communicate with the terminal. See your
terminal documentation before using this command.
END Command
The END command stops the scan for screen commands and displays the
terminal output.
Format
END
MODE Command
The MODE command selects the display mode of a graphics terminal.
(Nongraphics terminals ignore the MODE command.)
Format
MODE I , p 1
The valid entries for the p field are as follows:
A Alpha only display.
G Graphics only display.
M Mixed mode display (graphics and alpha). This mode is terminal
dependent.
OPTS Command
The OPTS command overrides a subset of SC statement options that may be
in effect from the calling run. It allows the screen command report to
specify a subset of the screen control statement options independent of the
calling run.
Format
OPTS,[+ -Jo
If the first option character is a plus (+) the specified options are added to
the caller's options; a minus (-) removes the specified options. Allowable
options are B, C, H, K, L, M, S, U. See Options in this subsection for a
description of each allowable option.
Example
This example holds line control and displays all blank spaces. All other
options are deselected.
opts, is
FKEY Command
The FKEY command specifies an action to be performed at the next input if
a particular function key is pressed. This is called function key mapping.
You can map actions to function keys 1 through 10 as well as Transmit. If
one or more keys are mapped, the remaining unmapped function keys are
disabled.
The FKEY command also displays a function key bar at the bottom of the
screen that shows the current mapping of function keys 1 through 10. The
current mapping remains in effect until the next output (see the K option
under Options).
Format
FKEY,n,title,action
Field Description
title Text to display with the function key number on the function key bar. The title
must be six characters or less. Enclose it in apostrophes. For example:
fkey,8,'Ex hip',"
action The action to take when the function key is pressed. The action can be any valid
command (control line) input that a user might enter, such as a ^ to display the
active screen or an x to sign off MAPPER software. See "Special FKEY Actions" in
this subsection for other possible actions.
HELP Identifier
Use the HELP identifier to identify help text in your screen command report
and to determine where the context-sensitive help should be placed on the
screen.
Format
HELP,Ild,...fld row
Field Description
f Id,...f Id The field number for which the following context-sensitive help refers.
row The row (screen line) where the help text display should start.
Example
In this example, the END command separates the commands used to build
the screen from the help text. The DSPFORM action specifies another form
to display if the user presses Help while the context-sensitive help (help for
a form field) is already displayed. The I character on the first HELP
identifier determines the width of the help window.
END
DSPFORM,49H , 1
HELP , 1 15 I
First Field
DSPFORM Action
Use the DSPFORM action to access a report containing screen commands
(also referred to as a form) when a function key is pressed.
While using the DSPFORM action, a stack of forms, built up in the order in
which they are displayed, is created. The stack grows this way until it is
cleared or rearranged using the DSPFORM or FORMRET FKEY actions.
The form at the top of the stack is the currently displayed form.
This stack is called the forms return stack and identifies which form
MAPPER software should return to if a FORMRET action is used. A stack
holds a maximum of 20 forms.
A form on the stack can include a saved context so that it can be returned to
the top of the stack or recalled at any time while a function is still active.
The forms that were stacked on top of it are discarded.
Format
DSPFORM, r[dc],pn,t abp,opt
Field Description
r[de] The report, drawer, and cabinet containing the form. If the drawer or cabinet or
both are omitted, DSPFORM action assumes the cabinet number and the drawer
letter of the report containing the DSPFORM action. (This allows forms to be
created for maximum portability.) The system begins reading commands on line 4
of the report you specify (be sure to take this into account when entering
commands in the output area).
pn The form page number of text to display. This is valid only if the report specified
by rdc uses paged data. See "DATA Command" in this subsection.
tabp The tab position at which to place the cursor, where a positive number is the
number of tab positions forward (maximum of 100) from the home position and a
negative number is the number of tab positions backward (maximum of 100) from
the home position. Default =1. 0 = no positioning.
continued
continued
Field Description
opt An option to set the return to this form if requested by a later form. Use one of
these values to specify the action for the return stack:
2 Marks the current stack position and then puts this form on the top of the
stack.
3Saves the context of the current form so a return restores the screen as it
currently exists. This is useful for help displays.
V 1100: This option is not available on OS 1100 MAPPER Systems.
4 Does not put an entry on the return stack for this form.
5 Overwrites the current entry on the return stack with this form.
Example
This example allows the user to display page 4 of the form in 202E by
pressing the Readme key (the F6 function key).
fkey,6,Readme,dspform,202e,4
V This section on displaying a form and returning control to the run applies
only to the OS 1100 MAPPER System.
Use the Display Form (DSF) statement to display a report containing screen
commands (form) from within a run. Use the DSF statement instead of the
SC statement to display a form starting at a particular page number.
Format
WSF,c,d,r,pn,tabp,opt .
The subfields for the DSF statement are the same as the DSPFORM action,
with the exception of the c , d, r subfields (cabinet, drawer, and report
containing the form).
FORMRET Action
Use the FORMRET action to return to a previous form as determined by the
forms return stack. See "DSPFORM Action" in this subsection for more
information on stacking.
Format
FORMRET, cmd
Field Description
5 If there is a report on display, repaints the report before redisplaying the form.
This is used to clean up a screen that has several menus on it.
Example
In this example, pressing the Return function key returns the user to the
previous entry on the return stack.
f key ,4,Re t ur n , f ormret ,0
PAGE Action
Use the PAGE action to page forward or backward in a form, after the initial
page of a form is displayed.
Format
PAGE , p
Field Description
p Use a plus (+) to move forward to the next page, a minus (-) to indicate the
previous page, or a number to go to a particular page. Default = +.
Example
In this example, pressing the RollFw key advances the user to the next
page of paged data.
f key ,2,Ro I IFw, page ,+
SELECT Action
Use the SELECT action to select one of a group of actions or commands,
based on the relative position number of the field that the cursor is in at the
time the key is pressed.
Format
SELECT
Note: The SELECT command must be in uppercase letters and the field
number must not start in column one.
Example
This example displays form 1.1e if the cursor is in the first field when the
Transmit key is pressed, and sorts the report on display if the cursor is in
the second field when the Transmit key is pressed.
f key ,0„SELECT
1,dspform,11e,1,1,0
2,sort -
SCH (Schedule)
Ji7 This section dots not apply to the OS 1100 MAPPER System or the BTOS II
MAPPER System.
The Schedule Runs (SCH) statement allows you to establish a time for the
execution of a specified run statement. The SCH statement can queue any
of the following run statements for execution at a later time:
• Auxiliary (AUX) • Send Report (SEN)
• Background Run (BR) • Send Report to User (SNU)
• Print (PRT) • Start (STR)
• Remote Run (RRN)
Format
@SCH[,date,time] rst
Field Description
time Specifies the time of day to schedule the queuing function in HHMMSS
format where HH is the hour, MM is the minute, and SS is the second.
Default = current time.
rst Run statement to queue: AUX, BR, PRT, RRN, SEN, SNU, STR.
Field Description
Examples
Send report 1AO, to station number 5:
@sen,0,a, 1,5 .
Send result -2 to station number 22 and return an acknowledgement after
the message is accepted (go to label 99 if the station does not exist):
then , -2,22„y , 099 .
V' 1100: The following example does not apply to OS 1100 MAPPER Systems.
Send report 2CO3 to station number 5 at MAPPER site j (go to label 3 if the
station does not exist):
then ,O,c ,2,5, j „003 .
Field Description
vld The columns of the report you want to include in the display format. Use
variables, literal data, or both to specify the format you want to set.
Comments
• You can restore a display format previously saved with a Load Format
Characters (LFC) statement or build your own customized format with
an SFC statement. The x characters (or any characters other than
spaces) become displayed column positions; spaces are column positions
not displayed.
• You must use a DSP, DSX, OUM, or OUT statement after an SFC
statement.
• If a report is specified on the SFC statement, that report becomes the
current -0.
Example
Set the format for columns 1 through 10 and 16 through 20 in the current
result and display it:
@sfc 'xxxxxxxxxx xxxxx' .
@dsp,-0 .
Field Description
Comments
• The label is taken only if the user-id or department does not exist on the
local site. For remote sites, a message is returned informing you that
the user-id or department is invalid.
V 1100: On OS 1100 MAPPER Systems, you cannot send messages to a
remote site.
• If you do not specify a department number, the message is sent to that
user-id in all departments. The first user to accept and acknowledge the
message clears the message for all users.
Examples
Send report 1CO, to all users with the user-id of newuser (go to label 3 if
newuser is not a valid user-id):
tbsnu,O,c,l,newuser „ „003 .
V 1100: The following example does not apply to OS 1100 MAPPER Systems.
Send report 2B0, to mapcoord user-id in department 2 at site z, requesting
an acknowledging response:
@snu,0,b,2,mapcoord,2,z,y .
SOR (Sort)
The Sort (SOR) statement sorts report or result data and creates a result.
1100: On OS 1100 MAPPER Systems, the system places a.. update lock on
the report to prevent other users from updating it while your run is sorting
it.
You can use the Sort and Replace Report (SRR) statement to replace the
sorted data into the original report. You cannot use the SRR statement on
results, and the SRR statement does not create a result.
Format
@SOR,c,d,r o cc Ityp,p .
Field Description
Ityp Line type to sort (if you specify the A option, you can leave this subfield
blank, but enter the comma).
N = numeric sort
D = descending order
Options
A Processes all line types.
C(S) Distinguishes between uppercase and lowercase letters.
V 1100: C(x) Alters the sort process based on the character set order.
Ordinarily the system processes the report based on the
character set of the drawer. The C option allows you to choose
the character set type on which to base the sort. Use one of the
following:
C(F) Full character set (FCS)
C(L) Limited character set (LCS)
C(S) Strict comparison; distinguishes between uppercase
and lowercase letters.
V' 1100: X+ Sorts the data using the OS 1100 Sort/Merge product (if
installed at your site), regardless of the report length.
V 1100: X- Sorts the data using the normal MAPPER software process,
regardless of the report length.
If you do not specify X+ or X-, the sort process is determined by
the report length. See the coordinator for more information.
Example 1: Sort by Field in Ascending Order
Sort a report in ascending order by the Cust Code field:
@sor,0,b,2 " 'cost' 0 ,1 .
where:
,, Uses no options
'cust ' Sorts the Cust Code field (column 45 for four characters)
❑ Processes tab lines only
1 Sorts one level in ascending order
or
@sor,O,b,2 " 45-4,15-9 ❑ ,1,2 .
where:
Uses no options
'cust ' Sorts the Cust Code field (column 45 for four
45-4 characters) first
1
' prod u c t ' Sorts the Product Type field (column 15 for
15-9 nine characters) second (that is, within the
2 Cust Code field)
❑ Processes tab lines only
SRH (Search)
The Search (SRH) statement searches vertically through one or more
reports or one result and creates a result of items found.
To create an update result that allows you to blend the changed lines back
into the original report or delete lines from the original report, use the
Search Update (SRU) statement. The SRU statement uses the same fields
and subfields as the SRH statement. See the online help system
(HELPASRU) for more information.
Format
@SRH,c,d[,r,l,q,lab] o cc Ityp,p [vlines,v1s,vrpt] .
Field Description
ltyp Line type to scan (if you specify the A option, you can leave this subfield
blank, but enter the comma).
p Search parameters.
vlines Variable to capture the number of lines found with the search parameters.
vis Variable to capture the number of lines that were scanned. If a start scan line
is specified, all lines scanned (not just line type specified) are included.
vrpt Variable to capture the report number where the find was made.
The vrpt variable is useful only with the B[(n)] option to capture the number of
the report containing the last find made before bailing out. Note that if you do
not use the B option, vrpt = 0.
Options
A Processes all line types. Do not use this option with the T or
U options.
B[(n)] Stops a search after the nth find. Default = first find. The
search continues until n items are found or until the end of
the report.
C(S) Distinguishes between uppercase and lowercase letters.
V 1100: C(x) Alters the search process based on the character set order.
Ordinarily the system processes the report based on the
character set of the drawer. The C option allows you to
choose the character set type on which to base the search.
Use one of the following:
C(F) Full character set (FCS)
C(L) Limited character set (LCS)
C(S) Strict comparison; distinguishes between
uppercase and lowercase letters.
D Omits search information lines from the result.
V 1100: En Estimates the number of lines in the result, where n is an
integer. This option improves the efficiency of the search
when the output result contains more than 500 lines.
F Searches for a numeric value instead of a character string.
To search for a range of negative or floating point numbers,
use this option.
H In a multiple report search, includes the heading lines of the
first report only.
L(x) Omits lines of type x from the result. Note that you can use
any line type here. For example, L(*.a) indicates that
asterisk lines, period lines, and A-type lines are to be
omitted from the result.
U[(x)] Includes data found in the type of line you are processing
and its surrounding data unit. A data unit consists of a
group of lines starting at line type x up to the next line of
that type. Default = tab line. Do not use this option with the
A, N, or T options.
With the U option, you specify the paragraph boundary as
the x line type. In contrast, the P option automatically uses
the line type you are processing as the paragraph boundary.
Searches for spaces or a specific line type when used with
the @ parameter.
Searches for a slant character as data when used with the /
parameter.
Example 1: Searching a Field for an Item
Search for amco in the Cust Code field:
@srh,O,b,2 d 'cust' 0 ,amco
where:
d Uses the D option to delete search information lines
'cust ' Searches the Cust Code field for the character string
amco amco
❑ Processes tab lines only
Example 2: Searching a Field for Items within a Range
Search the Order Number field for all numbers in the range 80000 to 90000:
tbsrh,O,b,2 d 39-5 ❑ ,80000/r,90000 .
where:
d Uses the D option to delete search information lines
39-5 Searches the Order Number field (column 39 for five
characters)
❑ Processes tab lines only
80000/ for all numbers in the range 80000 to 90000
r ,90000
where:
d Uses the D option to delete search information lines
2-2 Searches the St Cd field (column 2 for two
characters)
0,sh/1],sc for sh or sc on tab lines
<found>i3 Captures the number of lines found in <found>
<scanned> i3 Captures the number of tab type lines scanned in
<scanned>
Field Description
vttyp Variable to capture the terminal type name of the station. (These names are
identical to those provided by the TTYPE$ reserved word.)
vaspect Variable (F type) to capture the aspect ratio of the specified station. (Same
as the value of the ASPECT$ reserved word.)
vcolor Variable to capture the graphics color flag or terminal. (Same as the value of
the COLOR$ reserved word.)
vgraph Variable to capture the graphics type. (Same as the value of the GRAPH$
reserved word.)
* If a user is not currently signed on to the terminal, vuser and vdepn are filled with spaces, and
vdept is set to zero.
Comments
• If the station number you specify does not exist or is inactive, the run
goes to the label specified in the t ab subfield; otherwise, the run errs.
If you do not specify a station number, or if the station number is zero,
the STN statement assumes the number of the station where the run
was started.
• If you specify a terminal type in the sn subfield, vuser and vdepn are
blank; vdept contains 0.
• Note that the STN statement does not create a result. Any result that
exists before the STN statement is executed is still the current (-0)
result.
Example
Capture information about station 100:
(gts tn, 100, 199 <user>h11,<dname>h12,<dnurn>14,<term>h7, \
<vs i ze> i 2 ,<hs i ze> i 3
where:
100 Provides information about station 100
199 Goes to label 199 if station 100 does not exist.
<user>h 11 Captures the user-id of the person currently signed
on in <user>
<dname>h12 Captures the department name in <dname>
<dnurn>i4 Captures the department number in <dnum>
<t e rm>h7 Captures the terminal type (for example, PCHR) in
<term>
<vs i ze> i 2 Captures the vertical screen size (for example, 24) in
<vsize>
<hs i ze> i3 Captures the horizontal screen size (for example, 80)
in <hsize>
STR (Start)
This section does not apply to the BTOS II MAPPER System.
The Start (STR) statement collects data and uses this data as input to a job
or processes this data as a job itself. It can also start jobs that produce files
that can be returned to the MAPPER system with the Retrieve File (RET)
statement.
V PC MAPPER: The STR statement executes the command shell
(CMD.EXE) contained in a MAPPER report.
Format
@STR,c,d,d,s1,11c,logon,psw] .
7Z7' 1100:
@STR,c,d,d,runid,acct] .
Field Description
c,d,r Report that contains the job or the report to pass to a job.
V A Series: Default = blank (execute the data as a WFL job). See the
MAPPER system coordinator for the interfaces configured on your system.
psw System logon password. Required if the system logon has a password
assigned.
V 1100: runid Batch run identifier. Default = the run-id in the Exec RUN statement.
V 1100: acct Batch run account number. Default = the account number in the Exec RUN
statement.
Comments
V • U Series and UNIX: When starting a job at a remote site, you must
specify a valid system logon and password for the remote site.
• IBM® start requirements follow the examples.
V • A Series: Some files generated by a WFL job can be returned to
MAPPER software with the RET statement. You may also use the
MAPPER sign-on command RUN OBJECT/MAPPER( " - fIl I ename") using
the name of a file containing a BPRUN$ statement to pass that file to
MAPPER software for execution. If an interface name is used, a file
title containing the data is given as a STRING parameter to the WFL
job.
• If starting a batch job, the job must have been previously entered in a
report or result.
• See the Manual Functions Reference and the online help system
(HELP,START) for information on the BPRUN$ and ENDRD$
commands.
• To include more than one report or drawer, use the $INCL$ command.
See Appendix C for information on data control commands.
• To control the format of the data in reports you transfer to the host, use
the data control commands described in Appendix C.
Example 1: Starting a Job on the Local Site
V 1100: Start the runstream in report 101A0 and identify the batch run as
bch10:
@str,O,a,101,bch10 .
V U Series and UNIX: Start the batch runstream located in report 3B0 (the
UNIX shell [/bin/sh] processes the runstream):
@str,O,b,3 .
V A Series: Start the WFL job located in report 3B0:
Cbstr,O,b,3„NBAUSER,LCCAL .
SUB (Subtotal)
The Subtotal (SUB) statement subtotals report data.
Format
@GUB,c,d,r[,lab] o cc Ityp,p vrolts .
Field Description
Ityp Line type to process (if you specify the A option, you can leave this subfield
blank, but enter the comma).
p Subtotal parameters:
Add
Subtract
Multiply
Divide
Move to this field
A Average
C Cumulate
M Move this field
S Subtotal (required)
S1-S5 Hierarchical Subtotals
vralts Variables to capture the results. Select the E option if you want the first
variable to capture the entry count for each subgroup. Substrings are not
allowed.
To initialize a variable to the size of a field, just specify the variable number
and type (for example, v1h, v2s, and so on). If you are using the E option, the
variables must be fully defined (for example, v2i6).
Options
A Processes all line types.
C Looks for case changes in the subtotal key field values. Whenever
the value in the subtotal key field changes, a subtotal is displayed.
Use with the S parameter only.
V 1100: On OS 1100 MAPPER Systems, this option applies only to full
character set (FCS) reports.
E Counts the number of entries processed for each subtotal and enters
that count in the first defined variable. For example, if a subtotal
includes four values, the statement loads the first variable with 4.
I Ignores headings: processes report even though asterisk lines or
heading divider line may not exist.
J(x) Justifies numeric result values in variables to x; x is one of the
values listed below. Leading zeros appear to the left of a value,
nonsignificant zeros to the right. Neither affect the value.
C Eliminates leading and nonsignificant zeros. Inserts
commas every three digits in the integer portion of the
result. Right-justifies values.
L Eliminates leading and nonsignificant zeros. Left-justifies
values.
R Eliminates leading and nonsignificant zeros. Right-justifies
values.
X Eliminates leading zeros, left-justifies values, then fills
variable with nonsignificant zeros.
Z Eliminates nonsignificant zeros, right-justifies values, and
fills variable with leading zeros.
Comments
• Follow a SUB statement with an output line, since it creates one line of
output for each item subtotaled. Do not use variable substrings in the
output line.
• Define parameters as you would for a Totalize (TOT) statement (see
TOT in this section).
• Place the variable defined for the subtotal field in the output area.
• To provide a space for an asterisk whenever nonnumeric values are
encountered during subtotaling, a space is forced in the output line after
any variable created by an arithmetic operator. To eliminate the space,
use the * option.
• Even though you can predefine the size of a variable to load in a SUB
statement, you can also initialize the variable to match the size of a
corresponding report field. This is especially useful with a named field
because the name does not directly specify the field size; it also allows
the SUB statement to adjust to a change in the size of a field.
Example 1: Subtotaling Subgroups
Subtotal the subgroups in the Cust Code field and add the values in the Ord
Qty field:
@sub,O,d,1 " 'custcode','ordqty' v1h,v2i .
vt v2
where:
Uses no options
'custcode' Subtotals on the subgroups in the Cust Code
s field
'ordqty' Adds the values in the Ord Qty field
TOT (Totalize)
The Totalize (TOT) statement performs arithmetic and move operations on
fields within a report or result (and creates a result if you do not specify
variables to capture the resulting values).
Format
WOT,c,O,r[,iab] o cc ityp,p [vrsits] .
Field Description
ltyp Line type to process (if you specify the A option, you can leave this subfield
blank, but enter the comma).
p Parameters:
watts Variables to capture the totals (if you use this field, the TOT function does not
create a result).
Options
A Processes all line types.
C Displays a subtotal if the value in the subtotal key field changes
case. For example, with the C option, if the value in the key field is
Rate on the third line and RATe on the fourth, a subtotal is shown
after the third line. Use this option with the S parameter only.
V 1100: On OS 1100 MAPPER Systems, this option applies only to full
character set (FCS) reports.
E Counts entries (see also the R option). In the TOT run statement,
the first variable contains the entry count.
H Cumulates horizontally.
I Ignores headings: processes the report even though asterisk lines or
the heading divider line may not exist.
J(x) Justifies numeric result values in fields to x; x is one of the values
listed below. Leading zeros appear to the left of a value,
nonsignificant zeros to the right. Neither affect the value.
C Eliminates leading and nonsignificant zeros. Inserts
commas every three digits in the integer portion of the
result, if the field is large enough. Right-justifies values.
L Eliminates leading and nonsignificant zeros. Left-justifies
values.
R Eliminates leading and nonsignificant zeros. Right-justifies
values.
X Eliminates leading zeros, left-justifies values, and fills fields
with nonsignificant zeros.
Z Eliminates leading and nonsignificant zeros, right-justifies
values, and fills leading spaces with zeros.
N Omits the grand total.
O Omits all data lines from the result, displaying only subtotal and
grand total information.
Field Description
logon UNIX logon. Default = UNIX logon of the current run user.
pw UNIX logon password. Default = UNIX logon password of the current run
user.
args Arguments passed to the UNIX command. Enter full path names only if the
command requires them. When entering arguments, enclose the command
and argument in apostrophes.
Options
-c Clears the screen after the statement finishes processing and
returns to the MAPPER system.
-f Returns the output of the command as a result in drawer A. If
you enter a file name immediately following the -f option, the
function places a copy of the output from the UNIX command
into that file. Do not use the -f option when executing an
interactive UNIX process such as vi and ed. (Do not use this
option with the -w option.)
-p Executes the user's .profile before executing the UNIX
command.
-w Allows the run user to press Resume to resume the run once the
command is executed and the output has been displayed. (Do
not use this option with the -f option.)
Comments
• If the run user entered the MAPPER system through the UNIX shell,
the user can execute any UNIX commands normally available through
that logon. When the UNIX command completes, the MAPPER run
continues.
• If the run user entered the MAPPER system directly from the UNIX
logon prompt (with a logon of mapper), the run terminates with an error.
(The mapper logon allows access only to MAPPER software.)
To prevent the run from terminating, be sure the UNX statement
contains a valid logon and password for all users of the run. You may
want to prompt the user for a valid logon and password before executing
the UNX statement.
When the command completes, the MAPPER run continues.
• If you use UNIX statements in runs that are to be executed in the
background from a remote site (RRN, NRN, NRM, BPRUN$ command
with the STR statement), you must specify a valid UNIX logon and
password for the remote site.
a You may want to use the Refresh Screen (PNT) statement following a
UNIX command to reestablish screen attributes when the run user
returns from the UNIX environment.
• UNIX commands, arguments, and file names are case sensitive. For
example, the command /BIN/LS -L does not execute the /bin/ls -1
command.
Examples
Access the UNIX system shell; the I ogon and pw fields are specified by
<runlogon> and <runpw>:
@unx„<runlogon>,<runpw> " " .
Note: You must preserve the positions of options and commands.
The user can return to the MAPPER system by pressing Exit.
List the contents of the /usr/work/newuser directory and place the output in
a cabinet 0, drawer B result:
@unx,O,b -f '/bin/Is -I /usr/work/newuser ' .
Execute the UNIX cat command on file prod_status, and put the output in
file tmpfile and in the cabinet 0, drawer E result:
@unx,O,e -f/tmpfile '/bin/cat 'X
'/usr/work/newuser/prod_status' .
Field Description
Comments
• Normally, when you assign a name to a variable, you can refer to it only
by the name and not a variable number. However, if you assign the
variable with the USE statement, you can refer to it by either its name
or number.
• As a rule, you should not use named and numbered variables within the
same run. There may be certain cases, however, in which it is necessary.
For example, you may need to call an external subroutine containing
numbered variables from a run that uses named variables.
• You can assign several names with a single USE statement and
optionally initialize the variables at the same time. If you want to
initialize the variable while naming it, include the variable type and size
with the variable number.
Examples
Assign the name <station> to v190:
@use station=v190i5 .
Assign the name <designer> to v191:
@use designer=v191s77 .
WAT (Wait)
The Wait (WAT) statement temporarily suspends the execution of a run.
Format
@NATI ,M, I al)) ms .
1100:
@NAT ms .
Field Description
V 1100: The M option and the lab subfield are not available on OS 1100 MAPPER Systems.
Comments
• The M option on the WAT statement allows the run to stall until an
outstanding message is received or until the wait time is reached. If a
message is received and a label is specified, the run continues at the
label. If a message is not received within the wait time limit specified,
the run continues at the next statement.
1100: The M option is not available on OS 1100 MAPPER Systems.
• Use WAT statements interspersed with extensive logic loops to reduce
the impact on the MAPPER system.
• You can also use a WAT statement to hold an interim display (DSM,
DSP, OUV, and OUT) on the screen long enough to read it.
• Do not place any run statements on the same line following the WAT
statement. The logic scan of the line terminates after executing the
WAT statement.
Examples
The run waits 100 milliseconds before resuming:
wat 100 .
'V 1100: The following example does not apply to OS 1100 MAPPER Systems.
This example sends a report to <user>, uses the WAT statement with the
M option to wait for the user to receive the message, and displays status
messages on the run user's screen:
@020: . Send Report
@ snu,O,b,2,<user>,<dept>,<site>,y,199 .
@ wat,m,099 500000 . **Wait for user to receive msg***
@ ouv,1,1 ers$ .
@ ouv,15,15 'Message not received' .
@ wat 4000 . ***Suspend OUV display****
@ rel .
@099: . Process Response
@ .
@ . (other processing based on response)
@ rel .
@199: . Error Routine
@ ouv,1,1 ers$ .
@ ouv,15,15 'Problem with user-id, dept, or site'
@ wat 4000 . ***Suspend OUV display***
@ rel .
Field Description
ntuid? Do not update the time and user-id in the date line, Y or N. Default = N. If
you specify Y and the update date on the report is not the current date, the
system overrides your request and writes the update time, date, and user-id.
wpw Write password to place on the report. Use this subfield to set a password
on a report. Note that the fields after wpw are all mandatory; you cannot set a
write password without updating the report.
Vy 1100: ccpy? (This subfield applies only when using the Deferred Update [DFU] statement
on the OS 1100 MAPPER System.) Write a complete copy of the report if this
is the first WRL statement since executing the DFU statement, Y or N.
Default = N.
Writing a complete copy of the report may cost additional I/O overhead to
update the report; however, it can considerably decrease the cost of other
users attempting to access the same report while it is under a deferred
update lock.
continued
continued
Field Description
V 1100: Note that starting with level 35R1, the WRL statement writes data on
period lines in the columns you request in the cc subfield. In previous levels,
the data would always be written starting in column 2.
Ityp Line type designator to write. Updated lines will be changed to the line type
you specify. (In other run statements, the Ityp subfield specifies the type of
line to process; however, the Ityp subfield in the WRL statement specifies the
line type to be written.)
Examples
Use the LOK statement to lock report 3B0, for update, then use the WRL
statement to write a tab line in line 6 of the report, placing the characters sh
in column 2 for two characters. Use the ULK statement to release update
control:
@lok,O,b,3 wr1,0,b,3,6 2-2 ❑ ,sh ulk .
For a multiline write, expand the parameters field, as in this example:
@lok,O,b,3 .
@wr 1 ,0 , b ,3, 6 5-6,77-3 0 , 900605, TUE/0 ,900613,KED .
@u 1 k
This WRL statement writes two tab type lines (lines 6 and 7) in the report
with 900605 (line 6) and 900613 (line 7) in column 5 for 6 characters, and
TUE (line 6) and WED (line 7) in column 77 for 3 characters.
XQT (Execute)
The Execute (XQT) statement executes one or more run statements,
including data for output areas. You can execute up to 132 characters of
data.
' 1100: On OS 1100 MAPPER Systems, you can execute up to 640 characters
of data.
Format
WIT(,lab I vld} .
Following is a description of the field and subfield:
Field Description
Comments
• You can use the I a b subfield to execute a line already containing one or
more run statements, or you can formulate the statement to execute
within your run, using variables, for example, containing data captured
from an input screen that you want to include in a run statement.
• After interpreting the XQT statement, the system executes either the
data at the specified label or line number or the data specified in the
v 1 d field.
• If the data you want to execute is a run statement, the first character of
the data must be an at sign (@); otherwise it is treated as data for the
output area and the run continues at the next line in the run control
report. (The at sign [@] tells the MAPPER interpreter that the
information that follows is a run statement.)
• You can include any characters in the data you want to execute except
the reverse slant ( \ ). You need not enclose commas ( , ) or slants ( / ) in
apostrophes.
• If the statement being executed errs, the run goes to the label given on
the executing statement. If the executing statement does not contain a
label, the run terminates in error with the XQT statement, and a system
message appears.
• You can nest XQT statements. That is, one XQT statement can execute
another XQT statement, which, in turn, can execute another XQT
statement, and so on.
• After executing the XQT statement, the run continues execution at the
line following the XQT statement, unless the executed statement
transfers control to a new location (for example, through a GTO, RUN,
or XIT statement).
• An XQT statement terminates the scan of the current line in the run
control report.
Field Description
Your site is responsible for documenting the name and format of each
site-defined run statement. See your coordinator or the person responsible
for maintaining the MAPPER system software and databases for
information on the site-defined local run statements available for your use.
A
A Series data file
A file formatted in such a way that it can be read by an A Series editor, such
as Command and Edit language (CANDE).
abort
To terminate execution of a MAPPER function or run.
abort routine
A subroutine to be executed if a user aborts the run during execution. It can
be an internal or external subroutine. See also external subroutine, internal
subroutine, subroutine.
accesscode
An identification code subordinate to a usercode. An accesscode is used to
further establish a user's identity, control security, and restrict access to
disk files. See also log on.
accounting log
A summary of data containing a record of every transaction compiled while
a run executes. The Log for Analysis (LOG) run statement produces an
entry in the accounting log for each function executed in the run. Synonym
for log list.
active screen
The screen that shows you have signed on. Although the active screen looks
like the sign-on screen, your user-id takes the place of the word Idle, and the
bottom line indicates which cabinet you are accessing. Contrast with sign-on
screen. See also caret, sign on.
alphanumeric variable
A variable that contains one or more alphabetic, numeric, and special
characters, such as the tab character. See also variable, variable type.
American Standard Code for Information Interchange (ASCII)
A set of numeric codes that defines a character set. The ASCII character set
used in MAPPER software is called full character set (FCS). See also
character set, full character set.
application
See MAPPER application.
apostrophe
A special character ( ' ) used in run statements to delimit literal data that
contains spaces, slants, or commas. See also run statement.
argument
An item of data passed to a computer program. See also parameter.
arithmetic expression
A single numeric value or a combination of two or more values and one or
more arithmetic operators. See also arithmetic operator.
arithmetic operator
A special character (such as +, -, *, and =) that specifies a mathematical
relationship between two values. See also arithmetic expression, expression.
ASCII
See American Standard Code for Information Interchange.
asterisk line
A line beginning with an asterisk (*) in column 1; it can be used as a
comment line. It is not controlled by the tab positions and input edit codes
of report 0. It has these characteristics: it can be shifted, it can extend to
256 characters, and it can be displayed and processed in different formats.
See also line type.
auxiliary device
A peripheral device connected to a terminal, such as a printer. See also
peripheral device.
B
B20 operating system (BTOS)
The operating system used when running INFOVIEW II applications on
Unisys B20 series systems. See also INFOVIEW II.
background run
A MAPPER run that frees your terminal for other uses while it executes.
basic format
The unshifted columns of a report as defined in report 0 from left to right.
On 80-character screens, the basic format contains the leftmost 80
characters of a report; on 132-character screens, the basic format includes
the leftmost 132 characters of a report.
binary find process
A method of finding an item quickly in a sorted list. Instead of scanning
data line by line, a binary find process samples the data at midpoint and
continues dividing and sampling the data until it finds the target item.
binary synchronous communications (BSC)
A communications protocol for sending data to an IBM host computer.
Boolean logic
A system of logical comparisons named after mathematician George Boole.
Boolean logic uses relational operators to evaluate expressions as true or
false. See also conditional statement, IF/THEN/ELSE statement, relational
expression, relational operator.
branch
To bypass the usual sequence of run statements and jump forward or
backward from the current location in a run. See also conditional branching,
label.
breakpoint
A place in a run, specified by a Run Debug (RDB) command, at which the
run execution is interrupted for debugging purposes.
BSC
See binary synchronous communications.
BTOS
See B20 operating system.
BTOS II
The Unisys workstation operating system for the B2x and B3x series
workstations.
C
cabinet
A group of eight drawers (B through I), referred to by number and usually
used by a department. Each user signs on into a specific cabinet, assigned
by the MAPPER system coordinator. Users in a particular department may
have one or more cabinets to work in. See also department, drawer.
cabinet password
See password.
calculator
A feature of MAPPER software used by the Arithmetic (A) function that
allows you to perform calculations. It can be used with a report containing
predefined equations or independently, similar to a pocket calculator.
call
The abbreviation you use to specify a function, run, or run statement. For
example, CAL is the call for the Calculate function.
CANDE
See Command and Edit language.
caret
A special character (^) that releases a displayed report or message, then
displays the MAPPER active screen. See also active screen.
case sensitivity
Pertaining to the differentiation between uppercase and lowercase letters.
When the option that determines case sensitivity is used, an uppercase
letter is treated as a different character than its lowercase letter.
character hierarchy
The relationship of characters to one another. For example, in limited
character set, numeric characters have higher values than alphabetic
characters. In sort or search-in-range processes, alphabetic characters come
before numeric characters.
character set
The characters allowed in the reports in a drawer. See also American
Standard Code for Information Interchange, Fieldata, full character set, full
character set upper, limited character set.
character string
A series or group of connected characters.
chart input report
A report that you fill in with data you want to chart. After you have finished
filling in the chart input report, it is called a completed input report.
See also completed input report.
CMS 1100
See Communications Management System.
COBOL
See Common Business Oriented Language.
column
A character position in a report; for example, the first character position on
the left side of a report is column 1.
column-characters (cc) field
The part of a run statement that specifies which fields in a report are used
by that run statement. For example, column-characters field 15-9 is the
field that starts in column 15 and is nine characters long. Note that field
names may be used in place of the column-characters field of a run
statement. See also field name.
column-formatted report
A report having a layout identical to other reports in the same drawer. The
fields are separated by tab characters. Contrast with freeform report.
command
An instruction entered into a report to carry out operations with a function,
such as GOC commands processed by the Generate Organization Chart
(GOC) function, or data control commands used with the Create File (FILE)
function or Create File (FIL) run statement.
Command and Edit language (CANDE)
A message control system (MCS) that prepares and updates files in an
interactive, terminal-oriented environment. See also message control
system.
comment
The part of a run statement that follows the space-period-space sequence
and summarizes what the run statement or subroutine is doing at that point
in the run. It documents the run for later reference.
Common Business Oriented Language (COBOL)
A high-level computer language used mainly in the business environment.
Communications Management System (CMS 1100)
The communications software product that provides the structure for all
communications and network capabilities for OS 1100. CMS 1100 software
allows a site to establish remote connections from an OS 1100 system to
other hosts, terminals, and networks.
Communications Management System (COMS)
A general message control system (MCS) that supports a network of users
and provides them with a consistent online interface to the host system.
See also message control system, online.
communications output printer (COP)
Any type of printing device connected to a terminal.
control line
The top line of the screen containing control positions. See also control
position.
control line procedure
The method of executing a function in which you type the function format on
the control line and transmit. Contrast with menu procedure. See also
control line.
control position
The position on the top line of the screen following the SOE character ( )
after the Line and Roll fields. See also control line.
coordinator
See MAPPER system coordinator.
COP
See communications output printer.
counter
A tally number, generated by a run, that records the number of times an
event occurs. It is commonly used to escape a loop after a certain value is
reached.
cumulation
The process of adding a quantity to a total and saving the new total in
another field, repeated a number of times. For example, the Totalize (TOT)
run statement can be used to cumulate a field. See also subcumulation.
current position
The point on the screen from which your next command originates when
using graphics primitive code and expanded syntax commands. See also
expanded syntax commands, graphics primitive code.
current result
The most recent result, called -0 (minus zero), when using run statements.
See also renamed result, result, temporary result.
cursor
The character ( 1) on the screen that can be moved anywhere to show where
to enter data. The cursor shows your current location on the screen.
D
data line
Any report line below the heading divider line. See also line type.
data name
The name of a cabinet, drawer, or report that has been defined by using the
NAME run. This name is stored in the system directory. See also system
directory.
Data Transfer Module (DTM)
A software package that provides a fast, flexible method of transferring data
between applications on OS 1100 computers.
data unit
A unit of related information consisting of a tab line and the following lines
up to the next tab line. A data unit can start with other line types when
using the Search function or run statement with the U option. See also
paragraph.
database
The cabinets, drawers, and reports maintained in files by the MAPPER
system.
date format
A format that defines how a date is to be displayed. For example,
DD MMM YY displays a date as 06 JUN 90.
demand program
A program executed in demand mode, which processes data as quickly as it
becomes available or ready.
demonstration database
The reports, usually in cabinet 0, in which you can practice manual
functions and run statements.
department
A group of MAPPER system users specified by a number. You specify your
department number when you sign on to the MAPPER system. See also user
registration.
device
See peripheral device.
disk pack
A disk that consists of multiple platters stacked vertically on a central
spindle. Data on a disk pack are accessed by movable read/write heads.
Some disk packs are removable. Synonym for pack. See also pack family.
display
(1) The terminal screen you look at while using MAPPER software. (2) To
present data on the screen.
distributed data processing (DDP)
A network consisting of two or more computers at different locations. These
computers are connected by data communications and are capable of
interfacing with each other to perform a job, task, or application.
distributed MAPPER application
An application that uses runs or data residing on more than one MAPPER
system. See also MAPPER application.
downline load
To copy a file or other information from a computer system to your own
terminal.
drawer
A group of reports in a cabinet. All reports within a drawer have the same
headings and line length. Each drawer of a cabinet is identified by a letter
from B to I. Drawer A is accessible to all cabinets in a MAPPER system.
See also cabinet, freeform drawer, report 0.
drawer letter
A letter (A through I) used to identify a drawer in a cabinet. See also
cabinet, drawer.
drawer number
The octal number that identifies the drawer and cabinet within the system.
Each drawer has a unique number, such as 0010 for drawer E in cabinet 0.
See also cabinet, drawer.
drawer password
See password.
DTM
See Data Transfer Module.
E
ECL
See Executive Control Language.
edit function
A function, such as SOE Update and Add Line, used to alter report lines.
empty report
A report that contains headings but no data.
encode
To transform a report into code using the Encode Report (ECR) run
statement, making it unreadable unless the correct key is specified. See also
decode.
F
fast access
A form of function or run requests that allows you to bypass the function
forms or menus. See also function form, menu.
FCS
See full character set.
FCSU
See full character set upper.
field
(1) A series of one or more columns of a report that are defined as an entity,
such as a status code or a shipping date. (2) A selection from a menu or a
position in a system message where data is entered (for example, the
Report field in a function form). (3) A defined part of a run statement
format. Fields are separated from one another by a space. See also subfield.
field headings
The column headings for report fields. These titles appear above each field
at the beginning of a report, immediately preceding the heading divider line.
Synonym for headings. See also heading divider line.
field label
A single alphabetic character that identifies a single field or several fields
for equations in mathematical functions or run statements. See also
constant label, value label.
field name
A name that identifies a field of a report. The name is derived either from
the two heading lines preceding the heading divider line of the report or
from report 0 if the entire drawer is being processed. See also heading
divider line, report 0.
Fieldata
A set of codes that define a character set. The Fieldata character set used in
MAPPER software is called limited character set (LCS). Contrast with
American Standard Code for Information Interchange, full character set.
See also character set, limited character set.
five-to-one output
Screen output produced by lines in a run that use control characters and
emphasis characters to control special editing and presentation effects. Five
lines in the run are used to define one line of output. Five-to-one output is
used with color displays; four-to-one output is used with monochrome
displays. See also control characters, four-to-one output.
flowchart
A diagram of procedures, subroutines, and branches used to plan a run.
form
A report containing screen control commands. See also screen control
commands.
format
(1) One of many variations of a report within a drawer (for example, basic
format, format 1, format 2, and so on), each of which displays a different
selection of columns of data in the report. The formats are defined in the
report 0 of that drawer. (2) The specific fields and subfields used in run
statements, which vary from one statement to another. See also report 0.
format lines
The lines in report 0 of a drawer that specify the report columns displayed
in many different report formats. See also drawer, format, report 0.
format sensitive
Pertaining to a run that processes a displayed report in a specific format.
The run must be registered as format sensitive. See also format.
four-to-one output
Screen output produced by lines in a run that use control characters and
emphasis characters for special editing and presentation effects. Four lines
in the run are used to define one line of output. Four-to-one output is used
with monochrome displays; five-to-one output is used with color displays.
See also control characters, five-to-one output.
freeform drawer
A drawer used for freeform reports. Drawer A is a freeform drawer
accessible from all cabinets in the system. See also drawer, freeform report.
freeform report
A report without a columnar structure determined by the report 0 of its
drawer. You can use freeform reports for memos, bulletins, run control
reports, or informal columnar reports. Contrast with column-formatted
report. See also report 0.
full character set (FCS)
The character set that allows uppercase and lowercase letters, stored
internally as ASCII characters. Contrast with Fieldata, limited character
set. See also American Standard Code for Information Interchange,
character set, full character set upper.
full character set upper (FCSU)
The set of ASCII codes in uppercase only. See also American Standard Code
for Information Interchange, character set, full character set.
function
An operation you perform on one or more reports or on a result. Examples
of functions are Match (MA), Search (S), or Sort.
function bar
An information bar at the bottom of the MAPPER active screen. The ten
key names correspond to the Fl to F10 function keys. See also function keys.
function call
See manual function call, run function call.
function form
A screen, resembling a menu, that contains fields in which you supply
information needed to perform a manual function. See also fast access,
menu.
function keys
The set of keys on your terminal keyboard (for example, Fl or F2)
programmed to perform operations when you press them. See also function
bar.
function mask
A screen of field headings for a report; you enter options above the field
headings and parameters below the headings as instructions for a manual
function. See also parameter.
G
granularity
A measurement used when allocating storage space to a mass storage file.
For example, the Element (ELT) statement assigns a file with a maximum
granularity of 262,143 tracks. See also mass storage file.
graphics primitive code
A set of commands that allows the MAPPER system to display charts on
different types of output devices. You can design your own graphics by
entering graphics primitive code in a freeform report. Graphics primitive
code can be stored in MAPPER reports. See also expanded syntax
commands, packed graphics primitive code, unpacked graphics primitive
code.
H
heading divider line
The line beginning with an asterisk and made up of equal signs and periods
that separates the field headings from the data; counted as one of the
heading lines. Many functions rely on the heading divider line to determine
where field headings end and data begins. See also field headings, field
name, heading lines.
heading lines
The lines including and following the date line that show the drawer letter
and report number, the names of fields, and the heading divider line.
Synonym for report headings.
headings
Synonymous with field headings.
HELP run
A MAPPER run that supplies online information about functions, run
statements, system messages, and other MAPPER operations. See also
online, run target.
Hollerith variable
A variable that can hold alphabetic, numeric, or special characters. See also
variable, variable type.
home position
The upper left corner of the screen.
horizontal operation
A computation performed in one or more fields across each data line in a
report. See also vertical operation.
HOST1100 run
A run residing on the host OS 1100 MAPPER System that controls data
transfer between the OS 1100 MAPPER System and the U Series MAPPER
System. See also INSTALL1100 run.
host computer
The computer that holds the database and software of a particular MAPPER
site. See also site configuration.
I
I/O
See input/output.
I/O request
A request for input from or output to system storage. Synonym for I/0.
IF/IHEN/ELSE statement
A conditional statement that controls further processing based on the value
of the expression in the IF: statement. If that expression is true, the
expression in the THEN: statement is processed. If the expression is false,
then the ELSE: expression is processed. See also Boolean logic, conditional
statement.
increment
To increase the numeric value of a variable by an integer amount.
INFOVIEW II
A sophisticated and flexible software tool that allows a workstation to
interface to a host computer. Your PC or B20 workstation uses
INFOVIEW II to access the A Series MAPPER System. See also B20
operating system.
initialize
To assign a type, size, and initial value to a variable. See also variable.
input edit code
A numeric code (0 through 9) in report 0 of each drawer specifying what
kind of data is allowed in each character position of the report. The person
designing the drawer enters the input edit codes on the input edit line of the
experimental report. See also report 0.
input/output (I/0)
(1) Information coming from or going to system storage. (2) An operation in
which the system reads data from or writes data to a peripheral device such
as a disk drive.
input parameters
The variables, literal data, reserved words, or any combination of these, to
be processed in a MAPPER run. See also literal representation, reserved
word, variable.
INSTALL1100 run
A run provided with the U Series MAPPER System that sends the complete
HOST1100 run to the OS 1100 MAPPER System and replaces the
temporary HOST1100 reception run. See also HOST1100 run.
integer
A whole number with no fraction or decimal part. For example, the
numbers 1 and 2.
integer variable
A variable that contains integer numbers. See also integer, variable.
interactive
Pertaining to a process that can take place during another process.
interim display
Information displayed on the screen for a given length of time; the run then
continues automatically.
internal subroutine
A subroutine within your run control report to which your run temporarily
transfers control. Contrast with external subroutine. See also abort routine,
error routine, subroutine.
issuing report
The report from which data is taken when using a run statement that
processes two reports, such as the Append Report (ADD) or Match (MCH)
run statements. Contrast with receiving report.
J
JDOE database
See demonstration database.
job
A group of one or more tasks, usually processed from and under the control
of a single program. A job is assigned a number by the system and treated
as a discrete unit of work by the computer.
justify
To position data within a field, variable, or report. For example, if data in a
field is left-justified, it begins in the leftmost column of that field.
K
Kanji characters
A character set used by several Asian languages, including Japanese and
Chinese.
known trailing substring
A substring in which you specify the starting character position and use the
remaining characters in the field. For example, V1(2-0) specifies the
substring beginning with the second character through the end of Vl.
Contrast with unknown trailing substring. See also substring.
L
label
(1) A number, preceded by an at sign (@) and followed by a colon ( : ), used to
identify a run statement line. Labels organize sections within a run,
allowing branching. (2) A name for a data value in an arithmetic expression.
See also branch, label table definition lines.
label table definition lines
The lines at the beginning of a run that indicate the location of each label in
the run. See also label.
LCS
See limited character set.
limited character set (LCS)
The character set that allows uppercase letters only, stored internally as
Fieldata characters. Contrast with American Standard Code for Information
Interchange, full character set. See also character set, Fieldata.
line 0
The first line of a report, never visible on the screen, containing system
information about the report: the drawer letter, report number, write
password, read password, number of heading lines, language of the report,
and number of lines of the report. This information is stored with the report
and can be displayed with the Line Zero (12) function or LZR run statement.
line 1
Synonymous with date line.
line type
A type of data line in the MAPPER database, specified by a line type
designator in column 1. See also data line, line type designator.
line type designator
A character in column 1 of a report line that specifies the line type. There
are four designators, indicating four line types: tab (0) — column-formatted,
edited line (0 represents a tab character); asterisk (*) — column-formatted,
nonedited line; period ( . ) — comment, nonedited line; and special (any valid
character) — column-formatted edited line (may not start with a tab
character, asterisk, or period). See also line type.
literal representation
The explicit and actual value of an item; information is interpreted exactly
as it appears. For example, the literal representation of variable V11 is the
characters V11, not the value that the variable holds.
LLP
See logic lines processed.
load
To initialize a variable with a value.
log list
Synonymous with accounting log.
log on
To access the A Series system by entering information that identifies you to
the system. This data includes a valid usercode, password, and accesscode.
Note that this is not the same as sign on, which is a procedure used to access
the MAPPER system. See also accesscode, usercode.
logic lines processed (LLP)
The lines in a run control report processed during run execution. Each scan
of a line counts as one LLP. See also run control report.
logic scan
The processing of each run statement line by the MAPPER system during
execution of a run. See also run statement line.
logo
See active screen, sign-on screen.
loop
A sequence of run statements that execute repeatedly until a specified
condition is met.
M
manual function
A MAPPER software command, such as Search (S) or Totalize (TOT).
manual function call
The abbreviation used to request a function (for example, LOC for the
Locate function).
MAPER files
OS 1100 mass storage files that make up the system database.
MAPPER application
A set of related tasks accomplished by one or more runs and the database
processed, for example, an inventory system. See also distributed MAPPER
application.
MAPPER calculator
See calculator.
MAPPER format
The arrangement of data in a native system file that has a fixed line length
and contains a transparent line 0, line numbers, and end-of-line control
characters. The last line is the visible end report line.
MAPPER site
See site.
MAPPER software
The multiactivity real-time program that creates an end-user environment
for file management and report generation. See also MAPPER system.
MAPPER system
A file management system that allows the user to maintain and manipulate
a large amount of data in a report-structured database.
MAPPER system coordinator
The person who manages the database of the MAPPER system. This person
configures the system, registers new users and new or updated runs, and
coordinates the system user group.
MAPPER system logo
See active screen, sign-on screen.
MAPPER system operator
The person responsible for daily operations including mounting recovery
tapes, performing the purge and cycle/merge processes, starting the
MAPPER system, and executing the PREMAP or PRESTR runstreams. The
system operator's responsibilities are specifically defined at each site.
MARC
See Menu-Assisted Resource Control.
mass storage
Peripheral devices that can store large amounts of data. See also peripheral
device.
mass storage file
A file used as a secondary storage device that provides current report
information on a specific program segment.
MCS
See message control system.
menu
A list of items on a screen from which one item can be selected, either by
tabbing to the selection and transmitting, or by typing in a letter, number,
or character string, and then transmitting. See also fast access.
Menu-Assisted Resource Control (MARC)
A menu-driven interface and transaction processor for users and operators
of Unisys A Series systems.
menu procedure
The method of executing a function in which you select the function from a
menu. Contrast with control line procedure. See also menu.
message control system (MCS)
A program that controls the flow of messages between workstations,
application programs, and the operating system. See also Command and
Edit language, Communications Management System.
message wait signal
A signal indicating that your workstation has a incoming message. When a
message wait signal occurs, MSG is displayed at the upper right corner of
the screen and the terminal beeper sounds. You press the Message key to
display the incoming message.
multiple field label
A label that identifies more than one report field when using mathematical
functions or run statements. Contrast with single field label.
N
named report
A report that has been named using the NAME run. For example,
report 6B0 could have a name of Inventory.
named variable
A variable that is designated by a name rather than by a number. Greater
than and less than characters are placed before and after the name, for
example, <sum>. Contrast with numbered variable. See also variable.
nested statement
A run statement contained within another run statement. See also run
statement.
nested subroutine
An internal subroutine referenced by another subroutine. Note that
external subroutines cannot be nested. See also external subroutine,
internal subroutine, subroutine.
NEWUSER database
See demonstration database.
nontab line
Synonomous with special line.
null
A blank character (not 0 and not a space) used to fill data lines.
numbered variable
A variable that is designated by the letter V followed by a number; for
example, vl. Contrast with named variable. See also variable.
0
object code file
The executable code produced by a compiler.
online
Pertaining to the availability of a process or operation while another is in
progress. For example, while using the Sort function, you may access online
HELP.
operating system (OS)
A collection of computer programs that control the operation of a computer
and peripherals.
operator
(1) A MAPPER system operator. (2) A symbol that specifies a calculation or
comparison to be performed in a function such as Calculate (CAL). See also
arithmetic operator, relational operator.
operator display terminal (ODT)
The system console device that allows the operator to enter commands
directly to the operating system to perform various functions.
option
A selection that you can make for special operation of a manual function or
run statement. If no option is used, the default operation occurs.
organization chart
A chart created with the Generate Organization Chart (GOC) function or
run statement that shows how a company or other organization is
structured.
OS 1100
See Executive system, operating system.
output area
A scratchpad or storage area used in a run that temporarily stores data
collected during run execution. See also output lines.
output lines
The lines in a run control report that do not start with at signs (@) or
colons ( : ). Output lines are placed in the output area and can be displayed
when the run terminates. They can also be placed in a result by using the
Break (BRK) or Break Graphics (BRG) statement and can be displayed or
processed at any time during the run. See also output area, result.
P
pack
To eliminate leading and trailing spaces from a value held by a variable. See
also disk pack, pack family.
pack family
A disk or a collection of disk packs on which physical files are stored. It is
given a name of up to 17 alphanumeric characters assigned during
installation and is generally designated for specific applications and users.
See also disk pack.
packed graphics primitive code
One format for graphics primitive code in a result or report. In this format,
the commands are strung together, not separated by spaces or other
characters. Contrast with unpacked graphics primitive code. See also
graphics primitive code.
packed variable
A variable in which the leading and trailing spaces have been deleted.
See also variable.
paragraph
A group of data lines starting at either the type of line you are processing or
the type of line specified with the Search U option. This includes
subsequent lines up to, but not including, the next occurrence of the type of
line processed or specified. See also data unit, line type.
parameter
An item of information supplied to a run statement to indicate specific
values or fields to process. See also argument.
password
A character string used as a security feature to prevent unauthorized access
to information on the MAPPER system. There are five kinds of passwords:
the sign-on password restricts access to the MAPPER system; the write
password restricts updates to reports; the read password restricts users
from reading a report; the drawer password restricts access to specific
drawers within a cabinet; and the cabinet password restricts access to a
specific cabinet. See also user registration.
path
The logical course or line of direction taken by the system in the execution of
a run or part of a run.
path name
The complete UNIX file identifier, including all directories, subdirectories,
and the file name.
period line
A line beginning with a period in column 1; it can be used as a comment line.
It is not controlled by the tab positions and input edit codes of report 0. It
cannot be shifted, it is limited to the screen display size, and it cannot be
displayed or processed in different formats. See also line type, save flag.
peripheral device
Any data communications or input device attached to a terminal or host
computer. For example, an AUX printer is a peripheral device attached to a
terminal; a modem is a peripheral device attached to the host computer. See
also auxiliary device.
predefined lines
The lines in report 0 that contain tab positions, preset data, or reserved
words. Each report 0 can have multiple predefined lines for which you can
specify data or values that automatically appear when a new line is added to
a report. These are data lines that have certain fields already filled in for
permanent unchanged data and other fields left blank for entering
changeable data. See also data line, report 0.
primitive graphics code
See graphics primitive code.
protected field
An area of a display terminal screen from which no input is accepted; the
user cannot place the cursor within the area. Protected fields are defined by
control characters using the Output (OUT) run statement. See also control
characters.
Q
queue
To send output to an auxiliary device. For example, a report can be queued
to a printer. See also requeue.
R
read password
See password.
receiving label
A name or alphabetic field label into which the result of a MAPPER
operation is stored. For example, a generated count of records in a report
could be assigned to the COUNT receiving label.
receiving report
The report to which data is sent when using a manual function or run
statement that processes two reports, such as the Append Report (ADD) or
Match (MCH) run statements. Contrast with issuing report.
receiving variable
The first variable in an equation and the variable that contains the result of
a calculation.
registration
A procedure done by the MAPPER system coordinator to add new users or
runs to the system.
relational expression
A sequence of operands and relational operators used to compare values or
character strings. When evaluated, it produces a value of 1 if the
comparison is true or 0 if the comparison is false. See also Boolean logic,
expression, relational operator.
relational operator
A special character used to compare values, such as =, >, <=, >=, or <>
(equal to, greater than, less than, less than or equal to, greater than or equal
to, and not equal to). See also Boolean logic, expression, relational
expression.
relative line number
A line number specified by indicating the number of lines following or
preceding the current line in a run control report. See also run control
report.
remote file
A data communications file associated with any remote device attached to
the system by way of a network communications processor. An object
program that receives data from one or more remote devices and sends data
to those devices regards the devices as a remote file.
remote run
A run that starts a run on another MAPPER system.
renamed result
A temporary result made by using the Rename (RNM) run statement to
rename the current result (-0); for example, result -0 can be renamed to -1.
These results are lost when the run ends or the terminal is released.
See also current result, result, temporary result.
replacement string
A string of characters with which to replace the target string. See also target
string.
report
The set of data that you work with in the MAPPER system. Reports are
identified either by a unique report number or by a meaningful name you
have given the report using the NAME run. See also report name.
report headings
Synonymous with heading lines.
report identifier (RID)
A specific report identified by a unique report number and drawer letter.
For example, RID 2B refers to report 2 in drawer B.
report name
The characters used to refer to a report: either the report number and
drawer letter or a meaningful name you have given the report using the
NAME run. See also report.
report 0
A report that resides in each drawer in the MAPPER system. It serves as a
template for the reports in its drawer when the Add Report function or run
statement is used. See also drawer, format, function mask.
requeue
To send output already queued to an auxiliary device that failed to print the
first time. See also queue.
reserved word
A character string reserved for specific use. The system supplies the
information stored in the reserved word. For example, DATE1$ is a
reserved word that supplies the current date in the format YYMMDD.
restricted access function
A function requiring special permission from the MAPPER system
coordinator before it can be used. Applies to functions that require
advanced knowledge of MAPPER software or the operating system.
result
A temporary copy of data obtained by executing a manual function or run. It
is held in scratch storage until released, duplicated, or replaced into a
permanent report. See also current result, renamed result, temporary
result.
resume
To continue a function or run that was halted by a display. Press Resume
to resume an operation.
retrieve
To bring a MAPPER report that has been filed into a native file back into
the MAPPER database.
reverse slant
A special character ( \ ) used to indicate that a run statement continues on
the next line.
reverse video
Pertaining to highlighting on a screen where the background and character
colors are reversed.
RID
See report identifier.
roll
To move vertically through the data in a report; to move a report forward or
backward on the screen.
run
A series of instructions (run statements) stored in a run control report that
the MAPPER system interprets to produce a report or perform other tasks,
such as updating reports. See also run control report, run statement.
run call
Synonymous with run name.
run control report
A MAPPER report containing sequential run statements of step-by-step
instructions for processing reports, results, or other data. See also run, run
statement.
S
save flag
A date you place on line 2 starting at column 2 of a MAPPER report to
prevent the report from being deleted before or on the date specified. Line 2
must be a period line in order to contain a save flag. Use the format
@YYMMDD. See also period line.
screen control commands
A set of commands, used with the Screen Control (SC) statement, that
perform basic screen operations, which include positioning the cursor,
clearing the screen, defining fields, and defining screen attributes. These
screen commands can also be used to design reports that define fields, box
data in a specified area, and map function keys. See also form.
search information lines
The lines displayed at the top of a result, showing how many lines were
found by the search, the total number of lines searched, and the search
parameters.
semicolon
(1) A special character ( ; ) used in run statements as field delimiters. (2) A
special character used in Arithmetic (ART) and Calculate (CAL) statements
to separate expressions. (3) A special character used in IF: statements to
control more than one decision on the same line.
sign off
To terminate MAPPER software at your terminal. The sign-on screen
appears on the screen. Contrast with sign on. See also sign-on screen.
sign on
To initiate MAPPER software at your terminal by entering data that
identifies you to the system. This data includes your user-id, department
number, and password (if applicable). The active screen appears on your
screen. Contrast with sign off. See also active screen.
sign-on cabinet
The cabinet a user enters automatically when signing on to the MAPPER
system and in which the user primarily works. It is set by the MAPPER
system coordinator as part of user registration. See also user registration.
sign-on password
See password.
sign-on screen
The screen you see before signing on to the MAPPER system. It shows your
system name, your station number, and the level of MAPPER software. The
word Idle in your sign-on screen shows your station is inactive. Contrast
with active screen. See also sign off.
single field label
A label that identifies one report field when using equations in
mathematical functions and run statements. Contrast with multiple field
label.
site
MAPPER software can support multiple databases referred to as sites. See
also default MAPPER site.
site configuration
The devices (terminals, printers, or other MAPPER systems) connected to
the host computer. See also host computer.
site letter
An alphabetic designator assigned to each MAPPER system.
slant
A special character ( / ) used to separate multiple parameters in a run
statement.
SOE
See start-of-entry character.
special characters
The set of characters (such as I and *) on your keyboard that are not
alphabetic or numeric characters.
special line
A line starting with any character except tab, asterisk, or period. It acts as a
tab line although an alphabetic or numeric character appears in column 1.
Synonym for nontab line. See also line type, line type designator, tab line.
stack
A data structure that stores variables on a last-in/first-out basis. As data is
added, the stack moves down, with the last item added taking the top
position. You can save (PSH), restore (PEK), restore and remove (POP),
replace (POK), remove (RMV), and exchange (XCH) items from the stack.
start-of-entry (SOE) character
The character represented on the screen by this symbol: •. It is used with
the SOE Update function and other edit functions. See also edit function.
statement
See run statement.
station
A terminal, workstation, or PC on the MAPPER system.
station number
The unique identifier for your terminal on the MAPPER system.
station sign-on screen
See sign-on screen.
string
See character string.
string variable
A variable that can contain up to 256 alphabetic, numeric, and special
characters. See also variable, variable type.
subcumulation
To cumulate using the Totalize (TOT) run statement until a key field value
changes so that the result yields two result fields. See also cumulation.
subfield
A part of a run statement field. For example, i t yp is a subfield of the
I t yp,p field. Subfields are separated by a comma. See also field.
subroutine
A subset of a run that contains run statements performing a specific task
within the run. See also abort routine, error routine, external subroutine,
internal subroutine.
substring
A subset of characters within a character string. See also character string.
subtotal
A sum of data for groups of related lines.
system coordinator
See MAPPER system coordinator.
system directory
Reports that contain data names for cabinets, drawers, and reports. These
are updated using the NAME run when adding, changing, or deleting a data
name. See also data name.
system message
A message the MAPPER system displays on the top line of the screen to
alert you to a possible or actual problem.
system logo
See active screen, sign-on screen.
T
tab
To move the cursor from one tab character position to another.
tab character
(1) A special character in MAPPER reports indicating a tab position on the
screen. In this manual, a tab character on the screen is usually represented
by a vertical bar ( I ) or center dot (•) but may be configured for your
terminal as another character. (2) A special character used to specify tab
lines. In this manual, a tab character is represented by a quadrate (Q.
tab line
A line beginning with a tab character, usually a data line. It is controlled by
the tab positions and input edit codes of report 0 and can extend up to 256
characters. See also input edit code, line type, line type designator, report 0.
target list
(1) A list of function calls in the HELP run. (2) A list of target words in an
issuing report or list of words specified when you execute a function. The
Word Locate (WL) and Word Change (WC) functions and run statements
use target lists. See also HELP run, issuing report.
target string
The character string to be located or changed by a MAPPER function or run
statement. See also character string, replacement string.
temporary result
A result created by a MAPPER function and given a new name using the
Rename (RNM) run statement. The current result (-0) is renamed to -1, -2,
and so on. A temporary result is released when the run ends. See also
current result, renamed result, result.
time format
A format that defines how a time is to be displayed; for example, HHMMSS
displays a time as 121500.
U
Universal Terminal System (UTS)
A family of terminals and related hardware, for example, UTS 400.
UNIX
The operating system for the host computer that supports the U Series
MAPPER System.
unknown trailing substring
A substring in which you specify the number of ending characters to use,
regardless of the specific starting character position. For example, V1(0-2)
specifies the last two characters of Vl. Contrast with known trailing
substring. See also substring.
unpacked graphics primitive code
One format for graphics primitive code in a result or report. In this format,
each command is on a separate line. Contrast with packed graphics
primitive code. See also graphics primitive code.
update control
The ability of MAPPER software to guarantee that only one user at a time
may be updating a given report.
update password
See password.
update result
A result that can be used to replace or delete lines in the original report
from which it was produced. See also result.
user input
Any information you are instructed to type. In this manual it is shown in
color and in lowercase letters.
user registration
The process by which the MAPPER system coordinator enters into the user
registration report a user-id, sign-on password, sign-on department number,
sign-on language, and sign-on cabinet for each user. See also department,
password, sign-on cabinet, user-id.
user-id
A unique code assigned to each MAPPER software user for security reasons.
User-ids are set up by the MAPPER system coordinator to allow access to
certain functions and runs. See also user registration.
usercode
An identification code used to establish user identity on the A Series system,
control security, and provide for segregation of files. See also log on.
UTS
See Universal Terminal System.
V
value label
A name of up to six characters that identifies a single numeric or text value
in mathematical functions or run statements. See also constant label, field
label.
variable
A labeled entity (for example, V11 or <finds>) that can assume different
values. Values can be assigned by the user or by MAPPER software.
See also variable type.
variable table
A table created at the end of a run control report displaying the location of
all variables in your run control report. You create a variable table with the
Build Variable Table (BVT) run. See also run control report.
variable type
One of five types of variables. Each variable type specifies the kind of data
the variable may hold. See also alphanumeric variable, Hollerith variable,
integer variable, string variable, variable.
vertical bar
A special character ( I ) that represents a tab character in MAPPER reports.
On some terminals, the tab character appears as a space. See also tab
character.
vertical operation
A summary calculation (for example, sum or average) performed on a single
field across all data lines. See also horizontal operation.
vertical operator
A special character (such as + or /) that identifies the type of arithmetic
operation to be performed on all values in a specified field.
vertical summation
The process of adding fields of data in a report and listing the totals at the
end of the result. It is used with the Totalize (TOT) run statement.
w
WFL
See work flow language.
word processing
A group of functions that process text to create documents, memos, and
other kinds of reports containing textual data.
work flow language (WFL)
(1) A language used for constructing jobs that compile and run programs.
WFL includes variables, expressions, and flow-of-control statements that
offer the programmer a wide range of capabilities with regard to task
control. (2) A language used to write jobs that control the flow of programs
and tasks on the operating system.
write password
See password.
A arithmetic
and trigonometric functions, 7-27,
A Series file 7-52
creating, 7-125 computations (See calculations),
retrieving, 7-261 7-23
A Series programs, executing, 7-28 expressions, formulating, 7-24
A Series Run (ASR) statement, 7-28 operations, priority of, 7-24, 7-50
abort routines, registering, 7-235 operators, 7-24
Acknowledge Message (OK) statement, using CHG, 7-69
7-205 Arithmetic (ART) statement, 4-15,
ADD (Append Report) statement (See 7-23
HELP,@ADD in the online array
help system) definition, 4-2
ADR (Add Report) statement (See handling, 7-166
HELP,@ADR in the online help passing, 4-24
system) ART (Arithmetic) statement, 4-15,
analysis, run 7-23
by the MAPPER system coordinator, ASCII, list of characters, D-2
6-3 ASR (A Series Run) statement, 7-28
guidelines for, 6-14 assistance, obtaining, 5-2
using RUNA run for, 5-19 asterisk line, C-2
AND operation, 7-51 ATT command (SC), 7-291
apostrophe ( ' ), use of in run attribute
statements, 2-16 commands, field, 7-290
Application Power Tools (APT), 5-6, parameters, 7-304
5-8 using inline, 7-306
applications AUX (Auxiliary) statement, 7-31
developing source-protected, F-1 auxiliary devices, 7-31
interfacing other, 7-18 averages (See calculations)
AREA command (SC), 7-300 AXDRW$, 7-235, 7-258
devices drawers
auxiliary, 7-31 indexing reports in, 7-141, 7-148
cassette (OS 1100), 7-31 naming, 3-2
diskette (OS 1100), 7-31 obtaining information about, 7-102
handling, 7-17 DRW (Drawer) statement, 7-102
DFLD (Define Field) command (SC), DSF (Display Form) statement, 7-320
7-298 DSG (Display Graphics) statement
DFU (Defer Updates) statement (See (See HELP,@DSG in the online
HELP,@DFU in the online help system)
help system) DSM (Display Message) statement,
differences among systems, how they 7-104
are shown in this manual, vii DSP (Display Report) statement,
DIR (Directory) statement, 7-100 7-107
DIS (Diskette) statement (See DSPFORM action, 7-318
HELP,@DIS in the online help DSPHELP action (SC), 7-316
system) DUP (Duplicate Report) statement
Display Message (DSM) statement, (See HELP,@DUP in the online
7-104 help system)
Display Report (DSP) statement, DVS (Define Variable Size) statement,
7-107 3-7, 7-110
distributed data processing, 7-18,
7-194
DLL (Downline Load) statement (See
E
HELP,@DLL in the online help ECR (Encode Report) statement,
system) 7-112
DLR (Delete Report) statement (See editing operations, in SC, 7-289
HELP,@DLR in the online help efficiency considerations
system) in data naming, 3-8
documentation, obtaining a list of using RUNA run to point out, 5-19
available, xv when writing runs, 6-13
dot ( - ), use of as tab character, vii EL- (Element Delete) statement,
DPUR (DDP Purge) statement (See 7-115
HELP,@DPUR in the online elements
help system) creating, 7-117
deleting, 7-115
retrieving, 7-263
ELT (Element) statement, 7-117 FCSU (full character set upper), D-9
EMP (Emphasis) command (SC), FDR (Find and Read Line) statement,
7-308 7-121
emphasis field attribute commands, 7-290
characters in OUT, 7-227 field definitions, how they work in SC,
commands in SC, 7-308 7-302
controlling, 7-221 field names
protection parameter, 7-305 converting to, 3-8
Encode Report (ECR) statement, in variables, 3-6, 7-176
7-112 Fieldata characters, D-5
END command (SC), 7-313 fields
entry count abbreviations defined for, A-12
using BFN, 7-35 attribute parameters for, 7-304
using CNT, 7-78, 7-82 creating border for, 7-293, 7-298,
equation delimiter, 2-15 7-301
error handling, 1-5, 6-8, 7-342 defining
error routines, registering, 6-9, 7-258 characteristics of, 7-298
ESR (Exit Subroutine) statement (See size of, 3-7
HELP,@ESR in the online help displaying column-counts for, 5-11
system) format for, 3-5
Execute (XQT) statement, 7-360 generating on screen, 7-293
Exit MAPPER System (XUN) justifying values in, 7-48
statement, 7-363 moving, 7-343, 7-347
expressions, formulating arithmetic, named (SC), 7-302
7-24 naming partial, 3-6
EXT (Extract) statement (See reordering in results, 7-80
HELP,@EXT in the online help selecting for display, 3-8, 7-131
system) separating in run statements, 2-5
unnamed (SC), 7-302
F using named, 3-4
FIL (Create File) statement, 7-125
FCC run, 5-11 files
FCH (Relational Aggregate Fetch) creating, 7-117, 7-125
statement (See HELP,@FCH deleting (OS 1100), 7-115
in the online help system) retrieving, 7-261, 7-263
FCS (full character set), D-9
H i
IBFN run, 7-39
Hash (HSH) statement, 7-140
hash value, assigning, 7-140 IBM start requirements, 7-342
ICAL run, 7-54
heading
$ICML$ data control command,
divider line, used in data naming,
(table) C-2
3-4
ICNT run, 7-84
lines, eliminating, 6-15
icon, use of in this document, vii
including in output area, 6-17
headings, displaying function mask ICVAR$, capturing data from the
control line using, 4-32, 7-65
with, 7-209
IDAT run, 7-90
HELP identifier (SC), 7-317
HELP run, 5-2 IDU (Index User) statement, 7-141
IF (If Conditional) statement, 4-17,
help, displaying context-sensitive (SC),
6-10, 7-143
7-316, 7-317
$IFFL$ data control command,
hexadecimal codes, D-2
HOF (Host Sign-off) statement (See (table) C-2
HELP,@HOF in the online IFND run, 7-137
INC (Increment Variable) statement
help system)
(See HELP,@INC in the online
help system)
LN+ (Add Line) statement (See Load Variable Array (LDA) statement,
HELP,@LN+ in the online help 7-166
system) LOC (Locate) statement, 7-180
LN- (Delete Line) statement (See Local Code (*cmd) statement, 7-364,
HELP,@LN- in the online help G-1
system) Locate and Change (LCH) statement,
LNA (Append Line) statement (See 7-155
HELP,@LNA in the online help Locate and Change Variable (LCV)
system) statement, 4-17, 7-158
LNG (Language) statement (See lock, update, obtaining, 7-189, 7-284
HELP,@LNG in the online LOG (Log for Analysis) statement (See
help system) HELP,@LOG in the online help
LNI (Insert Line) statement (See system)
HELP,@LNI in the online help logic
system) controlling, 7-14
LNK (Link to Another Run) statement, guidelines for improving, 6-17
7-178 using in run design, 6-10, 7-143
LNM (Move Line) statement (See logical operators, 7-51
HELP,@LNM in the online LOK (Update Lock) statement (See
help system) HELP,@LOK in the online help
LNP (Put Line) statement (See system)
HELP,@LNP in the online help LSM (Load System Message)
system) statement, 7-183
LNX (Duplicate Line) statement (See LZR (Line Zero) statement, 7-184
HELP,@LNX in the online help
system)
LNY (Yank Line) statement (See
M
HELP,@LNY in the online help M characteristics, 7-222
system) MAPPER system, remote
Load Field Name (LFN) statement, interfacing other, 7-18
3-8, 7-176 sending reports to, 7-203
Load Format Characters (LFC), 7-175 signing off, 7-196
Load System Message (LSM), 7-183 signing on to, 7-194
Load Variable (LDV) statement, 4-11, transferring
4-15, 7-169 data to, 7-197, 7-198
run statements to, 7-200
passwords Q
read, 7-270 QCTL (Queue Control) statement (See
write, 7-358 HELP,@QCTL in the online
PEK (Peek Variables) statement (See help system)
HELP,@PEK in the online help QREL (Release Message) statement
system) (See HELP,@QREL in the
percentages (See calculations) online help system)
performance, guidelines for improving QRSP (Send Response Message)
run (See efficiency considerations) statement (See HELP,@QRSP
period line, C-2 in the online help system)
PNT (Refresh Screen) statement (See QSND (Send Message, No Response)
HELP,@PNT in the online help statement (See HELP,@QSND
system) in the online help system)
POK (Poke Variables) statement (See QSNR (Send Message, Expect
HELP,@POK in the online help Response) statement (See
system) HELP,@QSNR in the online
POP (Pop Variables) statement (See help system)
HELP,@POP in the online help
quadrate (0), symbol for, vii
system)
populations, calculating, 7-83
predefined constants, using, 4-39, 6-3 R
PREP command (SC), 7-297 RAM (Relational Aggregate Modify)
Print (PRT) statement, 7-232
statement (See HELP,@RAM
printing in the online help system)
reports and results, 7-31, 7-232 RAR (Register Abort Routine)
statements available for, 7-13 statement, 7-235, F-2
priority of arithmetic operations, 7-24, RDB (Run Debug) statement, 6-9,
7-50 7-238
programs, executing, 7-28 RDB (Run Debug) statement:
prompt line, displaying with SC, 7-296 OS 1100, 7-244
protected fields, 7-216 RDC (Read Continuous) statement,
PRT (Print) statement, 7-232 7-250
PSH (Push Variables) statement (See RDL (Read Line) statement, 7-254
HELP,@PSH in the online help Read Line Next (RLN) statement,
system) 7-267
variables (cont.) w
locating strings in, 7-158 WAT (Wait) statement, 7-356
manipulating, 6-12, 7-13, 7-58 WDC (Word Change) statement (See
maximum number allowed, 4-22 HELP,@WDC in the online
maximum number of characters help system)
used in, registering, 4-23 WDL (Word Locate) statement (See
monitoring, 7-239, 7-246 HELP,@WDL in the online
naming, 4-4 help system)
numbered, 4-4 work flow language (WFL) jobs,
octal (OS 1100), 7-70 7-340
packing, 7-172 WPR (Word Process) statement (See
passing arrays, 4-24 HELP,@WPR in the online
performing arithmetic on help system)
dates/times in, 7-91 write passwords, 7-358
redefining, 4-11, 7-68, 7-169 WRL (Write Line) statement, 7-358
setting another with same contents,
7-97
stacking, 7-167 X
string space limit in (OS 1100), XCH (Exchange Variables) statement
4-23, 4-24
(See HELP,@XCH in the online
substrings (See substrings) help system)
subtraction using, 7-69 XDRW$, 7-235, 7-258
testing contents of, 4-17, 7-97 )(ERRS, 7-258
types and sizes, 4-6, 4-9 )(FUNS, 7-235, 7-259
using contents to act as name or XIT (Sign off MAPPER Software)
number of, 4-13 statement (See HELP,@XIT in
using in run statements, 4-12 the online help system)
using named and numbered XLINE$, 7-235, 7-259
(OS 1100), 4-5 XQT (Execute) statement, 7-360
using scientific notation in, 4-14
XRPTS, 7-236, 7-259
using the stack, 4-24 XUN (Exit MAPPER System)
variance, calculating, 7-83 statement, 7-363
vertical bar (I), use of as tab character,
vii
0, meaning of, vi
\ (reverse slant), use of in run
statements, 2-15
0, meaning of, vi
' (apostrophe), use of in run
statements, 2-16
/ (slant), use of in run statement, 2-14
; (semicolon), use of in run statements,
2-15
I (vertical bar), use of as tab character,
vii
A (delta), use of as space character, vii
0 (quadrate), symbol for, vii
•(center dot), use of as tab character,
vii
Unisys Corporation is interested in your comments and suggestions regarding this manual. We will use them to
improve the quality of your Product Information. Please check type of suggestion:
❑ Addition ❑ Deletion ❑ Revision ❑ Error
Comments
Name
Title company
Telephone Number
Unisys Corporation is interested in your comments and suggestions regarding this manual. We will use them to
improve the quality of your Product Information. Please check type of suggestion:
❑ Addition ❑ Deletion ❑ Revision ❑ Error
Comments
Name
Title Company
Telephone Number
NO POSTAGE
NECESSARY
IF MAILED
IN THE
UNITED STATES
Unisys Corporation
Attn: MAPPER® Product Information
P.O. Box 64942 M.S.: 4792
St. Paul, MN 55164-0942 USA
NO POSTAGE
NECESSARY
IF MAILED
IN THE
UNITED STATES
Unisys Corporation
Attn: MAPPER® Product Information
P.O. Box 64942 M.S.: 4792
St. Paul, MN 55164-0942 USA
I I I IIIIIII III I I I I
78319274-000