Академический Документы
Профессиональный Документы
Культура Документы
MACROS
09/08/15
COMMUNICATION BETWEEN
PROGRAM & TERMINAL USER
Unformatted Manner:
EXEC CICS SEND TEXT
FROM (WS-OUTPUT-TEXT)
LENGTH (Length of WS-OUTPUT-TEXT)
ERASE
END-EXEC.
EXEC CICS RECEIVE
INTO (WS-INPUT-TEXT)
LENGTH (Length of WS-INPUT-TEXT)
END-EXEC.
09/08/15
09/08/15
09/08/15
: RATNAKER M_____
DOJ
: 02 / 01 / 2003
AGE : 023
______________________________________________
09/08/15
$DOJ
: $02$/$01$/$2003$
09/08/15
09/08/15
09/08/15
09/08/15
09/08/15
DFHMSD MACRO
MAPSETN DFHMSD TYPE=(&SYSPARM|DSECT\MAP),
MODE=(INOUT|IN|OUT),
LANG=(COBOL|ASM|C|PLI),
TERM=3270,STORAGE=AUTO,
TIOAPFX=(YES|NO),
CTRL=(Prameters)
X
X
X
X
X
DFHMSD TYPE=FINAL
END
DSECT:
Generation of Symbolic Map
MAP:
Generation of Physical Map
&SYSPARM:
To generate both Physical and Symbolic Map using
symbolic parameter.
09/08/15
DFHMDI MACRO
MAPNAME DFHMDI SIZE=(Lines,Columns),
X
LINE=Line-Number|NEXT|FIRST|LAST, X
COLUMN=Col-Nbr,
X
JUSTIFY=(LEFT|RIGHT),
X
TIOAPFX=(YES|NO),
X
CTRL=(FREEKB,FRSET,ALARM,PRINT)
09/08/15
DFHMDF MACRO
* Definition of a Data Field
FLDNAME DFHMDF POS=(Line,Column),
LENGTH=Number,
INITIAL=Text,
PICIN=9999,
X
PICOUT=ZZZ9,
X
ATTRB=(Attr1,Attr2,Attr3,Attr4,Attr5)
X
X
X
*Definition of a Label
DFHMDF POS=(Line,Column),
X
LENGTH=Number,
X
ATTRB=ASKIP,
X
INITIAL=TexttxxxxxxxxxxxxxxxxxxtttttttX
ttttxxxx
09/08/15
ATTRIBUTES
ASKIP | PROT | UNPROT
ASKIP - Cursor automatically skips to the next field on the MAP.
PROT
- Cursor stops at the field but data entry not possible
UNPROT - Cursor stops at the field and the field is editable.
NUM
- Specifies that only valid data is Numeric, ., +, -. Trying
to enter any other values locks the keyboard. (Installn dependent)
BRT | NORM | DRK
BRT
Highlights the data in the field
NORM Displays the data in the field normally
DRK
Does not show the data entered in the field (Generally
used for Password fields)
IC
- Specifies the position where cursor should be positioned
when the Map is thrown. If multiple ICs are mentioned the cursor
gets positioned at the last field where IC was mentioned.
FSET
- Sets the MDT of a field to ON
09/08/15
09/08/15
09/08/15
TOPICS OF CONCERN
09/08/15
RECEIVE MAP
Syntax:
EXEC CICS RECEIVE
MAP
MAPSET
INTO
LENGTH
ASIS
RESP
END-EXEC.
09/08/15
(MAPNAME)
(MAPSET-NAME)
(MAPNAMEI)
(LENGTH-OF-MAP)
(WS-RESP)
SEND MAP
Syntax:
EXEC CICS SEND
MAP
(MAPNAME)
MAPSET
(MAPSET-NAME)
FROM
(MAPNAMEO)
LENGTH
(LENGTH-OF-MAP)
CURSOR
(Data-Value)
ERASE|ERASEUP
MAPONLY|DATAONLY
ACCUM
RESP
(WS-RESP)
END-EXEC.
09/08/15
09/08/15
MDT is one of the 8-bits of the attribute character, the value of which
decides whether or not the data from the Map will flow to the application
program on a RECEIVE MAP command.
Ways of Manipulation:
- FRSET: This is one of the Control parameters that can be coded on
DFHMSD or DFHMDI macro. When coded, the MDT of all the fields
defined under the MAPSET/MAP are set to zero/OFF.
- FSET: This is one of the attribute parameters that can be coded with
DFHMDF macro. When coded, the MDT of that particular field is set to
one/ON.
- Application program: The MDT of a field can be set ON or OFF by
moving the predefined field values defined in DFHBMSCA to the A field
of the field in question.
Note: If FSET is mentioned, it overrides the FRSET (if mentioned). The
application program overrides the FRSET, FSET defined in the BMS
Macro.
09/08/15
MAPONLY:
If this option is mentioned along with the
SEND MAP, then only the Symbolic map (the values of the data
fields) will be send to the terminal. This is generally used for all
subsequent SEND MAP commands after the initial SEND MAP
command. The values present in the symbolic map will get
populated on the screen at their appropriate field locations
automatically.
DATAONLY:
If this option is specified, only the physical
map is sent to the terminal. Physical Map is the formatted map
only with the labels. The data fields wont be populated with any
values until there are already some values present in their
location on the screen.
No Option Specified: Both the physical map and the symbolic
map are merged and sent to the terminal.
09/08/15
ERASE:
When specified, before the Map is thrown on the
terminal, all the data present on the terminal is erased and then
the Map is sent to/thrown on the terminal.
09/08/15
$DOJ
: $02$/$01$/$2003$
09/08/15
DFHMSD TYPE=&SYSPARM,MODE=INOUT,LANG=COBOL,STORAGE=AUTO,
RESERVE DFHMDI
DFHMDF
DFHMDF
NAME
AGE
DFHMDF
DFHMDF
DFHMDF
DFHMDF
DFHMDF
DFHMDF
TIOAPFX=YES,CNTL=(FREEKB,PRINT),TERM=3270
SIZE=(24,80),LINE=01,COLUMN=01,JUSTIFY=LEFT,
TIOAPFX=YES,CNTL=(FRSET)
POS=(02,21),LENGTH=18,ATTRB=ASKIP,
INITIAL=TICKET RESERVATION
POS=(06,02),LENGTH=11,ATTRB=ASKIP,
INITIAL=NAME
:
POS=(06,14),LEMGTH=15,ATTRB=(UNPROT,FSET,IC)
POS=(06,30),LENGTH=01,ATTRB=ASKIP
POS=(06,39),LENGTH=10,ATTRB=ASKIP,
INITIAL=AGE
:
POS=(06,50),LEMGTH=03,ATTRB=(UNPROT,FSET,NUM),
PICIN=999,PICOUT=999
POS=(06,54),LENGTH=01,ATTRB=ASKIP
POS=(10,02),LENGTH=11,ATTRB=ASKIP,
INITIAL=DOJ
:
09/08/15
X
X
X
X
X
contd
DFHMDF POS=(10,14),LENGTH=02,ATTRB=(UNPROT,FSET,NUM),
PICIN=99,PICOUT=99
DFHMDF POS=(10,17),LEMGTH=01,ATTRB=ASKIP,INITIAL=/
DOJMM
DFHMDF POS=(10,19),LENGTH=02,ATTRB=(UNPROT,FSET,NUM),
PICIN=99,PICOUT=99
DFHMDF POS=(10,22),LEMGTH=01,ATTRB=ASKIP,INITIAL=/
DOJCCYY DFHMDF POS=(10,24),LENGTH=04,ATTRB=(UNPROT,FSET,NUM),
PICIN=9999,PICOUT=9999
DFHMDF POS=(10,29),LEMGTH=01,ATTRB=ASKIP
DFHMDF POS=(10,39),LENGTH=10,ATTRB=ASKIP,
INITIAL=TRN NO. :
TRNNUM DFHMDF POS=(10,50),LENGTH=04,ATTRB=(UNPROT,FSET,NUM)
PICIN=9999,PICOUT=9999
DFHHDF POS=(10,55),LEMGTH=01,ATTRB=PROT
DFHMDF POS=(14,02),LENGTH=11,ATTRB=ASKIP,
INITIAL=COACH NO. :
09/08/15
X
X
contd
COACH
DFHMDF POS=(14,14),LENGTH=03,ATTRB=(ASKIP,BRT)
DFHMDF POS=(14,18),LENGTH=01.ATTRB=ASKIP
DFHMDF POS=(14,39),LENGTH=10,ATTRB=ASKIP,
INITIAL=SEAT NO. :
SEATNUM DFHMDF POS=(14,50),LENGTH=02,ATTRB=(ASKIP,NUM,BRT),
PICOUT=99
DFHMDF POS=(14,53),LENGTH=01,ATTRB=ASKIP
OUTMSG DFHMDF POS=(20,01),LENGTH=79,ATTRB=ASKIP
DFHMSD TYPE=FINAL
END
09/08/15
X
X