View
250
Download
0
Category
Preview:
Citation preview
7/27/2019 CICS_Trianing Class_04.ppsx
1/14
IBM MAINFRAMES
CICS Training Class -04
7/27/2019 CICS_Trianing Class_04.ppsx
2/14
Cursor Positioning Technique
Cursor positioning technique is the process of positioning the cursor
at a particular place on the screen
In CICS we have three types :
1. Static cursor positioning
2. Symbolic cursor positioning
3. Relative cursor positioning Dynamic ositioning
In static we use IC option co!e! along with the attrb parameter of
D"#$D" macro
%e nee! to co!e MOVE-1 TOsymboliclengthfieldof the map
fiel!
Co!e sen! control cursor(screen position)for relative positioning
7/27/2019 CICS_Trianing Class_04.ppsx
3/14
Program Control Commans
%e can control the e&ecution of program with control comman!s
li'e
(I)*
+C,(
R-,R)
(/0D
R-(-0S-
7/27/2019 CICS_Trianing Class_04.ppsx
4/14
!in" Comman
I!"is use! to pass control from one application program to
another which is at o#er ogic$l e%el
,he calling program main program e&pects the control to return
bac'
Data can be passe! to calle! program using C/$$0R-0
If the calle! program is not alrea!y in main storage then it is
loa!e!.
7/27/2019 CICS_Trianing Class_04.ppsx
5/14
!IN# S$nta%
EXEC CICS !IN# PROGRAM ( SUBPROGRAM NAME)
COMMAREA(WS-DATAITEM)
LENGTH(LENGTH OF WS-COMMAREA)
END-EXEC.
CONDITIONS : PGMIDERR, NOTAUTH, LENGERR
7/27/2019 CICS_Trianing Class_04.ppsx
6/14
&CT! Comman
se! to pass control from one application program to another in
&$me ogic$l e%el
,he program main program from which the control passe! will be
release! this means the control will not returne! bac'.
Data can be passe! to calle! program using C/$$0R-0
If the calle! program is not alrea!y in main storage then it is
loa!e!.
7/27/2019 CICS_Trianing Class_04.ppsx
7/14
&CT!S$nta%
-+-C CICS +C,( R/R0$ S4R/R0$ )0$-
C/$$0R-0%S5D0,0I,-$
(-),#(-),# /" %S5C/$$0R-0
-)D5-+-C
C/)DI,I/)S : $ID-RR6 )/,0,#6 (-)-RR
7/27/2019 CICS_Trianing Class_04.ppsx
8/14
RET'RN Comman
'ET'! comman! is use! to pass the control from one program
to another at a higher logical level /R CICS
4asically return as two formats
'ET'!: ,as' gets terminate! an! e&its the transaction
'ET'! T'!&I*(T'&!I*) : Release the resource but
leaves trans i! on the terminal for ne&t tas'
Return statements play a ma7or role in +seudo - Con%ers$tion
Data can be passe! using C/$$0R-0 when returning to CICS
ne&t tas'
7/27/2019 CICS_Trianing Class_04.ppsx
9/14
RET'RN S$nta%
-+-C CICS R-,R)
,R0)SID,R0)
C/$$0R-0%S5D0,0 0R-0
(-),#(-),# /" %S5D0,0 0R-0
-)D5-+-C.
/R
-+-C CICS R-,R) -)D5-+-C.Con!itions : I)8R-9 6 (-)-RR
7/27/2019 CICS_Trianing Class_04.ppsx
10/14
CICS
PROG A
LINK
RETURN
PROG C
LINK
RETURN
PROG B
XCTL
PROG D
XCTL
PROG E
RETURN
A((lication Program !ogical !e)el
!E*E!
!E*E! +
!E*E! ,!E*E!
7/27/2019 CICS_Trianing Class_04.ppsx
11/14
C.MMAREA / F1C.MMAREA
COMM'Euse! to pass !ata from one program to another when
use! with lin'+C,( with the IC clause as &,()COM+
%hen C/$$0R-0 is passe! to subprogram then the sub program
receiving fiel!s shoul! be !eclare! un!er *./COMM'E of
lin'age section only
,he length of the C/$$0R-0 an! D"#C/$$0R-0 must be
having s$melength
Data that got upd$tedin sub program will be automatically available in
main program after return comman!. EI0CE!is set when C/$$0R-0 is passe!
7/27/2019 CICS_Trianing Class_04.ppsx
12/14
i22erence 3eteen !IN# &CT! CA!!
,he CTcomman! passes control to another program6 but the
resources re;ueste! by the first program may still be allocate!. 0
tas' !oes not en! until a 'ET'!statement is e&ecute!.
%hile in I!"comman!6 program control resumes its instruction
following the (I)*parameter. ,he dis$d%$nt$geof (I)* is thatit re;uires that both the calling program an! the calle! program
remain in main memory even though both are no longer nee!e!.
whenever you !o ch$ngesto the calle! program you nee! to
compile the calling program also.
In case of I!"6 it is not nee!e! .
7/27/2019 CICS_Trianing Class_04.ppsx
13/14
!.A / RE!EASE
,he O*comman! retrieves an ob7ect program from !is' an! loa!s it
into main storage it
7/27/2019 CICS_Trianing Class_04.ppsx
14/14
Than" 5ou
Recommended