Sei sulla pagina 1di 14

IBM MAINFRAMES

CICS Training Class -04

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 TO symbolic length field of the map fiel! Co!e sen! control cursor(screen position) for relative positioning

Program Control Comman s

%e can control the e&ecution of program with control comman!s li'e

(I)* +C,( R-,.R) (/0D R-(-0S-

!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 1main program2 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!.

!IN# S$nta%

EXEC CICS !IN#


PROGRAM ( SUBPROGRAM NAME) COMMAREA(WS-DATAITEM) LENGTH(LENGTH OF WS-COMMAREA)

END-EXEC. CONDITIONS : PGMIDERR, NOTAUTH, LENGERR

&CT! Comman

.se! to pass control from one application program to another in &$me ogic$l e%el ,he program 1main program2 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!.

&CT! S$nta%

-+-C CICS +C,(


R/3R0$ 1 S.4 R/3R0$ )0$-2 C/$$0R-01%S5D0,0I,-$2 (-)3,#1(-)3,# /" %S5C/$$0R-02

-)D5-+-C C/)DI,I/)S : 3$ID-RR6 )/,0.,#6 (-)3-RR

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'

RET'RN S$nta%
-+-C CICS R-,.R)

,R0)SID1,R0)2 C/$$0R-01%S5D0,0 0R-02 (-)3,#1(-)3,# /" %S5D0,0 0R-02 -)D5-+-C. 1/R2 -+-C CICS R-,.R) -)D5-+-C. Con!itions : I)8R-9 6 (-)3-RR

A((lication Program !ogical !e)el


CICS PROG A LINK RETURN PROG B XCTL PROG C LINK RETURN

!E*E! 0

!E*E! ,

!E*E! PROG D XCTL PROG E RETURN

!E*E! +

C.MMAREA / 0F1C.MMAREA

COMM)'E) use! 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$me length Data that got upd$ted in sub program will be automatically available in main program after return comman!. EI0C) E! is set when C/$$0R-0 is passe!

0i22erence 3et4een !IN# &CT! CA!!



,he 1CT comman! 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$ge of (I)* is that it 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$nges to the calle! program you nee! to compile the calling program also. In case of I!" 6 it is not nee!e! .

!.A0 / RE!EASE

,he O)* comman! retrieves an ob7ect program from !is' an! loa!s it into main storage it<s primarily use! "or a constant table that will be available system5wi!e.4y using this we are re!ucing the system overhea! -+-C CICS (/0D
R/3R0$1 )0$-2 S-,1 /I),-R5R-"2 (-)3,#1D0,050R-02

-)D5-+-C 'E E)&E is use! to release the (/0D-D program:table:map. -+-C CICS R-(-0SR/3R0$1 )0$-2

-)D5-+-C Synta& : )/,0.,#6 3$ID-RR

Than" 5ou

Potrebbero piacerti anche