Upload
sharathraj
View
218
Download
0
Embed Size (px)
Citation preview
8/12/2019 23541293-CIC
1/45
Ritesh Dubal
Merrill Lynch USA
Customer Information Control System
8/12/2019 23541293-CIC
2/45
8/12/2019 23541293-CIC
3/45
1. By su'mitting a (CL. )uns SI* w+ic+ uses SI,.
2. By a transaction ientifier entere at t+e terminal.
3. By a transaction ientifier associate wit+ a terminal for
pseuo-conversation.
!. By t+e S,$), comman w+ic+ initiates for transaction
specifie in t+e parameter.
#. By $utomatic ,as Initiation $,I/.
%. By an $i ey associate wit+ t+e transaction in *C,.
Different 0ays of Initiating a ,ransaction
8/12/2019 23541293-CIC
4/45
A CICS - COBOL program is COBOL program embedding CICS commands
for DB/DC operations.
1. Only PO!A"-ID is mandatory in t#e ID$%&I'ICA&IO% DI(ISIO%.
). %o $%(IO%"$%& DI(ISIO%. *+#y,
. %o 'IL$ S$C&IO% in t#e DA&A DI(ISIO%. *+#y,
. %o file related 0erbs sc# as OP$%2 S&A&2 $AD2 +I&$2 $+I&$2
D$L$&$2 CLOS$2 etc2. *+#y,
Structure of a CICS *rogram 1 of 2/
8/12/2019 23541293-CIC
5/45
3. %o 0erbs re4esting !$&"AI% sc# as ACC$P&2 DISPLA52 SO&
S&I%!2 6%S&I%!2 $7A"I%$2 I%SP$C&2 $78IBI&2 etc.2
9. %o 0erbs re4esting system ser0ices sc# as S&OP 6%2 CO6%&2 etc.2
:. A called program can not #a0e CICS commands or in#ibited COBOL
statements.
Structure of a CICS *rogram 2 of 2/
8/12/2019 23541293-CIC
6/45
C CICS function
option 1 argument 1/
option 2 argument 2/
. . . . . . . . . . . . .
D-C
CICS Comman 4ormat
8/12/2019 23541293-CIC
7/45
C CICS SD 5,,6
4)O" ataname/
L7,8 lengt+-of-ataname/
5)$S6
54)9B6
5$L$)"6D-C
C CICS )CI:
I,O ata-name/
L7,8 lengt+-of-ataname/
D-C
Basic CICS Commans 1 of 2/
8/12/2019 23541293-CIC
8/45
$7$C CICS S$%D CO%&OL C6SO *data-0ale
. . .$%D-$7$C
$7$C CICS $&6%$%D-$7$C
Basic CICS Commans 1 of 2/
8/12/2019 23541293-CIC
9/45
Step 1. Open a tso session.
Step 2. Create a new *DS.Step 3. Coe t+e following program in a new mem'er.
CICS 8ello 0orl *rogram Development 1 of 3/
8/12/2019 23541293-CIC
10/45
8/12/2019 23541293-CIC
11/45
Step #. Open a CICS Session.
Step %. Install t+e program using t+e comman
C", S, *)O7program-name/ 0.
Step =. $ssociate a transaction-i wit+ t+e program
in *C,. ote t+at transaction-is are uni>ue
in t+e system.
CICS 8ello 0orl *rogram Development 3 of 3/
8/12/2019 23541293-CIC
12/45
Step1?Open an * Client session for "ainframe@ type CICS3 an +it ENTERey.
nter your User idan Passwordan press t+e ENTER9ey.
&ecution t+e 8ello 0orl *rogram 1 of 2/
8/12/2019 23541293-CIC
13/45
8/12/2019 23541293-CIC
14/45
(CL is not re>uire to run a CICS application program
It is prepare for t+e CICS o' itself 'y t+e systems
aministrator. Once CICS o' starts@ t+is o' is consiere
as one CICS region@ uner w+ic+ more t+an application
program can 'e e&ecute simultaneously.
0+at a'out (CL for CICS *rogram
8/12/2019 23541293-CIC
15/45
Basic "apping Support B"S/ is a stanar facility
availa'le in CICS t+at allows evelopment an
manipulation of formatte screens.
,+e primary o'ective of B"S is to free t+e application
programs from t+e 'uren of ealing wit+ "DS.
B"S
8/12/2019 23541293-CIC
16/45
1. )emoval of evice epenent coe from t+e application
programs 'y placing t+em in t+e map.
)emoval of constant information lie titles@ la'els@ etc
from t+e application programs 'y placing t+em in t+e map.
3. )emoval of format epenent coe from t+e application
programs.
!. Construction of "DS re>uire to prouce t+e esire
screen.
#. *roviing te&t +anling capa'ility.
4unctions of B"S
8/12/2019 23541293-CIC
17/45
$ "apset is a collection of one or more maps coe
an lineite toget+er. It is a program written in
$ssem'ly Language.
$ "apis a representation of one screen format. It is a
program written in assem'ly language.
"ap an "apset
8/12/2019 23541293-CIC
18/45
SCR1 MAIN MENU DATE: 14/11/2001
TIME: 10:15:15
1. EMPLOYEE RECORD MAINTENANCE
2. EMPLOYEE DETAILS BROWSE
3. EXIT
SELECTION : - (1/2/3)
Y!" C#$%& P'&&
*1 + ,&' *3 + E$ ENTER - P"%&
Sample 4ormatte Screen
8/12/2019 23541293-CIC
19/45
1. *+ysical "ap? Contains t+e e&ecuta'les to o eac+ oft+e following.
a/ Buil t+e screen@ wit+ all t+e titles an la'els in t+e
proper places on t+e screen an wit+ proper attri'utes.
'/ "erge t+e ata from t+e application program in t+e
proper places on t+e screen.
c/ &tract t+e ata for t+e application program w+en t+e
screen is receive.
*+ysical "ap an Sym'olic "ap 1 of 2/
8/12/2019 23541293-CIC
20/45
2. Sym'olic "ap? Defines t+e map fiels in t+e appropriate
language use to store t+e varia'le ata reference 'y t+e
application programs.
*+ysical "ap an Sym'olic "ap 2 of 2/
8/12/2019 23541293-CIC
21/45
1. D48"SD "apSet Definition /
2. D48"DI "ap DefInition /
3. D48"D4 "ap Define 4iel /
B"S "acros
8/12/2019 23541293-CIC
22/45
""5775 D'8"SD &5P$;DS$C&/"AP/'or eac# parameter2 yo #a0e to c#oose one of t#e options a0ailable.
e nderlined options are defalts 0ales.
D48"SD "acro an its *arameters
8/12/2019 23541293-CIC
23/45
,A*EDSC,F"$*FGSAS*$)"F4I$L
,A* governs w+et+er t+e assem'ly prouces t+e p+ysical
map or t+e sym'olic escription or 'ot+.
1. DSC,? Creates t+e Sym'olic map.
2. "$*? Creates *+ysical map.
3. GSAS*$)"?Creates 'ot+ sym'olic G p+ysical maps.
!. 4I$L? "apset efinition ens. o more map relate
commans later.
D48"SD "acro H ,A* *arameter
8/12/2019 23541293-CIC
24/45
"ODEIFO,FIO,
,A* specifies w+et+er t+e map is use for receiving ata or
sening ata or 'ot+ to t+e terminal
1. I ? 4or receiving ata.
2. O,? 4or sening ata.
3. IO,? 4or 'ot+ receiving an sening ata.
D48"SD "acro H "OD *arameter
8/12/2019 23541293-CIC
25/45
L$7E$S"FCOBOLF*L1
L$7 specifies t+e language in w+ic+ t+e application program
will 'e coe so t+at an appropriate sym'olic map may 'e
generate.
1. $S"?4or assem'ly language.
2. COBOL?4or COmmon Business Oriente Language.
3. *L1?4or *rogramming Language 1.
D48"SD "acro H L$7 *arameter
8/12/2019 23541293-CIC
26/45
S,O)$7E$,OFB$SEname
S,O)$7 specifies t+e storage locations can 'e re-use or not.
1. $,O?very map in t+e mapset +as its own storage area.
,+is is ieal for 'eginners.
2. B$SE "$*1. ,+is causes an amount of memory necessary
for "$*1 to 'e allocate for entire mapset. $ll ot+er maps are
overlai in t+is area. If you use t+is option@ you +ave to tae care
of storing t+e re>uire ata in t+e map area@ t+e map area@ 'efore
receiving t+e ne&t map.
D48"SD "acro H S,O)$7 *arameter
8/12/2019 23541293-CIC
27/45
C,)LE*)I,@ 4)9B@ $L$)"@ 4)S,/
Control parameter efines t+e screen an ey'oar control
information t+at you want to sen along wit+ a map.
1. *)I,? "ap must 'e sent to t+e printer.
2. 4)9B? 4ree t+e ey'oar.
3. $L$)"? $larm 'eep/ w+en map is sent to t+e user.
!. 4S,F4)S,? SetF)e-set "D, tag.
D48"SD "acro H C,)L *arameter
8/12/2019 23541293-CIC
28/45
,)"Eterminal type@ S44IEn
,+is ecies t+e terminal type@ on w+ic+ t+e screen is to 'e
isplaye. 0e must coe ,)"E32=J.
D48"SD "acro H ,)" *arameter
8/12/2019 23541293-CIC
29/45
,IO$*4EASFO
,+is ecies w+et+er comman level CICS or macro level CICS
is 'eing utiliKe respectively. 0e are using comman level
CICS. 8ence coe ,IO$*4EAS.
D48"SD "acro H ,IO$*4 *arameter
8/12/2019 23541293-CIC
30/45
8/12/2019 23541293-CIC
31/45
BreaBrea
8/12/2019 23541293-CIC
32/45
8/12/2019 23541293-CIC
33/45
D48"D4 " it * t
8/12/2019 23541293-CIC
34/45
'ieldname D'8"D' POS;*line2colmn2 7
L$%!&8;nmber2 7
I%I&IAL;?te@t2 7
6S&I'5;*L$'&/I!8&2BLA%=/$O2 7
A&&B;*AS=IP/PO&/6%PO&2%6"2B&/%O"/D=2 IC2 'S$&2 7
PICI%;?0ale2 7
PICO6&;?0ale2 7
"APA&&S;*COLO28I!8LI!8&2.......2 7
8I!8LI!8&;O''/BLI%=/$($S$/6%D$LI%$
D48"D4 "acro an its *arameters
C l t " t
8/12/2019 23541293-CIC
35/45
"BLA D48"SD ,A*EGSAS*$)"@
C,)LE4)9B@4)S,/@L$7ECOBOL@
S,O)$7E$,O@ ,)"E32=J@
"ODEIO,@,IO$*4EAS
"$I"$* D48"DI SIE2!@MJ/@
LIEJ1@
COL"EJ1
D48"D4 *OSE12@1N/@
L7,8E3%@
II,I$LE"$I "@
$,,)BE*)O,@O)"/
-
-
D48"SD ,A*E4I$L
D
Complete "apset
" ifi D t , "D,/
8/12/2019 23541293-CIC
36/45
,+is is flagin t+e attri'ute.
very fiel in t+e map +as an attributeassociate wit+ it.
"D, tag in t+e attri'ute@ ientifies w+et+er ata in t+e
fiel nees to 'e transferre to t+e system or not. ,+e iea
'e+in calling it a moifie ata tag is t+at - only moifie
ata will 'e transferre@ not t+e unc+ange ata./
$ttri'ute stores ata relevant to t+e fiel lie - color@intensity@ moifie or not etc.
"oifie Data ,ag "D,/
$tt i' t ' t f 4i l
8/12/2019 23541293-CIC
37/45
J 1 2 3 ! # % =
*rotection
an S+ift Inten
sity
"
D,
Bit *ositions 4unctions Bit SettingsJ an 1 Determine 'y contents of 'its 2 - =
2 an 3 *rotection an S+ift JJ E nprotecte $lp+anumeric
J1 E nprotecte umeric
1J E *rotecte Stop
11 E *rotecte Sip
! an # Intensity JJ E ormal
J1 E ormal1J E Brig+t
11 E o-isplay . Dar /
% "ust 'e Lero $lways
= "oifie Data ,ag J E 4iel +as not 'een moifie
1 E 4iel +as 'een moifie
$ttri'ute 'yte of a 4iel
0+ i "D, t
8/12/2019 23541293-CIC
38/45
7enerally@ for all fiels@ "D, is O44 - initially.
0+en user moifies t+e contents in a fiel@ t+e "D, tag is
automatically set.
*rogram may moify t+e attri'ute 'yte in t+e sym'olicmap@ 'efore sening t+e screen to t+e user@ an set "D,.
Data is transferre from all fiels w+ere "D, is O set/.
If "D, is O44 )eset/@ ata from t+at fiel is not
transferre to t+e system.
0+en is "D, set on
7 l 7 i li f i D48"D4 "
8/12/2019 23541293-CIC
39/45
1. 4or all constant fiels@ specify $S9I*.
2. 4or all varia'le fiels w+ere user can enter ata@ specify
*)O, an coe a sipper or stopper fiel at t+e en.
3. 4or all varia'le fiels w+ere user can not enter ata@ specify
*)O, an coe a sipper or stopper fiel at t+e en.
!. Sipper is a single 'yte fiel wit+ $S9I* as $,,)B.
#. Stopper is a single 'yte fiel wit+ *)O, as $,,)B.
7eneral 7uielines for coing D48"D4 "acro
"apset Coing ) les 1 of 2/
8/12/2019 23541293-CIC
40/45
1. Coe t+e mapset@ map an fiel names in column 1.
2. Coe t+e macro name D48"SD@ D48"DI an
D48"D4/ in columns N t+roug+ 1!. D goes in
columns N@ 1J an 11/.
3. Coe t+e parameters in columns 1% t+roug+ =1.
!. Separate t+e parameters 'y one comma no space/.
#. ,o improve reaa'ility@ coe eac+ parameter on a
separate line.
"apset Coing )ules 1 of 2/
"apset Coing )ules 2 of 2/
8/12/2019 23541293-CIC
41/45
9. If a parameter re4ires more t#an one line2 t#en code as mc#as yo can in one line and simply contine from colmn 19 int#e ne@t line.
:. An e@ception to le 9 is t#e I%I&IAL parameter. Code I%I&IAL
2 ; sign2 opening 4ote and at least one c#aracter in t#e first line and contine t#e string in colmns 19 t#rog# :1 in t#e scceeding lines.
. $nclose I%&IAL 0ales Eit#in 4otes. If yo need t#e 4ote symbol t#en type tEo 4otes toget#er. Do t#e same for < symbol also.
F. 6se ?@ as t#e contination c#aracter in colmn :).
"apset Coing )ules 2 of 2/
8/12/2019 23541293-CIC
42/45
CICS Comman for 4ormatte Output
8/12/2019 23541293-CIC
43/45
C CICS )CI:
"$*map-name/
"$*S,mapset-name/
I,Ows-ata-area/
4)O"ws-ata-area/
L7,8ata-value/
D-C
CICS Comman for 4ormatte Output
*ositioning a Cursor
8/12/2019 23541293-CIC
44/45
1. sing t+e IC option in t+e mapset.
2. sing t+e C)SO) option in t+e SD "$*.
3. sing t+e lengt+ attri'ute of t+e fiel wit+ SD "$*.
*ositioning a Cursor
Sample "apset evelopment
8/12/2019 23541293-CIC
45/45
1. Create a neE PDS.
). Open a neE member and code t#e mapset.
. Sa0e t#e mapset and assemble it sing t#e macro GtrngbmsH.
!. Open a CICS session.
#. Install t+e mapset using t+e comman
C", S, *)O7mapset-name/ 0.
%. Sen t+e re>uire map to t+e screen using t+e comman
CCI SD "$*map-name/ "$*S,mapset-name/ )$S 4)9B.
Sample "apset evelopment