cics_trianing class_02.ppsx
TRANSCRIPT
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 1/27
IBM MAINFRAMES
CICS Training Class-02
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 2/27
Macros used in BMS Mapset
PRINT NOGEN
Coded once at the beginning of the mapset; tells the
assembler not to print the statements generated as a result ofexpanding the BMS macros.
END
Must be the last statement in the input stream; tells the
assembler that there are no more source statements.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 3/27
DFHMSD Macro
DFHMSD : To define the mapset and supplies values that
apply to the entire mapset.
NM! "#$MS" T%&!'()S%S&*M + "S!CT + M&,-
N/'(C0B0 + SM + &1 ,-M0"!'(1N + 02T + 1N02T,-
T!*M'terminal3type-
CT*'4option- option...5-
ST0*/!'2T0-
M&TTS'4C00*-$11/$T5-
"STTS'4C00*-$11/$T5-
T10'(%!S + N0,
"#$MS" T%&!'#1N
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 4/27
MAPSET Parameter Eplanation
NAME : 2sed to refer the mapset in an application program.
TYPE : Specifies 7hether a physical map 4M&5- Symbolic
map 4"S!CT5- or both 4)S%S&*M5 7ill be generated.T%&!'#1N mar8s the end of a mapset.
LANG Specifies the programming language: C0B0- SM -
&91.
MODE Specifies 7hether the mapset is used for input 41N5-
output 402T5- or both 41N02T5.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 5/27
MAPSET Parameter Eplanation
CTRL Specifies a list of control options in effect for each
map in the mapset. Common options are:
#*!!B #ree the 8eyboard after each output operation.
*M Sound the audio alarm .
#*S!T : To reset all the map filed values.
STORAGE 1f ST0*/!'2T0 is coded- the symbolic
maps for the maps in the mapset 7ill occupy separate storage
locations. 0ther7ise- theyll occupy the same storage location.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 6/27
MAPSET Parameter Eplanation
TIOAPFX : %!S generates a <=3byte #1!* item at the
beginning of the symbolic map that the system uses to
maintain control information. %!S should al7ays be specified
for C0B0 maps 4N0 is the default5.
MAPATTS / DSATTS Specifies 7hich extended attributes
should be supported by the symbolic map. C00* and
$11/$T are the most common and are usually coded
together.
TERM Specifies the type of terminal that 7ill be supported by
the physical map generated by this mapset. Common values
are: or >=?@ Support for any terminal.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 7/27
DFHMDI Macro
DFHMDI Coded once for each map 7ithin the mapset; supplies
values that apply to a single map.
NM! "#$M"1 S1A!'4lines- columns5-
1N!'line3number- C02MN'column3number-
CT*'4option- option...5
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 8/27
MAP Parameter Eplanation
NAME : The one3 to seven3character name of the map. !ach
map 7ithin a mapset must have a uniue name.
SIZE : Specifies the siDe of the map in lines and columns.
2sually coded S1A!'4=E-F@5 LINE Specifies the line number on the screen 7here the map
starts. 2sually coded 1N!'<.
COLUMN Specifies the column number on the screen 7here
the map starts. 2sually coded C02MN'<.
CTRL Specifies a list of control options in effect for the map.
Common options are: #*!!B . *M ) #*S!T
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 9/27
DFHMDF Macro
DFHMDF Coded once for each field 4or attribute byte5 7ithin themap; specifies the position- length- and attributes of a screen field.
NM! "#$M"# &0S'41N!-C02MN5!N/T$'#1!" !N/T$
TT*B'4&*0T-N2M-1C-#S!T-B*T5
C00*'C00*-
$11/$T'$1/$1/$T-
1N1T1'GliteralH-
&1C1N'G&1CT2*!IST*1N/H-
&1C02T'G&1C2T*!IST*1N/H
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 10/27
Map Field Parameter Eplanation
NAME The <3 to =J3character name for the field. 1f omitted- the
field is not included in the symbolic map.
POS Specifies the line and column position of the attribute byte.
LENGTH Specifies the length of the field- not including theattribute byte.
COLOR Specifies the fields color. %ou may specify "!#2T
for the terminals default color- or you may specify B2!- *!"-
&1N- /*!!N- T2*K201S!- %!0L- or N!2T*. 1fomitted- "!#2T is assumed.
HILIGHT Specifies the fields extended highlighting. alid
highlighting options are B1N- *!!*S!- 2N"!*1N!- and
0##. 1f omitted- the default is 0##.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 11/27
Map Field Parameter Eplanation
INITIAL Specifies the starting value of the field. 1f omitted- the
default is hexadecimal Deros 4o73alue5.
PICIN Specifies a C0B0 picture string that defines the formatof the data on input- li8e PICIN'JJJJJ.
PICOUT Specifies a C0B0 picture string that defines the
format of the data on output- li8e &1C02T'AAA-AAJ.JJ.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 12/27
Map Field Parameter Eplanation
ATTRB : Specifies one or more attribute byte settings for the
field. 1f omitted- the default is N0*M- S1&. 1f one or more
options are specified- the default becomes N0*M- 2N&*0T.
B*T The field is displayed 7ith high intensity.
N0*M The field is displayed 7ith regular intensity.
"* The field is not displayed on the screen.
&*0T The field is protected; data may not be 8eyed into it.
S1& The field is protected- and the cursor 7illautomatically s8ip over it.
2N&*0T The field is unprotected; data may be 8eyed into it.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 13/27
Map Field Parameter Eplanation
NUM Turns on the numeric loc8 feature so only numeric
characters can be entered; the field is right ustified and Dero
filled. 1f omitted- the field is assumed to be alphanumeric and is
left ustified and space filled.
IC Specifies that the cursor should be located at the start of the
field.
FSET Specifies that the M"T bit in the attribute byte should be
turned on before the map is sent to the terminal.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 14/27
An Attri!ute B"te
!ach field on a screen is preceded by an attribute byte that
controls the appearance and operation of the field.
The attributes byte determine a fields characteristics.
The protection attribute determines 7hether or not the user can
8ey data into the field. 4&*0T-2N&*0T-S1&5
The shift attribute determines 7hether the 8eyboard is in
alphanumeric shift 4N2M5
The intensity attribute controls ho7 the data in the field is
displayed. 4N0*M-B*T ) "*5.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 15/27
T#e contents o$ an attri!ute !"te
Bit positios F!ctios Bit s"tti#s
@I< "epends on the contents of bits =3?
=I> &rotectionand
Shift
@@ ' 2nprotected alphanumeric@< ' 2nprotected numeric
<@ ' &rotected<< ' &rotected s8ip
EIO 1ntensity @@ ' Normal@< ' Normal
<@ ' Bright<< ' "ar8 4No3display5
P Must be @
? M"T @ ' #ield has not been modified
< ' #ield has been modified
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 16/27
M%T Modi$ied %ata Tag
Modified "ata Tag is the last bit of an attribute byte that says
7hether a field has been modified or not. Terminal sends a
field data only if the M"T is on. 0ther7ise- the field value is
not transmitted.
M"Ts can be turned on by
Specifying #S!T as part of the attribute of the BMS map
Moving a standard attribute- 7hich contains #S!T to the
Symbolic maps attribute. !ntering data into a field 7ill turns its M"T 0n.
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 17/27
S$ipp"r % Stopp"r T"c&i'!"
BMS does not automatically generate attribute byte to mar8 theend of an unprotected field. The user have to do it himself usings8ipper 9 stopper field.
So after every unprotected field an unlabeled s$ipp"r/stopp"r
field must be defined 7ith attribute parameter as S1&9 &*0T S8ipper filed : 1tHs a < byte filed 7ith S1& 4a!tos$ip5
attribute used to s8ip the cursor to the next unprotected filed.
"#$M"# &0S'4n-Cn5-TT*B'S1&-!N/T$'<
Stopper filed : 1tHs a < byte filed 7ith &*0T 4prot"ct5 attributeused to stop the cursor in order to prevent filed overflo7.
"#$M"# &0S'4n-Cn5-TT*B'&*0T-!N/T$'<
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 18/27
MAPSET PR&'RAM
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 19/27
MAPSET PR&'RAM
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 20/27
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 21/27
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 22/27
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 23/27
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 24/27
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 25/27
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 26/27
7/27/2019 CICS_Trianing Class_02.ppsx
http://slidepdf.com/reader/full/cicstrianing-class02ppsx 27/27
T#an( )ou