Beruflich Dokumente
Kultur Dokumente
MAPSET
1-8 Alpha Numeric – MAPSET --- DFHMSD
(Defined Field
MAP1 Hierarchy Mapset
MAP2 Defination)
MAP3 1-8 --------- MAP ------ DFHMDI
72
MAPS001 Compiler
Customer Details
Parameter:-
1. Physical MAP:-
2. Symbolic MAP:-
Stored in copy library i.e. user defined PDS as separate member which must be copied into
Application program.
Can be used by Application Programmer to receive or send data to the user or to chage field
Attributes or to position the cursor at required location.
3
Input Cursor or
Insert Cursor Color
Dark
01 MCNST001I
Copy MCT001M
Create PDS & Member then code Assembler Macro by using DFHMSD, DFHMD1,
DFHMDF
Type F MNOTE in command prompt or ERROR if there are any syntax error
COMPILE
ASSEMBLE
LINK EDITORS
5
Exec CICS
SEND TEXT
Form (“ Contact system Admin”) ……….. Like display “Contact system Admin”
End - Exec
Exec CICS
Send Text
End – Exec
Exec CICS
End – Exec
Exec CICS
Send Variables
MAP (WS-MAP)
MAP set (WS-MAPSET)
End – Exec
Exec CICS
Receive
MAP (WS-MAP)
MAP set (WS-MAPSET)
End – Exec
Customer Details
Cust.No. = 10
Cust.Name = XYZ
6
CUSTOMER DETAILS
Cust.No …………………..
Cust Name ……
Pr Psendo Conversation
Reinificati
Termination Reinifiation
At the time of waiting for response, release the resources i.e. terminate the
transaction or program (Connection).After receiving the response, reinitiate the
transaction or program . This Conversion is called psendo conversion.
Exec CICS
Return
TransID (“TO01”) User Defined
End – Exec
PSEuDO CONVERSATION:-
TRANS
TRO1
ONLINE SYSTEM
MAP Displayed
When message or Map sent to the terminal, transaction will be terminated & waiting
for the users response.
7
After receiving response from the user reinitiate the transaction (acquirer all the
resources)
ADVANTAGES:-
Releases all the resources at the time of waiting for the users response
COMMUNICATION AREA:-
At the time of terminating the transaction, the working storage – section variables
are stored into a variable declared in linkage section
It is global
(linkage Section)
Communication Area can be used to pass the data from on transaction to another.
PROCE4DURE DIVISION
Send
MAP (‘MAPNAME’)
MAPSET (‘MAPSET’)
End – exec
Exec CICS
Return
Transid (“TR01”)
End-Exec
Else
Exec CICS
8
End-it
If EIBCALEN = 0 Cust.No. …….
Cust Name ……..
Exec CICS Message: ………
Send
MAP(‘MAPNAME’) Enter F2 F3 F4
MAPSET(‘MAPSETNAME’)
End – Exec
Exec CICS
Receive
MAP(MAPNAME) Copy DFHAID in WS - Section
MAPSET(MAPSETNAME)
End – Exec 01 EIBAID PIC X(4)
88 DFHPF1 Value “F1”
Receive – Map – Exit 88 DFHPF2 Value “F2”
88 DFHEnter Value “Enter”
Exit
Evaluate EIBAID
When DFHEnter 88 DFHPF24 Value “F24”
When DFHPF11
End – Evaluate
If McnstNoI = Zeroes
Move “Invalid cust. No.” to MMESGO
Exec CICS Move - 1 to McnstNol – Dynomic way to position the cursor
Send
MAP (MAP NAME)
MAPSET(MAPSETNAME)
End – Exec
Return
Transid(“TR01”)
End – Exec
End if
If Mcnst NoI (1:1) < > 1
Move Spaces To MMESGO
Move “First digit Must be 1” to MMESGO
Move – 1 To McnstNoL
Exec CICS
Send
10
MAP(MAPNAME)
MAPSET(MAPSET NAME)
End – Exec
Exec CICS
Return
Transid (“TR01”)
End-Exec End-If
Move McnstNoI to (DFHCommArea(1:5)) Ws-Cust-No
If McnstNamI = Spaces
End If
CURSOR TECHINQUES:-
(i) Static –By specifying i.e in Assembler macro, Cursor can be positioned at
required field.
Eg:- Invalid Data validation or to jump from one field to another field
System defined global variable which must be declared in linkage section with 01
level no
Which can be used to pass the data from on program to another program, on
transaction to another transaction.
PROCEDURE DIVISION :-
We use XCTL
Exec CICS
XCTL
Program (“CICSOOL”)
CommArea(DFHcommArea)
Length (Comm-Length)
End- Exec
The diff between XCTL &LINK is when we use XCTL the control is not Expected to
back to the screen but when we use link it will expect that the control will back
Exec CICS
LINK
Program(“CICS001”)
CommAre(DFHCommArea)
Length(Comm – length)
End Exec
If we use F8 Key Page up & F9 for Page down, data is to be transferred from
database to screen.But we use temp area for storing this info.this is call queene
01 Ws-Comm-Area
02 Transfer - data
02 Save – data
02 Multiple – rows
03 Ws-data PIC X(5) access 1,00,000times
12
LINK:-
Which can be used to transfer the control from one prog to another prog
Control is expected back to original prog.(no need of explicit CICS command to
transfer back)
Ef:- Validations
Socket programming
Complex business functionalities
XCTL:-
Which can be used to transfer the control from one prog. To another Prog.
Control is not expected back to original prog
To get the control back to main prog XCITL command must be used in sub program
Eg:- Transfering the control from main menu (prog) to sub prog or subprog to main
menu(Prog)
MOVE 30 TO WS_TSO_LEN
End-Exec
Add + 1 to Ws-TSQ-Item
To define queid in TST exate member &write the following assembler maoro.
QueID = “TS001”
Move +1 to Ws-TSQ-ITEM
Perform until Qzero (End of Queue)
Exec CICS
ReadQ TS
QUEUE (“TS001”)
Into(Ws-TSQ-AREA)
Length(Ws-TSQ-LEN)
Item(Ws-TSQ-Item)
End – Exec
Exec CICS
DeleteQTS We cannot delete single row in queue
QUEUE(“TS001”) When we apply delete command the queue
End - Exec becomes empty
Queue is global
Exec CICS
RewriteQts
From (Ws-TSQ-Area)
Queue(“TS001”)
Length(Ws-TSQ-Len)
Item(Ws-TSQ-Item)
End – Exec
Used to pass the data from one CICI to another CICS region
Used to pass the data from CICS to Batch Program
TDQ
01 Ws-Hd
PROCEDURE DIVISION
TSQ TDQ
Records entered in entry Sep. order Records entered in entry sep.order with
With relative record number out relative record number
Multiple read commands can be applied Only one read command can be applied
Against rows against rows (Read is destructive)
Records can be accessed Sepertially Only sequential access
Or random
Can be used to pass the data from Can be used to pass data withinCICS
One prog to another within CICS region region or outside of CICS region like
Batch