Professional Documents
Culture Documents
ROSCOE - B001622e - Extended Development Tools Guide
ROSCOE - B001622e - Extended Development Tools Guide
Interactive Environment
This Documentation may not be copied, transferred, reproduced, disclosed, modified or duplicated, in whole or in
part, without the prior written consent of CA. This Documentation is confidential and proprietary information of CA
and protected by the copyright laws of the United States and international treaties.
Notwithstanding the foregoing, licensed users may print a reasonable number of copies of the documentation for
their own internal use, and may make one copy of the related software as reasonably required for back-up and
disaster recovery purposes, provided that all CA copyright notices and legends are affixed to each reproduced copy.
Only authorized employees, consultants, or agents of the user who are bound by the provisions of the license for
the product are permitted to have access to such copies.
The right to print copies of the documentation and to make a copy of the related software is limited to the period
during which the applicable license for the Product remains in full force and effect. Should the license terminate for
any reason, it shall be the user’s responsibility to certify in writing to CA that all copies and partial copies of the
Documentation have been returned to CA or destroyed.
EXCEPT AS OTHERWISE STATED IN THE APPLICABLE LICENSE AGREEMENT, TO THE EXTENT PERMITTED BY
APPLICABLE LAW, CA PROVIDES THIS DOCUMENTATION “AS IS” WITHOUT WARRANTY OF ANY KIND, INCLUDING
WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
OR NONINFRINGEMENT. IN NO EVENT WILL CA BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY
LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS DOCUMENTATION, INCLUDING WITHOUT
LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF CA IS EXPRESSLY
ADVISED OF SUCH LOSS OR DAMAGE.
The use of any product referenced in the Documentation is governed by the end user’s applicable license
agreement.
Provided with “Restricted Rights.” Use, duplication or disclosure by the United States Government is subject to the
restrictions set forth in FAR Sections 12.212, 52.227-14, and 52.227-19(c)(1) - (2) and DFARS Section 252.227-
7014(b)(3), as applicable, or their successors.
All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.
Part II.Sketch
Contents iii
5.2.1 Macro and Field Definitions . . . . . . . . . . . . . . . . . . . . . 5-12
5.2.2 Painting the Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
5.2.2.1 Designing a New Map . . . . . . . . . . . . . . . . . . . . . . 5-12
5.2.2.2 Designing a New Map Using an Existing Map or RPF Panel 5-13
5.2.2.3 Modifying a Map . . . . . . . . . . . . . . . . . . . . . . . . . 5-14
5.2.2.4 Using PF Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14
5.2.2.5 Using Line Commands . . . . . . . . . . . . . . . . . . . . . . 5-14
5.2.3 Review Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15
5.2.4 Field Detail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16
5.2.4.1 Modifying Fields . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16
5.2.4.2 Positioning Panel . . . . . . . . . . . . . . . . . . . . . . . . . 5-17
5.3 Generate Macro - Option 3 . . . . . . . . . . . . . . . . . . . . . . . . . 5-18
5.4 BMS Copybook Generation - Option 4 . . . . . . . . . . . . . . . . . . 5-20
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X-1
CHAPTER DESCRIPTION
Part I, ETSO Application Programming Interface
1 Describes ETSO and how to use the Application
Programming Interface.
2 Presents an assortment of programming considerations
applicable to any program that is run under ETSO.
3 Contains examples of Assembler, COBOL and PL/I
programs using the Application Programming Interface.
Part II, SKETCH
4 Introduces SKETCH and the facilities it provides.
5 Describes how to use SKETCH to generate BMS (Basic
Mapping Support) macros that define panels to CICS
applications.
6 Describes how to use SKETCH to generate MFS (Message
Format Services) statements that define panels to IMS
applications.
7 Describes SKETCH customization considerations.
Title Contents
Advantage CA-Earl Reference Guide Contains detailed information about
Advantage CA-Earl statements,
parameters, and coding rules. Also
explains the Advantage CA-Earl
Reporting Service.
Advantage CA-Earl User Guide Designed for users interested in
learning about Advantage CA-Earl. It
presents an introduction to
Advantage CA-Earl features and
capabilities.
Advantage CA-Earl Systems Lists the installation options for
Programmer Guide Advantage CA-Earl and instructions
for modifying them. Also describes
size requirements and program
execution.
Advantage CA-Earl Examples Guide Contains sample programs that show
a variety of common applications.
COMMAND
Required parameters appear on the same horizontal line (the main path of the
diagram) as the command or statement. The parameters must be separated by
one or more blanks.
Where you see a vertical list of parameters as shown in the following example,
you must choose one of the parameters. This indicates that one entry is
required and only one of the displayed parameters is allowed in the statement.
You can choose one of the parameters from the vertical list, such as in the
following examples:
COMMAND PARM1
COMMAND PARM2
COMMAND PARM3
If you specify the command, you must write one of the following:
A single optional parameter appears below the horizontal line that marks the
main path.
Optional Parameter
──COMMAND──┬───────────┬──────────────────────────────────────
└─PARAMETER─┘
You can choose (or not) to use the optional parameter, as shown in the
following examples:
COMMAND
COMMAND PARAMETER
If you have a choice of more than one optional parameter, the parameters
appear in a vertical list below the main path.
You can choose any of the parameters from the vertical list, or you can write
the statement without an optional parameter, such as in the following
examples:
COMMAND
COMMAND PARM1
COMMAND PARM2
COMMAND VALUEX
COMMAND VALUEX VALUEY
COMMAND VALUEX VALUEX VALUEZ
If the repeat symbol contains punctuation such as a comma, you must separate
multiple parameters with the punctuation. The following example includes the
repeat symbol, a comma, and parentheses.
COMMAND (VALUEC)
COMMAND (VALUEB,VALUEC)
COMMAND (VALUEB,VALUEA)
COMMAND (VALUEA,VALUEB,VALUEC)
The following example shows a list of parameters with the repeat symbol.
COMMAND PARM1
COMMAND PARM1 PARM2 PARM3
COMMAND PARM1 PARM1 PARM3
For example, YES in the following diagram, its special treatment indicates it is
the default value for the parameter. If you do not include the parameter when
you write the statement, the result is the same as if you had actually specified
the parameter with the default value.
COMMAND PARM2
Choices you can make from this syntax diagram therefore include (but are not
limited to) the following:
COMMAND PARM1
COMMAND PARM3
COMMAND PARM3 PARM4
Note: Before you can specify PARM4 or PARM5 in this command, you must
specify PARM3.
──COMMAND──┬─────────┬────────────────────────────────────────
(1)
└─PARM1─── ┘
Note:
1 This is a note about the item.
■ An overview of ROETSAPI
■ The conventions for code ROETSAPI function calls
■ The JCL needed to link edit ROETSAPI to the application
■ The return codes passed from ROETSAPI to the application
■ The specific functions provided with ROETSAPI
1.1 Overview
The Extended Time-Sharing Option (ETSO) is an application execution system
that can be used to execute purchased or site-developed applications under
Advantage CA-Roscoe. Whether or not these applications currently execute
interactively, there may be cases where sites may want to modify them to
allow their users to take advantage of Advantage CA-Roscoe facilities.
ROETSAPI can be used with any application written in any language that
handles standard IBM parameter lists (for example, COBOL, PL/I, FORTRAN
and Assembler). For additional information about ETSO, refer to the:
■ Command Reference Guide for detailed descriptions of the ETSO-related
commands that are available to all users.
■ RPF Language Guide for information about using ETSO-related commands
within RPF programs.
■ System Commands Guide for detailed descriptions of those ETSO-related
commands that are meant to be used by the individual assigned the RO or
AI prefix or the console operator.
■ System Reference Guide for information about defining applications that are
to run under ETSO.
■ User Guide for general information about using ETSO.
1.4.1 DVRT
DVRT can be used to change TGET, TPUT, WTO and WTP system macro
settings dynamically while the application is executing.
Notes
■ Dynamic diversions made by the application remain in effect until:
– Another DVRT function changes the source or target, or
– The user enters the DIVERT command to alter the source or target
■ A diversion request must have both the type of diversion desired (for
example, TGET) and the diversion setting (for example, AWS).
■ The diversion settings mean:
AWS directs input/output to the active AWS.
CONSOLE directs input/output to the operator console.
DISCARD ignores any input/output.
MEM mem directs input/output to the designated library member. The
member is assumed to belong to the individual executing
the application. To divert input/output to the library of a
specific individual, include that person's Advantage
CA-Roscoe prefix with the member name.
1.4.2 GETV
The GETV function can be used to obtain the value of any RPF variable or
function.
GETV Function
──CALL ROETSAPI──('GETV'──'──┬─var1─────┬──────────────────────
└─rptfunc1─┘
──format1(length1);',return1,───────────────────────────────────
┌─;──────────────────────────────────────────┐
┬──────────────────────────────────────────┬┴──);───────────
───
└─┬─varn─────┬──formatn(lengthn)',returnn,─┘
└─rptfuncn─┘
var is the name of any variable. When appropriate, the variable prefix
must be included. (The valid prefixes are A., D., L., P. and S. plus
the PF/PA key prefixes AWS., DSN., JOB. and LIB).
rpffunc is any valid RPF function or an expression containing RPF
variables. The function name or expression must be enclosed in
parentheses, as in:
(LENGTH('AC')) or (L1+L2)
format is the format in which the data is to be returned and must be
specified as:
BINARY One- to four-byte binary data. (Abbreviate as
BIN.)
Notes:
■ A GETV function call must have at least one request specified. (A request
consists of the fields: variable name or function, format and length and a
return field.)
■ There is no limit to the number of requests that can be specified through a
single GETV function. When coding a GETV function, remember that:
– Each request uses 660 (decimal) bytes of storage.
– A GETV function which has multiple variable requests processes faster
than multiple GETV functions for single variables.
■ Hexadecimal Format:
When the format of the data to be returned is specified as hexadecimal, the
user is requesting that the data be returned as a character string which
represents the requested data.
The character string is not the data connected to the character format but is
the hexadecimal representation of the RPF variable. For example, suppose
L1 contains the value 100, stored by Advantage CA-Roscoe as the fullword
X'00000064'. If the application contains the call:
CALL ROETSAPI ('GETV','L1 HEX(8);',return1);
'return1' will contain C'00000064' after the call. This is the character data. If
the call had been:
The length of the data area that is to receive the variable or function is
restricted by the specified format, as noted in the following chart.
The rules regarding the conversion of data from its Advantage CA-Roscoe
format to the specified GETV format are:
1.4.2.1 Examples
1. The following example illustrates how to obtain the current value of the
variables L1, P1, AWS.PF1, P.PANELV and S.VTAMAPPL.
. . .
CALL ROETSAPI,
(FUNC,REQL1,L1,REQP1,P1,REQAPF1,PF1,
REQPVAR,PVAR,REQSVAR,VTAMAPPL),VL
LTR R15,R15 ERROR IN GETV?
BNZ QERR N, EXIT PROGRAM
. . .
FUNC DC CL4'GETV' FUNC = 'GETV'
REQL1 DC C'L1 CHAR(1);' GETV L1
REQP1 DC C'P1 VCHAR(1);' GETV P1
REQAPF1 DC C'AWS.PF1 CHAR(5);' GETV AWS.PF1
REQPVAR DC C'P.PANELV BIN(4);' GETV PANEL VAR
REQSVAR DC C'S.VTAMAPPL CHAR(8);' GETV S.VTAMAPPL
L1 DS CL1 AREA FOR L1
P1VAR DS XL12 AREA FOR P1
P1LEN DC H'1' LENGTH OF P1
P1 DS CL1 CONTENTS OF P1
PF1 DS CL5 AREA FOR AWS.PFK1
PVAR DS F AREA FOR BIN VAR
VTAMAPPL DS CL8 AREA FOR VTAMAPPL
1.4.3 PANL
The PANL function allows RPF PANEL command facilities to be executed
dynamically from within an application executing under ETSO.
PANL Function
──CALL ROETSAP1──('PANL'───────────────────────────────────────
──┬─(──'ACTIVATE──def──;'──)───────────────────────┬──);───────
├─(──'EXECUTE──def ──ALARM CURSOR P.──var──;'──)─┤
├─(──'SEND ALARM CURSOR P.──var──;'──)───────────┤
├─(──'RESEND ALARM CURSOR P.──var──;'──)─────────┤
├─(──'OUT ALARM CURSOR P.──var──;'──)────────────┤
└─(──'IN ALARM CURSOR P.──var──;'──)─────────────┘
Notes
■ If both ALARM and CURSOR are specified, ALARM must precede
CURSOR in the request string.
■ Error Handling:
If an error occurs, the application is not interrupted (that is, no messages
are displayed at the terminal). An error code is returned to the application
from ROETSAPI and a subsequent QERR call can retrieve the text of the
error message.
■ Attention Handling:
If an attention interrupt should occur while a panel is active and the
application has previously established its own attention exit through the
STAX macro, that routine gets control.
If the application has not established its own attention exit routine, the
ETSO default attention interrupt exit gets control.
Under no circumstances does the invoking RPF program's ON
ATTENTION exit get control.
Example: The following example illustrates how an application can use this
function to invoke an RPF panel.
. . .
CALL ROETSAPI,(FUNC,PANLREQ),VL
LTR R15,R15 ERROR IN PANL CALL?
BNZ QERR Y, EXIT PROGRAM
. . .
FUNC DC CL4'PANL' FUNCTION = 'PANL'
PANLREQ DC C'EXECUTE AWS ALARM CURSOR P.FIELD;' PANEL CMD
1.4.4 PUTV
The PUTV function can be used to establish the value of an RPF variable.
PUTV Function
──CALL ROETSAPI──('PUTV'──,────────────────────────────────────
┌─,──────────────────────────────────────────┐
─'var1──format1──(──length1──)──;',──data 1─┴──);───────────
───
or
PUTV Function
──CALL ROETSAPI──('PUTV'──,────────────────────────────────────
──'var──format──(──length──)──rdm-format──;',──data──);────────
length. With panel variables, the data may not exceed the length
of the panel field.
Notes:
■ A PUTV function call must have at least one request specified. (A request
consists of: variable, format and length, optional RDM format plus a data
field.)
■ There is no limit to the number of requests that can be specified through a
single PUTV function. When coding a PUTV request, remember that:
– Each request for a variable uses approximately 400 (decimal) bytes of
storage.
– Multiple requests may be included in a single PUTV call. A PUTV
request which has multiple variable requests processes faster than
multiple PUTV requests for a single variable.
■ Hexadecimal Format:
When the hexadecimal format is specified, the data being passed to the
program is expected to be the character representation of the hexadecimal
data. For example, to store the fullword that is equal to a decimal 100, the
following call might be issued:
CALL ROETSAPI ('PUTV', L1 HEX(8) INT;',PROGL1;
The variable L1 will contain C'00000064'. If the call were coded as:
CALL ROETSAPI ('PUTV', L1 BIN(4) STR;',PROGL1;
The variable L1 will contain C'100'.
■ The following chart shows the data formats, their lengths and the format
to which they may be converted:
Examples
1. The following example places values in the variables L1, P1, AWS.PF1,
P.PANELV and S.LASTMEM.
. . .
CALL ROETSAPI,
(FUNC,REQL1,L1,REQP1,P1,REQAPF1,PF1,
REQPVAR,PVAR,REQSVAR,MEMBER),VL
LTR R15,R15 ERROR IN GETV?
BNZ QERR N, EXIT PROGRAM
. . .
FUNC DC CL4'PUTV' FUNC = 'PUTV'
REQL1 DC C'L1 CHAR(1);' PUTV L1
REQP1 DC C'P1 VCHAR(4);' PUTV P1
REQAPF1 DC C'AWS.PF1 CHAR(5);' PUTV AWS.PF1
REQPVAR DC C'P.PANELV BIN(4);' PUTV PANEL VAR
REQSVAR DC C'S.LASTMEM CHAR(12);' PUTV S.LASTMEM
L1 DC CL1'ABCDEFGHIJ' AREA FOR L1
P1VAR DS XL6 AREA FOR P1
P1LEN DC H'4' LENGTH OF P1
P1 DC CL4'1234' CONTENTS OF P1
PF1 DC CL5'DIS I' AREA FOR AWS.PFK1
PVAR DC F'1' AREA FOR BIN VAR
MEMBER DC CL12'ABC.MYMEMBER' AREA FOR LASTMEM
2. In addition to placing values in the variables L1, L2, L3, P1 and
P.PANELV, the following example illustrates how you can request specific
data type conversions.
. . .
CALL ROETSAPI,
(FUNC,REQL1,L1,REQL2,L2,REQL3,L3,
REQP1,P1,REQPVAR,PVAR),VL
LTR R15,R15 ERROR IN GETV?
BNZ QERR Y, EXIT PROGRAM
. . .
FUNC DC CL4'PUTV' FUNC = 'PUTV'
REQL1 DC C'L1 HEX(1) STR;' PUTV L1
REQL2 DC C'L2 CHAR(5) FLOAT;' PUTV L2
REQL3 DC C'L3 PACK(5) STR;' PUTV L3
REQP1 DC C'P1 VCHAR(4) INT;' PUTV P1
REQPVAR DC C'P.PANELV BIN(4) STR;' PUTV PANEL VAR
L1 DC CL1'C1C2C3C4C5' DATA FOR L1
L2 DC CL5'12.5' DATA FOR L2
L3 DC XL5'123456789C' DATA FOR L3
P1VAR DS XL6 AREA FOR P1
P1LEN DC H'4' LENGTH OF P1
P1 DC CL4'1234' CONTENTS OF P1
PVAR DC F'1' AREA FOR BIN VAR
1.4.5 QENV
The QENV function performs two tasks. First, it can be used to determine the
environment in which the application is executing. Second, it allows an
application executing in an ETSO environment to obtain information about the
Advantage CA-Roscoe environment.
QENV Function
──CALL ROETSAPI──('QENV'──,──'ENV'──;',──retenv────────────────
──┬────────────────┬──┬────────────────┬──┬────────────────┬────
└─,'KEY;',retkey─┘ └─,'PFX;',retpfx─┘ └─,'RPF;',retrpf─┘
──┬────────────────┬──┬────────────────┬──┬────────────────┬────
└─,'PCB;',retpcb─┘ └─,'SCB;',retscb─┘ └─,'ROT;',retrot─┘
──┬────────────────────────┬──┬────────────────────────┬────────
│ ┌─TERMINAL─┐ │ │ ┌─TERMINAL─┐ │
└─,'GET;',─┼──────────┼──┘ └─,'PUT;',─┼──────────┼──┘
└─retget───┘ └─retput───┘
──┬────────────────┬──┬───────────────────────┬─────────────────
└─,'VER;',retver─┘ │ ┌─CONSOLE─┐ │
└─,'WTO;',─┼─────────┼──┘
└─retwto──┘
──┬────────────────────────┬──);───────────────────────────────
│ ┌─TERMINAL─┐ │
└─,'WTP;',─┼──────────┼──┘
└─retwtp───┘
Examples:
1. The first example illustrates how you can use the QENV function to
determine the execution environment. This example actually performs two
tests. In the first test, if register 15 contains the return code 16, the
application is not executing in an ETSO environment. In the second test, if
the field RETENV does not contain ETSO, the application is not executing
in an ETSO environment.
1.4.6 QERR
The QERR function can be used to get the information associated with an error
encountered on a previous call to ROETSAPI.
QERR Function
──CALL ROETSAPI──('QERR'──,──retmsg──┬─────────┬──);──────────
└─,retrib─┘
retmsg is the field that is to receive the error message text. The first
halfword of the field must contain the length of the error message
being requested; the remainder of the field must be at least this
length and may not exceed 255 bytes in length.
reterib is the field that can be used following GETV and PUTV function
calls to receive a specially formatted Error Information Block. The
first halfword of the field must contain the size of the Error
Information Block; the remainder of the field must be at least the
length specified in that first halfword.
Notes:
■ If a QERR call is issued and no error was encountered on a previous call
to ROETSAPI, a code of 8 is returned and the field retmsg will contain the
message: NO PREVIOUS ERROR FOR QERR REQUEST.
If an error was encountered, a code of 0 is returned and the field identified
by retmsg will contain the text of the appropriate:
– RPF-related error message, or
– ROETSAPI-related error message.
■ Error Information Block:
An Error Information Block is recognized only if the previous function call
was a PUTV or GETV. It is ignored for all other types of function calls.
An Error Information Block is useful when the previous PUTV or GETV
function contains multiple requests and one or more errors are
encountered. (Note that any request within the PUTV or GETV function
that is not in error is satisfied.)
When an Error Information Block is used, a QERR function call returns:
– An error message. (The message is in the field identified as retmsg.)
– The Error Information Block containing information about each request
specified in the previous PUTV or GETV.
The Error Information Block must be formatted as follows:
Example: The following PUTV function call contains five requests and all of
them are in error.
CALL ROETSAPI,
(FUNC,REQL1,L1,REQL2,L2,REQL3,L3,
REQP1,P1,REQPVAR,PVAR),VL
LTR R15,R15 ERROR IN GETV?
BNZ QERR Y, EXIT PROGRAM
. . .
FUNC DC CL4'PUTV' FUNC = 'PUTV'
REQL1 DC C'L1 HEX(1) STR' PUTV L1
REQL2 DC C'L2 CHAR(5) FLOAT;' PUTV L2
REQL3 DC C'L3 PACK(25) STR;' PUTV L3
REQP1 DC C'P1 XXXXX(4) INT;' PUTV P1
REQPVAR DC C'P.PANELV BIN(4) STR;' PUTV PANEL VAR
L1 DC CL1'C1C2C3C4C5' DATA FOR L1
L2 DC CL5'12.5' DATA FOR L2
L3 DC XL5'123456789C' DATA FOR L3
P1VAR DS XL6 AREA FOR P1
P1LEN DC H'4' LENGTH OF P1
P1 DC CL4'1234' CONTENTS OF P1
PVAR DC F'1' AREA FOR BIN VAR
When the first error is encountered, control transfers to QERR which might
look like:
QERR DS H
CALL ROETSAPI,
(FUNC,ERRMSG,ERRINBLK),VL PROCESS ERR MSG
LH R5,ERRORCNT COUNT ERRORS
LA R5,1(,R5) INCREMENT COUNT
STH R5,ERRORCNT RESTORE COUNT
CH R5,ERRORNUM GOT LAST MSG?
BE EXIT Y, EXIT
MVC ERRMSG+2(1),BLANK INIT MSG AREA
B QERR
FUNC DC CL4'QERR' FUNC = 'QERR'
ERRMSG DC H'1' MSG LENGTH
DS CL1 MSG AREA
ERRINBLK DS XL12 ERROR INFO BLK
ERRORLEN DC H'18' MSG LENGTH
ERRORTOT DS H TOTAL REQUESTS
ERRORNUM DS H NUMBER IN ERROR
ERRORIND DC H ERROR INDEX
ERRORVAR DS 5H INFO AREA
ERRORCNT DS H ERROR COUNTER
As illustrated below, after the first QERR function call, the second halfword
contains the total number of requests, the third halfword contains the number
of errors and the fourth halfword contains the number of the first request in
error. The remaining halfwords identify the numeric portion of the associated
API error message.
QERR DS H
CALL ROETSAPI,(FUNC,ERRMSG,ERRINBLK),VL
. . .
B QERRCALL
FUNC DC CL4'QERR' FUNC = 'QERR'
ERRMSG DC H'1' MSG LENGTH
DS CL1'API52 INVALID DELIMITER ON PUTV
REQUEST ";" EXPECTED'
ERRINBLK DS XL12 ERROR INFO BLK
ERRORLEN DC H'18' MSG LENGTH
ERRORTOT DC X'5' TOTAL REQUESTS
ERROR IN DC X'5' NUMBER IN ERROR
ERRORIND DC X'1' ERROR INDEX
ERRORVAR DS H INFO AREA
DC X'34' MSG API52
DC X'1D' MSG API29
DC X'17' MSG API23
DC X'F' MSG API15
DC X'2' MSG API32
ERRORCNT DC X'1' ERROR COUNTER
With each subsequent QERR function call, the fourth halfword reflects the
number of the 'current' request in error. If the application issues a sixth
function call, a code of 8 is returned indicating that this call failed because
there are no more errors.
1.4.7 SUSP
The SUSP function suspends execution of an application executing under
ETSO.
SUSP Function
──CALL ROETSAPI──('function'──┬──────────┬──);────────────────
└─,retcode─┘
Notes:
■ You might want to suspend execution when, for example, the application
has obtained data and directed it to the active AWS and you now want to
allow the terminal user to perform editing functions before resuming
application execution.
■ While the application is suspended, normal Advantage CA-Roscoe
command execution may occur. In addition, the user (or RPF program)
may issue the commands:
RESUME ETSO to continue application execution.
CANCEL ETSO to terminate the application.
QUERY CALL to display information about suspended applications.
Note: The FREE command should not be used to release any of the files
(Advantage CA-Roscoe-managed or OS) that the application has
opened.
■ If the application was invoked through an RPF program, the application
can use the session variables:
S.ETSSTAT To determine the status of the application. For example,
S.ETSSTAT is set to 2 when the application is suspended.
S.ETSPGM To obtain the name of the application.
S.RC To communication with the RPF program. This is especially
useful if the application might be suspended for a variety
of reasons. When the RPF program regains control, it can
test the setting of S.RC to determine why the application
was suspended.
See the Advantage CA-Roscoe RPF Language Guide for information about
addition variables that may be of use.
Note:
■ Output file allocated with CTRL= operand of ALLOCATE
command.
|
| ROCURRIB Macro
| ──┬─────┬──ROCURRIB──,──REG=──┬────────┬──┬───────┬────────
| └─tag─┘ └─,none=─┘ └─,tcb=─┘
| ──┬────────────────────┬──┬──────────────────┬─────────────
| │ ┌─YES─┐ │ └─,using=─┬─YES─┬──┘
| └─,tcbequs=─┼─────┼──┘ └─NO──┘
| └─NO──┘
The same programs in this appendix are provided to illustrate a variety of calls
to ROETSAPI from different programming languages.
----------------------------------------------------------------------
QERR CALL FOR NEXT ERROR MSG AND ERROR INFORMATION
BLOCK
----------------------------------------------------------------------
CALL ROETSAPI,(QERR,MSG1,ERIB1),VL
TPUT MSG1+2,8 DISPLAY ERROR MESSAGE
BCT R5,LOOP DECREMENT ERRORS AND CONTINUE
EXIT DS H
L R13,SAVE+4 R13 POINTS TO CALLERS SAVE AREA
LM 14,12,12(13) RELOAD CALLERS REGISTERS
BR 14 RETURN TO CALLERS PROGRAM
----------------------------------------------------------------------
ERROR MESSAGE RETURN AREA
----------------------------------------------------------------------
MSG1 DS XL82 TOTAL MSG LEN=HW LEN + MSG AREA
DC H'8' LENGTH = 8
DC 8CL1' ' 8 CHAR ERROR MSG RETURN AREA
----------------------------------------------------------------------
ERROR INFORMATION BLOCK
----------------------------------------------------------------------
ERIB1 DS XL5 TOTAL ERIB LEN=HW LEN+ERIB AREA
ERIBLEN DC H'5' LENGTH = 5
ERIBTOT DS H TOT REQUESTS ON PREV. PUTV/GETV
ERIBINER DS H TOT REQUEST IN ERROR
ERIBCURR DS H INDEX OF CURRENTLY RETURNED MSG
DS XL44 ERROR INDEX ARRAY FOR PREV REQ.
GETV DC CL4'GETV' FUNCTION = 'GETV'
QERR DC CL4'QERR' FUCNTION = 'QERR'
GVR1 DC C'P1 CHAR(1);' GETV FOR P1
GVR2 DC C'P2 CHAR(1);' GETV FOR P2
GVR3 DC C'JOB.PC1 CHAR(1);' GETV FOR JOB.PC1 (ERROR!)
GVR4 DC C'JOB.PC2 CHAR(1);' GETV FOR JOB.PC2 (ERROR!)
GVR5 DC C'P3 CHAR(1);' GETV FOR P3
GVD1 DS CL1 RETURN AREA FOR P1
GVD2 DS CL1 RETURN AREA FOR P2
GVD3 DS CL1 RETURN AREA FOR JOB.PC1
GVD4 DS CL1 RETURN AREA FOR JOB.PC2
GVD5 DS CL1 RETURN AREA FOR P3
REPLY DS CL1 AREA FOR TGET
SAVE DS 18F SAVE AREA
LTORG
END CUST1
WORKING-STORAGE SECTION.
1 PROGRAM-WORK-AREA.
5 ETSO PIC X(8) VALUE 'ROETSAPI'.
1 ETSO-FUNCTION-CODE PIC X(4) VALUE SPACES.
1 ETSO-SECOND-PARM.
5 ETSO-VARIABLE-NAME PIC X(3) VALUE SPACES.
5 FILLER PIC X VALUE SPACES.
5 ETSO-VARIABLE-FORMAT PIC X(4) VALUE SPACES.
5 FILLER PIC X VALUE SPACES.
5 ETSO-VARIABLE-LENGTH PIC X(6) VALUE SPACES.
1 ETSO-DATA-PORTIONS PIC X(255) VALUE SPACES.
1 ETSO-ERR-PORTIONS REDEFINES ETSO-DATA-PORTIONS.
5 ETSO-ERR-LENGTH PIC S9(2) COMP.
5 ETSO-ERR-MSG PIC X(253).
1 ETSO-QERR-PORTIONS PIC X(4) VALUE 'MSG.'.
1 GENERAL-WORK-AREAS.
5 SAVE-VARIABLE-NAME PIC X(3) VALUE SPACES.
5 DIVERT-STAT.
1 DIVERT-GET.
15 DIVERT-GET-LIT PIC X(4) VALUE 'GET;'
15 DIVERT-GET-REP PIC X(12) VALUE SPACES.
15 FILLER PIC X VALUE SPACE.
1 DIVERT-PUT.
15 DIVERT-PUT-LIT PIC X(4) VALUE 'PUT;'
15 DIVERT-PUT-REP PIC X(12) VALUE SPACES.
15 FILLER PIC X VALUE SPACE.
1 DIVERT-WTO.
15 DIVERT-WTO-LIT PIC X(4) VALUE 'WTO;'
15 DIVERT-WTO-REP PIC X(12) VALUE SPACES.
15 FILLER PIC X VALUE SPACE.
1 DIVERT-WTP.
15 DIVERT-WTP-LIT PIC X(4) VALUE 'WTP;'
15 DIVERT-WTP-REP PIC X(12) VALUE SPACES.
15 FILLER PIC X VALUE SPACE.
5 QUIT-FLAG PIC X VALUE 'N'.
88 REQUESTED-TO-SUSPEND VALUE '1'.
88 REQUESTED-TO-RESPOND VALUE '2'.
88 REQUESTED-TO-UPDATE VALUE '3'.
88 REQUESTED-TO-QUERY VALUE '4'.
88 REQUESTED-TO-QUIT VALUE 'X'.
88 ERROR-ENCOUNTERED VALUE 'E'.
5 ERR-REPOSITORY.
1 FILLER PIC X(5) VALUE 'FUNC:'.
1 ERR-FUNC PIC X(4).
1 FILLER PIC X(5) VALUE 'PARM:'.
1 ERR-PARM PIC X(3).
5 ERR-MSG.
1 FILLER PIC X(5) VALUE 'MSG:'.
1 ERR-MSG-MSG PIC X(8).
PROCEDURE DIVISION.
----------------------------------------------------------------------
MAIN-CONTROL-SECTION.
ISSUE QENV CALL TO DETERMINE ENVIRONMENT. IF 'ETSO',
DISPLAY AND PROCESS PANEL.
----------------------------------------------------------------------
MAIN-CONTROL-SECTION.
MOVE 'QENV' TO ETSO-FUNCTION-CODE.
CALL 'ROETSAPI' USING ETSO-FUNCTION-CODE
IF RETURN-CODE NOT EQUAL ZERO
DISPLAY 'ETSO ENVIRONMENT IS NOT ESTABLISHED'
GO TO GO-BACK.
PERFORM B2-PANL-CALL THRU B2-PANL-CALL-EXIT.
IF RETURN-CODE NOT EQUAL ZERO
PERFORM D1-ERR-HANDLER THRU D1-ERR-HANDLER-EXIT
GO TO GO-BACK.
PERFORM A1-PROCESS THRU A1-PROCESS-EXIT
UNTIL REQUESTED-TO-QUIT.
GO-BACK.
GOBACK.
A1-PROCESS.
PERFORM B3-GET-REQUEST THRU B3-GET-REQUEST-EXIT.
IF RETURN-CODE NOT EQUAL ZERO
PERFORM D1-ERR-HANDLER THRU D1-ERR-HANDLER-EXIT.
IF REQUESTED-TO-SUSPEND
PERFORM B4-SUSPEND-REQ THRU B4-SUSPEND-REQ-EXIT.
IF REQUESTED-TO-RESPOND
PERFORM B5-RESPOND-REQ THRU B5-RESPOND-REQ-EXIT.
IF REQUESTED-TO-QUERY
PERFORM B6-QUERY-REQ THRU B6-QUERY-REQ-EXIT.
IF REQUESTED-TO-UPDATE
PERFORM B7-UPDATE-REQ THRU B7-UPDATE-REQ-EXIT.
IF NOT ERROR-ENCOUNTERED
IF NOT REQUESTED-TO-SUSPEND
MOVE 'PUTV' TO ETSO-FUNCTION-CODE
MOVE SPACES TO ETSO-SECOND-PARM
MOVE 'P.ERROR' TO ETSO-VARIABLE-NAME
MOVE 'CHAR' TO ETSO-VARIABLE-FORMAT
MOVE '(1);' TO ETSO-VARIABLE-LENGTH
MOVE ' ' TO ETSO-DATA-PORTIONS
IF NOT REQUESTED-TO-QUIT
IF NOT REQUESTED-TO-SUSPEND
MOVE 'PANL' TO ETSO-FUNCTION-CODE
MOVE SPACES TO ETSO-SECOND-PARM
MOVE 'RESEND ; ' TO ETSO-SECOND-PARM
IF REQUESTED-TO-QUERY
CALL 'ROETSAPI' USING ETSO-FUNCTION-CODE
ETSO-SECOND-PARM
ELSE
MOVE 'RESEND CURSOR P.VARIABLE;' TO ETSO-SECOND-PARM
CALL 'ROETSAPI' USING ETSO-FUNCTION-CODE
ETSO-SECOND-PARM.
A1-PROCESS-EXIT.
----------------------------------------------------------------------
B2-PANL-CALL.
EXECUTE THE PANEL DEFINITION FOUND IN CA-ROSCOE LIBRARY
MEMBER RO.SAMPAPI.
----------------------------------------------------------------------
B2-PANL-CALL.
MOVE 'PANL' TO ETSO-FUNCTION-CODE.
MOVE SPACES TO ETSO-SECOND-PARM.
MOVE 'EXECUTE RO.SAMPAPI ALARM;' TO ETSO-SECOND-PARM.
CALL 'ROETSAPI' USING ETSO-FUNCTION-CODE ETSO-SECOND-PARM.
B2-PANL-CALL-EXIT.
EXIT.
----------------------------------------------------------------------
B3-GET-REQUEST.
ISSUE GETV FUNCTION CALL TO RETRIEVE PANEL VARIABLE
P.FUNCTION.
----------------------------------------------------------------------
B3-GET-REQUEST.
MOVE 'GETV' TO ETSO-FUNCTION-CODE.
MOVE SPACES TO ETSO-SECOND-PARM ETSO-DATA-PORTIONS.
MOVE 'P.FUNCTION ' TO ETSO-VARIABLE-NAME.
MOVE 'CHAR' TO ETSO-VARIABLE-FORMAT
MOVE '(1);' TO ETSO-VARIABLE-LENGTH
PERFORM C1-CALL-ETSO THRU C1-CALL-ETSO-EXIT.
MOVE ETSO-DATA-PORTIONS TO QUIT-FLAG.
B3-GET-REQUEST-EXIT.
EXIT.
----------------------------------------------------------------------
B4-SUSPEND-REQ.
PRIME CMDLINE LINE WITH 'RESUME ETSO'. THEN ISSUE
SUSP CALL TO SUSPEND APPLICATION.
AFTER USER ISSUES 'RESUME ETSO' FROM NATIVE CA-ROSCOE,
1) ISSUE PANL REQUEST TO REACTIVATE PANEL.
2) ISSUE PUTV REQUEST TO SET PANEL VARIABLE P.ERROR TO
INFORM USER THAT APPLICATION HAS RESUMED.
3) FINALLY, ISSUE PANL REQUEST TO SEND PANEL BACK TO
USER.
----------------------------------------------------------------------
B4-SUSPEND-REQ.
MOVE 'PUTV' TO ETSO-FUNCTION-CODE.
MOVE SPACES TO ETSO-SECOND-PARM.
MOVE 'S.CMDLINE' TO ETSO-VARIABLE-NAME.
MOVE 'CHAR' TO ETSO-VARIABLE-FORMAT
MOVE '(11);' TO ETSO-VARIABLE-LENGTH
MOVE 'RESUME ETSO' TO ETSO-DATA-PORTIONS.
PERFORM C1-CALL-ETSO THRU C1-CALL-ETSO-EXIT.
IF RETURN-CODE NOT EQUAL ZERO
PERFORM D1-ERR-HANDLER THRU D1-ERR-HANDLER-EXIT
GO TO B4-SUSPEND-REQ-EXIT.
/----------------------------- ----------------------------------/
/ GET FUNCTION, IF THERE IS AN ERROR DISPLAY IT ON PANEL /
/----------------------------------------------------------------/
CALL ROETSAPI('GETV',FUNC_REQ,FUNCTION);
RC=PLIRETV();
IF RC ¬=
THEN CALL ERROR_PROCESSOR;
ELSE DO;
REQUEST = (4)' ';
CALL ROETSAPI('GETV',REQ_REQ,REQUEST);
RC=PLIRETV();
IF RC ¬=
THEN CALL ERROR_PROCESSOR;
ELSE
SELECT (FUNCTION);
WHEN ('GETV') CALL GETV_PROCESSOR;
WHEN ('PUTV') CALL PUTV_PROCESSOR;
WHEN ('QENV') CALL QENV_PROCESSOR;
WHEN ('DVRT') CALL DVRT_PROCESSOR;
OTHERWISE RC = ;
END;
END;
CALL ROETSAPI('PANL','RESEND ALARM CURSOR P.FUNCTION;');
RC=PLIRETV();
IF RC ¬= THEN DO;
MSG.MSG_MSG = (5)' ';
EXIT_SW = '1'B;
CALL ROETSAPI('QERR',MSG);
END;
IF EXIT_SW THEN LEAVE;
CALL ROETSAPI('GETV',AID_REQ,AID);
RC = PLIRETV();
IF RC ¬= THEN DO;
MSG.MSG_MSG = (5)' ';
EXIT_SW = '1'B;
CALL ROETSAPI('QERR',MSG);
END;
IF EXIT_SW THEN LEAVE;
END;
END;
RETURN;
ERROR_PROCESSOR : PROCEDURE;
CALL ROETSAPI('QERR',MSG);
CALL ROETSAPI('PUTV',EMSG_REQ,MSG.MSG_MSG);
CALL ROETSAPI('PUTV',EHEAD_REQ,'ERROR');
END ERROR_PROCESSOR ;
PUTV_PROCESSOR : PROCEDURE;
CALL ROETSAPI('GETV',DATA_REQ,DATA);
RC = PLIRETV;
IF RC ¬=
THEN CALL ERROR_PROCESSOR;
ELSE DO;
CALL ROETSAPI(FUNCTION,REQUEST,DATA);
RC=PLIRETV();
IF RC ¬= THEN CALL ERROR_PROCESSOR;
ELSE DO;
MSG.MSG_MSG = (5)' ';
DATA = (5)' ';
MSG.MSG_MSG = 'DATA HAS BEEN ADDED TO RDM SUCCESSFULLY';
CALL ROETSAPI('PUTV',EMSG_REQ,MSG.MSG_MSG);
CALL ROETSAPI('PUTV',EHEAD_REQ,' ');
CALL ROETSAPI('PUTV',EHEAD_REQ,' ');
CALL ROETSAPI('PUTV',DATA_REQ,DATA);
END;
END;
END PUTV_PROCESSOR;
GETV_PROCESSOR : PROCEDURE;
DATA = (5)' ';
CALL ROETSAPI(FUNCTION,REQUEST,DATA);
RC=PLIRETV();
IF RC > 4
THEN CALL ERROR_PROCESSOR;
ELSE DO;
IF RC = 4 THEN CALL ERROR_PROCESSOR;
CALL ROETSAPI('PUTV',DATA_REQ,DATA);
RC=PLIRETV();
IF RC ¬= THEN CALL ERROR_PROCESSOR;
END;
END GETV_PROCESSOR;
QENV_PROCESSOR : PROCEDURE;
DATA = (5)' ';
CALL ROETSAPI(FUNCTION,REQUEST,DATA);
RC=PLIRETV();
IF RC ¬=
THEN CALL ERROR_PROCESSOR;
ELSE DO;
CALL ROETSAPI('PUTV',DATA_REQ,DATA);
RC=PLIRETV();
IF RC ¬= THEN CALL ERROR_PROCESSOR;
END;
END QENV_PROCESSOR;
DVRT_PROCESSOR : PROCEDURE;
DATA = (5)' ';
CALL ROETSAPI(FUNCTION,REQUEST,DATA);
RC=PLIRETV();
IF RC ¬=
THEN CALL ERROR_PROCESSOR;
ELSE DO;
CALL ROETSAPI('PUTV',DATA_REQ,DATA);
RC=PLIRETV();
IF RC ¬= THEN CALL ERROR_PROCESSOR;
END;
END DVRT_PROCESSOR;
END API;
The preceding program uses the panel definition saved as the member
APITEST in the library of the individual assigned the prefix ABC. The
following definition illustrates what that panel might look like:
<<APITEST>>
TAG $ S
TAG + UM FUNCTION REQUEST DATA EHEAD EMSG
$||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
$||||||||||||||||||||||||||| ETSO API |||||||||||||||||||||||||||||||||
$||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
$
$ Function ==> + (GETV, PUTV or QENV)
$
$ Request# ==> + $
$
$ Data ==> + $
$
$||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
$+ $ + $
$ PF15 ==> TERMINATE
ENDDEF
Using just a few prompt panels, you can use SKETCH to:
■ Design a BMS or MFS map.
The input can be from:
1. your responses to SKETCH prompts,
2. an RPF panel, or
3. an existing map.
Using one map, you can generate MFS statements for model 1, 2, 3, 4 or 5
3270-type terminals.
■ Specify individual fields within a map.
Default values for the fields (for example, attributes and colors) are
automatically supplied by SKETCH.
You have the option of modifying the site-defined default values that are
used in generating the macros/statements defining: 1) all maps and map
fields, or 2) a particular map.
■ Generate the macros/statements used in creating the map(s).
Before generating the macros, you have the option of displaying a
prototype map, thus ensuring that the map you are about to generate is
correct.
■ Generate the JCL to:
1. Assemble and link edit the BMS macros. You can also designate
whether the resulting output is to be used in an Assembler, COBOL or
PL/I application program.
2. Create the online blocks for the MFS statements. You can designate
whether the resulting output is to be placed in the production or test
library.
where:
pfx is the prefix of the sign-on key assigned to SKETCH. The default
prefix is RSK.
n is the number of an option on the main menu. If specified,
execution begins with the panel associated with the designated
option. If omitted, the main menu (as illustrated by the following
screen) is displayed.
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||TM|
||||||||||||||| ||| || ||| ||| ||| ||| ||| |||||||||||
||||||||||||||| ||| ||| | |||| ||||||||| ||||| ||||||| ||| |||||||||||
||||||||||||||| |||||||| ||||| ||||||||| ||||| ||||||| |||||||||||
||||||||||||||| ||| ||||| ||||||| ||||| ||||||| |||||||||||
|||||||||||||||||||| ||| | |||| ||||||||| ||||| ||||||| ||| |||||||||||
||||||||||||||| ||| ||| || ||| ||||||||| ||||| ||||||| ||| |||||||||||
||||||||||||||| ||| ||| || ||||| ||||| ||| ||| |||||||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| Version 6. |||
The SKETCH prompt panels use the following function key assignments:
PF1/13 Terminate SKETCH. (Changes to the displayed data are ignored.)
PF2/14 Display Help for the current prompt panel. (Changes to the
displayed data are ignored.)
PF3/15 Return one level. (Changes to the displayed data are ignored.)
PF4/16 Hold display. (The displayed data is evaluated and new or changed
data is applied as an update. The current panel is then redisplayed.)
PF5/17 Return to Main Menu. (Changes to the displayed data are ignored.)
Pressing the ENTER key causes the displayed data to be evaluated and new or
changed data to be applied as an update. The next panel is redisplayed.
You can 'jump' from one option to another without having to return to the
main menu. To do this, move the cursor to the 'Select One' field of any option
panel and type: =n where 'n' is the number of an option shown on the main
menu. For example, if you are currently viewing Option 1 and you enter =2 in
the 'Select One' field of that panel, you do directly to Option 2.
Select One: __
1. Macro/Statement Defaults
2. Map Field Definitions
3. JCL Specification
4. Switch Format Only
1. BMS Format
2. MFS Format
Suboption 1 or 2:
You can change the default values that are used by Option 2 'Create/Update a
Map' for every map that you generate.
Your new values are saved in the library member ZZZZZBMS in your library.
(If you do not modify the default values, the site-defined values are saved in
the member ZZZZZBMS under the key assigned for SKETCH.)
Suboption 3:
The new values are saved in the member ZZZZZJCL in your library.
Suboption 4:
You can switch from BMS to MFS without having to change defaults. If you
select this option, you must designate the format to which you want to switch.
More than one can be selected for Ctrl only. Supply only the R to
specify Reset MDT.
PF1/13: Exit PF2/14: Help PF3/15: Return PF4/16: Hold PF5/17: Main
ENTER: Cont
Note: The screen above shows the default values.
The meaning of the defaults and the value(s) to which they can be set are:
Storage Designate how the program is to acquire storage for the map(s).
Specify:
A The program acquires main storage for the maps.
(Default.)
name Name of a data area. BASE is then assumed.
(BASE=name specifies that different maps are to use the
same named storage area.)
(For language-specific information about obtaining storage, see
IBM's CIC/VS Application Programmer's Reference Manual (Command
Level).)
Color Identify the color to be used by entering the first character of the
color (for example, B for blue). If omitted, the standard terminal
display colors are used.
Note: Color is ignored at those terminals having no color
capabilities.
Ctrl Define one or more 3270-type terminal characteristics. The possible
values are:
A Sound an audible alarm when the map is displayed.
F Free (or unlock) the keyboard when the map is
displayed. If omitted, the user will not be able to enter
data.
R Reset all modified data tags to a 'not modified' condition
before displaying the map.
Extatt Define how extended attributes (for example, color and
highlighting) are to be supported. The possible values are:
Y Use extended attributes that can be modified by the
program through symbolic descriptor maps (DSECTs are
link edited/copied to the program).
N Do not use extended attributes in this map set.
M Use extended attributes that can be modified by the
program. Symbolic descriptor maps are not required to
do this.(Default.)
Highlight Define the highlighting attribute for all fields in the map. If omitted,
no highlighting is used. The possible values are:
B The fields are to 'blink'
R Reverse video (for example, green characters on a black
background become black characters on a green
background).
U All fields are to be underlined.
Note: These values are ignored at those terminals not supporting
such capabilities.
Lang Define the source language of the application program that uses the
map. The possible values are:
C COBOL. (Default.)
P PL/I.
A Assembler.
Mode Ddefine whether the map is to be used for input, output or both.
The possible values are:
I Input
O Output
B Both input and output (Default.)
Suffix Define a one-character suffix for the map set. This suffix is used
when multiple versions of the same named map set are referenced
by an application program.
Note: Multiple versions can exist if variations are generated for
different terminals or languages. For more information on
suffixing, see IBM's CICS/VS Application Programmer's
Reference Manual (Command Level).
You can associate default values with specific special characters. You will be
using these special characters to mark the beginning of fields when 'painting' a
map. Once you have painted a map, SKETCH assigns the values to the field(s)
denoted by the special characters. (This is similar to the definition and use of
TAG characters in RPF panels.)
Attributes:
PF1/13: Exit PF2/14: Help PF3/15: Return PF4/16: Hold PF5/17: Main
ENTER: Cont
Note: The screen above shows the default special characters and their
attributes.
F Must fill. Data must be entered into the field to fill it.
The cursor cannot be moved from this field and data
cannot be transmitted until the field is filled.
If the following attributes are omitted, the defaults for numeric data
are right and zero and for nonnumeric data are left and blank.
< Right (< and > are mutually exclusive.)
> Left
Z Zero (Z and O are mutually exclusive.)
O Blank
Note: Specifying either > (Left) or O (Blank) assumes the other.
Specifying < (Right) or Z (Zero) assumes the other.
Fill Assign any character. This character is used to fill the field when
the map is initially displayed. The default is blanks.
Color set the fields to one of the following colors:
B Blue
G Green
P Pink
R Red
T Turquoise
Y Yellow
Job Name:
Account Number:
Programmer Name:
Class:
Msgclass:
Priority:
Other:
ASSEMBLER:
DSECT SYSOUT Dsn:
CICS SYSLIB Dsn:
SYSLIB Concatenation:
LINKAGE EDITOR:
SYSLMOD Dsn:
PF1/13: Exit PF2/14: Help PF3/15: Return PF4/16: Hold PF5/17: Main
ENTER: Cont
Job Name Enter a one- to eight-character string to be used as the
job name.
Account Number Enter any one- to 16-digit account number valid at
your site. Commas and parentheses may be included
in the account number. SKETCH does not attempt to
validate this number.
Programmer Name Enter a one- to 20-character name.
Class Enter any valid alphanumeric class code.
Msgclass Enter any valid alphanumeric message class code.
Priority Enter any valid one- or two-character alphanumeric
priority code.
In addition, you may provide default names for:
ASSEMBLER Enter the name of the Assembler program that you
will be using.
DSECT SYSOUT Dsn Enter the one- to 44-character name of the output data
set that is to contain the generated DSECT(s).
CICS SYSLIB Dsn Enter the one- to 44-character name of the CICS macro
library that is to be used for generating the BMS
macros.
SYSLIB Concatenation Enter the one- to 44-character name of the macro
library that is to be used in addition to the CICS
macro library. (Optional.)
Select One: __
1. Macro Definition
2. Field Definition
3. Paint Map
4. Review Map
5. Field Detail
Map Information:
The defaults designated through these panels apply only to the map that is
currently being 'painted'. (Option 1 on the main menu should be selected if
you want to permanently change the defaults.)
When you press the ENTER key or PF4/16 (assigned the Hold function), the
displayed default values are saved in the designated map member.
If the map name that you entered on the 'Create/Update a Map' panel exists,
then that map is displayed for modification. If no map by that name exists, a
blank-filled screen is displayed.
When you complete creating or modifying your map, a field detail list is
automatically generated for that map if it contains at least one field character.
(See page 5-6 for a description of the field detail list.)
The blank-filled screen is the size specified on the 'Create/ Update a Map'
panel.
Use the special characters you defined in the 'Field Definition' panel to denote
the map fields. These characters are displayed on the last line of this panel,
along with the PF key assignments. If enough space is available on that line,
the PF keys used for Help, Return, Hold and the line commands are also
displayed. (Excluding the scrolling functions, the PF key functions are
available, even though they are not displayed.) You may overtype the data on
this last line to include additional map fields. When the field detail list is
generated, this line is evaluated only if it has been overtyped.
Mark the end of a field with the same special character that marks its
beginning or by another special character. If no other fields are to immediately
follow a field, the end-of-field special character can be used. For example, the
following is a prompt for a name using the default special characters (where
the % attributes are protected and modified data tag on, the ¬ attributes are
unprotected and modified data tag on, and the / attribute is end-of-field.)
%NAME: ¬__________/
This example actually specifies two fields; SKETCH generates macros for each
of them. As shown in the following example, the macro generates for the first
field specifies the starting position as column 1 of row 1. Note that the field
itself begins in column 2 of row 1. A special character, not included in the
field, is required to mark the beginning of the field. The POS operand,
therefore, specifies the location of this special character.
You can bypass this option when you use an existing map or RPF panel as the
input source (for example, named on the 'Create/Update a Map' panel). The
field detail list is generated automatically from the named input source.
The special characters and, possibly PF2/14, PF3/15, PF4/16, PF6/18 and
PF9/21, are displayed only if the bottom line of the map does not contain any
map data.
■ To change the contents, simply overtype the displayed map with the
desired modification. The updates are applied to the map when the
ENTER key or PF4/16 is pressed.
■ To change the size of the map, specify the new value(s) on the
'Create/Update a Map' prompt and redisplay the designed map. Size
changes only take affect after displaying the designed map. Modifications
can also be made to the map at this time.
Note: Caution should be used when reducing the size as fields may be
lost.
■ To delete fields without affecting any other fields, overtype the special
character marking the start of the field with a tilda. The entire field
(beginning with the special character and including the end-of-field special
character, if there is one) is translated to blanks. The deleted field will be
removed from the field detail list.
The following keys can be used whether painting a new map or modifying an
existing one.
ENTER, PF4 or PF16
causes the painted map to be read and stored.
PF1, PF3, PF5 PF13, PF15 or PF17
causes SKETCH to ignore any changes you have made to the map.
PF5, PF6, PF17 or PF18
displays the map prototype. Pressing the ENTER key while viewing
the prototype returns you to the 'Map Painting' panel. Using these
keys, you can 'jump' from the painted map to the prototype and
back again.
To use the line commands, press PF9/21. The 'painted' map becomes a
protected display. To the right of each map line is a field containing two
underscores. One line command function may be entered at a time by
overtyping the two underscores. The available line commands are:
To return to the unprotected map display, press the ENTER key. Using
PF9/21 and the ENTER key, you can 'jump' between the protected and
unprotected map, using the line commands as needed.
In those cases where you want to use several line commands, enter the first
and press PF4/16. After that line command is executed, you can enter the next.
(This allows you to view the result of the line command before returning to
the unprotected map display.)
You may not, however, modify the map under this suboption. Use suboption 3
to change the modifiable map definition.
The second line for each field displays the first 4 characters of that field.
The next two fields can be used to specify PICIN and PICOUT, respectively.
For a list of possible attributes, press PF2/14.
PF1/13: Exit PF2/14: Help PF3/15: Return PF4/16: Hold PF5/1: Main
PF7/19: Bkwd PF8/2: Fwd PF1/22: Top PF11/23: Bottom ENTER: Cont
The fields specified in a map are displayed in sequential order along with the
attributes representing the parameter values in effect for the fields.
■ The position, length and initial value of each field is taken from the
designed map. To modify these, you must update the map design itself.
(If the map is modified under suboption 3 'Painting Map', only those fields
whose positions have not changed retain any modifications made through
this suboption.)
■ At this time, you may:
1. Assign a name to each field
2. Modify the attributes associated with each field
3. Change the fill character
■ If a map is to be used by a COBOL or PL/I program, values are provided
for PICIN and PICOUT. These values are modifiable.
■ One of the fields can be selected as the field to which the cursor is
positioned when the map is initially displayed.
The changes that you make on this panel are associated with the fields defined
in the map. Note, however, that if you change the map design, only those
fields whose positions have not changed retain the field data that you have
supplied.
Depending on the screen size, either four or eight fields are displayed at one
time. To display additional fields, use:
PF7/19 Scrolls the field listing backwards and update.
PF8/20 Scrolls the field listing forwards and update.
PF10/22 Scrolls to the top of the field listing and update.
PF11/23 Scrolls to the bottom of the field listing and update.
Selection One: __
1. Generate Macro
2. Display Macro
3. Generate and Display Macro
Suboption 1:
You can:
■ Supply a macro and map name to generate a macro. (The map name is
supplied by SKETCH using the name you specified under Option 2.) The
generated macro is stored in the Advantage CA-Roscoe library under the
name you provide.
Note: The macro name that you supply is assigned to the BMS macro
DFHMSD. The map name is used as the name of the DFHMDI
macro. The field you supplied in the 'Field Detail' panel are used as
the names of the DFHMDF macros.
To generate BMS macros from an RPF panel, execute Option 2
'Create/Update a Map' prior to this option. Option 2 is the only option
that translates an RPF panel into information that can be used to generate
the macros.
■ Type an 'X' in the field provided to generate map sets and specify the
various map (member) names to be included. Maps are added to the
macro one at a time.
If a map set is not being generated, specifying a member name that
already exists causes that member to be updated with a new BMS macro.
Suboption 2:
You can display and, optionally, modify a generated macro. If you modify the
macro, you must update the Advantage CA-Roscoe library member containing
it before returning to Advantage CA-Roscoe. (The SKETCH map member does
not reflect the changes you made directly to the macros.)
While you are viewing the generated macro, you should avoid executing any
other RPF program. The results are unpredictable. Also, the following
Advantage CA-Roscoe commands cannot be executed:
EXEC LET RETURN
EXIT POP STOP
FETCH PUSH WRITE
Suboption 3:
■ Produce the JCL required to assemble and link edit the generated macro.
■ Submit the JCL.
■ Display the JCL for review.
1. Tailor JCL
2. Submit
3. Display and Submit (delete AWS to bypass submit)
Suboption 1:
You can modify the default JCL for an individual macro. (You also use
Suboption 3 to display and modify the JCL prior to submission.)
Suboption 2:
The default JCL is concatenated to the generated macro and submitted for
execution.
Suboption 3:
The Macro (member) Name is the name of the Advantage CA-Roscoe library
member that contains the SKETCH-generated BMS macros. (This is the name
you gave to the macro that was generated under Option 3 'BMS Macro
Generation'.)
Notes:
Because of BMS requirements, you must execute Option 4 twice. BMS requires
that both a symbolic and a physical map be generated. Therefore, select
DSECT for one execution and MAP for the other. (DSECT causes a symbolic
map (or DSECT) to be assembled with the output being stored in your source
library where it is available to your application program. MAP causes a
physical map to be generated which is assembled, link edited and stored in
your CICS program library.)
Note: The generated JCL does not specify alignment. If halfword alignment is
necessary, the JCL must be modified.
If you select Suboption 3, the generated JCL is written to the active AWS
which is then displayed. You can modify the JCL and save it as a Advantage
CA-Roscoe library member. If you do, this must be done before returning to
Advantage CA-Roscoe.
While you are viewing the generated JCL, you should avoid executing any
other RPF program. The results are unpredictable. Also, the following
Advantage CA-Roscoe commands cannot be executed:
EXEC LET RETURN
EXIT POP STOP
FETCH PUSH WRITE
where:
pfx is the prefix of the sign-on key assigned to SKETCH. The default
prefix is RSK.
n is the number of an option on the main menu. If specified,
execution begins with the panel associated with the designated
option. If omitted, the main menu (as illustrated by the following
screen) is displayed.
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||TM|
||||||||||||||| ||| || ||| ||| ||| ||| ||| |||||||||||
||||||||||||||| ||| ||| | |||| ||||||||| ||||| ||||||| ||| |||||||||||
||||||||||||||| |||||||| ||||| ||||||||| ||||| ||||||| |||||||||||
||||||||||||||| ||| ||||| ||||||| ||||| ||||||| |||||||||||
|||||||||||||||||||| ||| | |||| ||||||||| ||||| ||||||| ||| |||||||||||
||||||||||||||| ||| ||| || ||| ||||||||| ||||| ||||||| ||| |||||||||||
||||||||||||||| ||| ||| || ||||| ||||| ||| ||| |||||||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| Version 6. |||
The SKETCH prompt panels use the following function key assignments:
PF1/13 Terminate SKETCH. (Changes to the displayed data are ignored.)
PF2/14 Display Help for the current prompt panel. (Changes to the
displayed data are ignored.)
PF3/15 Return one level. (Changes to the displayed data are ignored.)
PF4/16 Hold display. (The displayed data is evaluated and new or changed
data is applied as an update. The current panel is then
redisplayed.)
PF5/17 Return to Main Menu. (Changes to the displayed data are ignored.)
Pressing the ENTER key causes the displayed data to be evaluated and
new/changed data to be applied as an update. The 'next' panel is redisplayed.
You can 'jump' from one option to another without having to return to the
main menu. To do this, move the cursor to the 'Select One' field of any option
panel and type:
=n
where 'n' is the number of an option shown on the main menu. For example, if
you are currently viewing Option 1 and you enter =2 in the 'Select One' field
of that panel, you go directly to Option 2.
Select One: __
1. Macro/Statement Defaults
2. Map Field Definitions
3. JCL Specification
4. Switch Format Only
1. BMS Format
2. MFS Format
Suboption 1 or 2:
You can change the default values used by Option 2 'Create/Update a Map'
for every map that you generate.
Your new values are saved in the library member ZZZZZMFS in your library.
(If you do not modify the default values, the site-defined values are saved in
the member ZZZZZMFS under the key assigned for SKETCH.)
Suboption 3:
If they are modified, the changed data is saved in the member ZZZZZJCL in
your library.
Suboption 4:
You can switch from MSF to BMS without having to change defaults. If you
select this option, you must designate the format to which you want to switch.
Alpha:
(enter any characters to be alphabetic; you may omit A-Z and nationals)
PF1/13: Exit PF2/14: Help PF3/15: Return PF4/16: Hold PF5/17: Main
ENTER: Cont
Note: The preceding screen shows the default values.
The meaning of the defaults and the value(s) to which they can be set are:
Graphic Designate whether input data is to be translated to uppercase
by specifying:
Y Force translation. (Default.)
N Do not translate.
Exit Designate the edit exit routine interface for the input by
specifying x,y where:
x is the value of the exit routine number.
y is the value to be passed to the routine.
Input Opt Designate how MFS is to format the input data to the program
by specifying:
1 Pad all messages to the specified length with the fill
character.
You can associate default values with specific special characters. You will be
using these special characters to mark the beginning of fields when 'painting' a
map. Once you have painted a map, SKETCH assigns the values to the field(s)
denoted by the special characters. (This is similar to the definition and use of
TAG characters in RPF panels.)
Attributes:
PF1/13: Exit PF2/14: Help PF3/15: Return PF4/16: Hold PF5/17: Main
ENTER: Cont
Note: The above screen shows the default special characters and their
attributes.
E Must enter. Data must be entered into the field but need
not fill it. The cursor cannot be moved from this field
and data cannot be transmitted until something is
entered. (Default)
F Must fill. Data must be entered into the field to fill it.
The cursor cannot be moved from this field and data
cannot be transmitted until the field is filled.
If the following attributes are omitted, the defaults for numeric data
are right and zero and for nonnumeric data are left and blank.
< Right. (< and > are mutually exclusive)
> Left
fill Assign any character or NU. The character are used to fill the field
when the map is initially displayed. NU indicates that MFS should
compress partially filled fields. The default is blanks.
Color set the fields to one of the following colors:
B Blue
G Green
P Pink
R Red
T Turquoise
Y Yellow
Job Name:
Account Number:
Programmer Name:
Class:
Msgclass:
Priority:
Other:
Region:
PF1/13: Exit PF2/14: Help PF3/15: Return PF4/16: Hold PF5/17: Main
ENTER: Cont
Select One: __
1. Statement Definition
2. Field Definition
3. Paint Map
4. Review Map
5. Field Detail
Map Information:
The defaults designated through these panels apply only to the map that is
currently being 'painted'. (Option 1 on the main menu should be selected if
you want to permanently change the defaults.)
When you press the ENTER key or PF4/16 (assigned the Hold function), the
displayed default values are saved in the designated map member.
If the map name that you entered on the 'Create/Update a Map' panel exists,
then that map is displayed for modification. If no map by that name exists, a
blank-filled screen is displayed.
If the map contains lowercase characters in the literal fields, they are translated
to uppercase to conform to MFS requirements.
When you complete creating or modifying your map, the field detail list is
automatically generated for that map if it contains at least one field character.
(See page 6-13 for a description of the field detail list.)
Use the special characters you defined in the 'Field Definition' panel to denote
the map fields. These characters are displayed on the last line of this panel,
along with the PF key assignments. If enough space is available on that line,
the PF keys used for Help, Return, Hold and the line commands are also
displayed. (Excluding the scrolling functions, the PF key functions are
available, even though they are not displayed.) You may overtype the data on
this last line to include additional map fields. When the field detail list is
generated, this line is evaluated only if it has been overtyped.
Mark the end of a field with the same special character that marks its
beginning or by another special character. If no other fields are to immediately
follow a field, the end-of-field special character can be used. For example, the
following is a prompt for a name using the default special characters (where
the % attributes are protected and modified data tag on, the ¬ attributes are
unprotected and modified data tag on, and the / attribute is end-of-field.)
%NAME: ¬__________/
This example actually specifies two fields. Assuming that the unprotected field
is to be named and the protected field is not to be named, the generated
MFLD and DFLD statements will be:
(input) MFLD NME,LTH=12,ATTR=YES,FILL=C'_'
(output) MFLD (NME,'__________'),LTH=1,ATTR=NO
DFLD 'NAME: ',POS=(1,2),LTH=7, X
ATTR=(ALPHA,PORT,NORM), X
EATTR=(HD,CD)
NME DFLD POS=(1,1),LTH=1, X
ATTR=(ALPHA,NOPROT,NORM,MOD), X
EATTR=(HD,CD)
The statements generated for the first field specifies the starting position as
column 2 of row 1. (A field cannot begin in column 1 because a special
character, not included in the field itself, is required to mark the beginning of a
field.)
You can bypass this suboption when you use an existing map or RPF panel as
the input source (for example, named on the 'Create/Update a Map' panel).
The field detail list is generated automatically from the named input source.
The special characters and, possibly PF2/14, PF3/15, PF4/16, PF6/18 and
PF9/21, are displayed only if the bottom line of the map does not contain any
map data.
■ To change the contents, simply overtype the displayed map with the
desired modification. The updates are applied to the map when the
ENTER key or PF4/16 is pressed.
■ To change the size of the map, specify the new value(s) on the
'Create/Update a Map' prompt and redisplay the designed map. Size
changes only take effect after displaying the designed map. Modifications
can also be made to the map at this time.
Note: Caution should be used when reducing the size as fields may be
lost.
■ To delete fields without affecting any other fields, overtype the special
character marking the start of the field with a tilda. The entire field
(beginning with the special character and including the end-of-field special
character, if there is one) is translated to blanks. The deleted field are
removed from the field detail list.
The following keys can be used whether painting a new map or modifying an
existing one.
ENTER, PF4 or PF16 Causes the painted map to be read and stored.
PF1, PF3, PF5, PF13, PF15 or PF17
Causes SKETCH to ignore any changes you have made
to the map.
PF6 or PF18 Displays the map prototype. Pressing the ENTER key
while while viewing the prototype returns you to the
'Map Painting' panel. Using these two keys, you can
'jump' from the painted map to the prototype and back
again.
To use the line commands, press PF9/21. The 'painted' map becomes a
protected display. To the right of each map line is a field containing two
underscores. One line command function may be entered at a time by
overtyping the two underscores. The available line commands are:
To return to the unprotected map display, press the ENTER key. Using
PF9/21 and the ENTER key, you can 'jump' between the protected and
unprotected map, using the line commands as needed.
In those cases where you want to use several line commands, enter the first
and press PF4/16. After that line command is executed, you will be able to
enter the next. (This allows you to view the result of the line commands before
returning to the unprotected map display.)
You may not, however, modify the map under this suboption. Use suboption 3
to change the modifiable map definition.
The second line for each field displays the first 4 characters of that field.
The next field can be used to specify the EXIT= value.
For a list of possible attributes, press PF2/14.
PF1/13: Exit PF2/14: Help PF3/15: Return PF4/16: Hold PF5/1: Main
PF7/19: Bkwd PF8/2: Fwd PF1/22: Top PF11/23: Bot ENTER: Cont
The fields specified in a map are displayed in sequential order along with the
attributes representing the parameter values in effect for the fields.
■ The position, length and initial value of each field is taken from the
designed map. To modify these, you must update the map design itself. (If
the map is modified under suboption 3 'Painting Map', only those fields
whose positions have not changed retain any modifications made through
this suboption.)
■ At this time, you may:
1. Assign a name to each field.
2. Modify the attributes associated with each field.
3. Change the fill character.
■ You can use the second field of the second line to provide the value for an
edit exit routine that is to be associated with a field. If specified, it must be
in the form x,y where 'x' is the value of the exit routine and 'y' is the value
to be passed to the routine.
■ One of the fields can be selected as the field to which the cursor is
positioned when the map is initially displayed.
The changes that you make on this panel are associated with the fields defined
in the map. Note, however, that if you change the map design, only those
fields whose positions have not changed retain the field data that you have
supplied.
Depending on the screen size, either four or eight fields are displayed at one
time. To display additional fields, use:
PF7/19 Scrolls the field listing backwards entries and update.
PF8/20 Scrolls the field listing forwards update.
PF10/22 Scrolls to the top of the field listing and update.
PF11/23 Scrolls to the bottom of the field listing and update.
Selection One: __
_1 _2 _3 _4 _5
Suboption 1:
For example, if you state that the format name is MAP, the following is
generated:
MAPIN MSG TYPE=INPUT,SOR=MAP,1 NXT=MAPOU,...
MAPOU MSG TYPE=OUTPUT,SOR(MAP, IGNORE),NXT=MAPIN,...
MAP FMT
The hierarchy used in generating MFLD and DFLD statements is based on
whether the field is: 1) named and 2) protected or unprotected. A DFLD
statement is generated for every field. If the field is named, an MFLD
statement for MSG TYPE=OUTPUT is created. If the field is unprotected
and named, an MFLD statement for MSG TYPE=INPUT is created. The
initial value of the field is specified on the DFLD statement of unnamed
fields and on the MSG TYPE=OUTPUT MFLD statement of named fields.
To generate message format statements from an RPF panel, execute Option
2 'Create/Update a Map' prior to this option. Option 2 is the only option
that translates an RPF panel into information that can be used to generate
the statements.
2. Designate that the generated message format statements are for any model
1, 2, 3, 4 or 5 3270-type terminals. The only limitation is based on the
specified map size (not 'painted' map). Thus, if you stated that the map
size is to be 24 lines by 80 columns, you may specify any model except 1.
If you set he map size to 43 lines by 80 columns, only a model 4 3270-type
terminal can be selected.
Suboption 2:
You can display and modify the generated message format statements. If you
modify the statements, you must update the Advantage CA-Roscoe library
member containing them before returning to Advantage CA-Roscoe. (The
SKETCH map member does not reflect the changes you made directly to the
statements.)
While you are viewing the generated statements, you should avoid executing
any other RPF program. The results are unpredictable. Also, the following
Advantage CA-Roscoe commands cannot be executed:
Suboption 3:
■ Produce the JCL required to create the online blocks for the MFS
statements.
■ Submit the JCL.
■ Display the JCL for review.
1. Tailor JCL
2. Submit
3. Display and Submit (delete AWS to bypass submit)
1. Production Library
2. Test Library
Suboption 1:
You can modify the default JCL for an individual execution. (You can also use
Suboption 3 to display and modify the JCL prior to submission.)
Suboption 2:
The default JCL is concatenated to the generated statements and submitted for
execution.
Suboption 3:
The Format (member) Name is the name of the Advantage CA-Roscoe library
member that contains the SKETCH-generated message format statements. (This
is the name you gave to the member that was generated under Option 3
'Message Statement Generation'.)
You must designate whether the generated online blocks are to be placed in
the production libraries of IMSVS.FORMAT or the test libraries of
IMSVS.TFORMAT.
Notes
If you select suboption 3, the generated JCL is written to the active AWS
which is then displayed. You can modify the JCL and save it as a Advantage
CA-Roscoe library member. If you do, this must be done before returning to
Advantage CA-Roscoe.
While you are viewing the generated JCL, you should avoid executing any
other RPF program. The results are unpredictable. Also, the following
Advantage CA-Roscoe commands cannot be executed:
EXEC LET RETURN
EXIT POP STOP
FETCH PUSH WRITE
The names specified for P2 and P3 as well as for each field may be one to
seven characters in length. This length qualification is in keeping with BMS
requirements. Other than that, the name must follow Advantage CA-Roscoe
naming conventions.
When the user presses PF1 or PF13 to terminate the SKETCH session, all
permanent variables are set to null. It should also be noted that SKETCH
terminates with an RPF RETURN command. This means that if SKETCH is
executed as an option of another RPF application, that application receives
control when the user exits SKETCH.
These values are the IBM-recommended standard symbolic names for each
model.
Note: Model 1 refers to terminals with 12 rows by 40 columns.
Sites that either do not use IMS symbolic terminal names or use different
values may need to change the Advantage CA-Roscoe-distributed values so
that they agree with the site's IMS/VS system generation. To do this, sign on
to the SKETCH key and use Option 1.1 to specify the device type values that
are to be generated. (For the SKETCH key only, the Option 1.1 panel includes
the Device Type Values information.)
Color
A Defining
Advantage CA-Roscoe Library Interface 2-2 BMS SKETCH 5-5
Arithmetic symbols (syntax diagrams) xi MFS SKETCH 6-7
Assembler Comma
Coding ROETSAPI 1-4 repeat symbol, use in xiv
Assembler Example Copybook Generation
ROETSAPI 3-2 BMS SKETCH 5-20
Attributes, Extended MFS SKETCH 6-18
Defining
BMS SKETCH 5-5
MFS SKETCH 6-6 D
AWS Interface (AWSI) 2-1 DCB Records 2-4
AWSI Macro 2-1 Default values (syntax diagrams) xv
Delimiters
syntax diagrams, use in xii
B DFHMDF Macro 5-13
BMS (SKETCH) DVRT Function 1-6
Copybook Generation 5-20
Create/Update Map 5-11
Default JCL Definitions 5-8 E
Macro Definition Defaults 5-4 ETSRPS= Initialization Parameter 2-1
Macro Generation 5-18 Examples
Map Field Definition Defaults 5-6 Assembler 3-2
Map Field Detail 5-16 COBOL 3-4
Painting Maps 5-12 PL/I 3-12
Profile Tables 5-3 Extended Attributes
SKETCH Main Menu 5-1 Defining
BMS SKETCH 5-5
MFS SKETCH 6-6
C
CA-MetaCOBOL+
Using with SKETCH 7-3 F
CICS FORTRAN
Executing SKETCH 5-1 Coding ROETSAPI 1-4
COBOL Functions
Coding ROETSAPI 1-3 ROETSAPI 1-6
Example, ROETSAPI 3-4
Coding Conventions
ROETSAPI 1-3
Index X-1
G P
GETV Function 1-8 Painting Maps
BMS SKETCH 5-12
MFS SKETCH 6-10
H PANL Function 1-16
Highlights Parentheses
Defining (BMS SKETCH) 5-5 syntax diagrams, use in xii
PFKEYUPD Library Member 7-3
I PL/I
Coding ROETSAPI 1-3
IMS
Example, ROETSAPI 3-12
Executing SKETCH 6-1
Programs
IMS Device Types 7-5
comma
repeat symbol, use in xiv
J parentheses
JCL syntax diagrams, use in xii
Defining Defaults punctuation
BMS SKETCH 5-8 syntax diagrams, use in xi
MFS SKETCH 6-7 Punctuation marks (syntax diagrams) xi
PUTV Function 1-17
K
Keywords (syntax diagrams) xi Q
QENV Function 1-21
QERR Function 1-25
L
Language, Source
Defining R
BMS SKETCH 5-5 Return Codes
LIBI Macro 2-2 ROETSAPI 1-5
Library Members ROETSAPI
SKETCH-Related 7-2 Coding Conventions 1-3
Linkage Conventions Function Calls 1-3
ROETSAPI 1-4 Functions 1-6
Linkage Conventions 1-4
Overview 1-2
M Return Codes 1-5
MFS (SKETCH)
Copybook Generation 6-18
Create/Update Map 6-9 S
Default JCL Definitions 6-7 SKETCH
Map Field Definition Defaults 6-5 Advantage CA-Roscoe Library Members 7-2
Map Field Detail 6-13 Defaults
Message Format Defaults 6-4 BMS 5-3
Message Statement Generation 6-16 MFS 6-3
Painting Maps 6-10 Main menu
Profile Tables 6-3 BMS 5-1
SKETCH Main Menu 6-1 MFS 6-1
Overview 4-1
RPF Variables 7-4
Signon prefix
CICS 5-1
T
Terminal Characteristics
Defining
BMS SKETCH 5-5
MFS SKETCH 6-10
V
Variables
Used by SKETCH 7-4
Variables (syntax diagrams) xi
Z
ZZZZTFMT Library Member 7-2
ZZZZZBMS Library Member 7-2
ZZZZZDSE Library Member 7-2
ZZZZZFMT Library Member 7-2
ZZZZZJCL Library Member 7-2
ZZZZZMAP Library Member 7-2
ZZZZZMFS Library Member 7-3
ZZZZZPFX Library Member 7-3
Index X-3