How to get cursor position from system in CICS environment ?

Answers were Sorted based on User's Feedback



How to get cursor position from system in CICS environment ?..

Answer / arun singh

There are three approches to cursor positioning.
1)static positioning.
by placing "IC" in the attrib parameter of DFHMDF for a
particuler field.
EX. DFHMDF POS=(3,16)
ATTRIB=(UNPROT,FSET,IC)
LENGTH=8
2)Dynamic symbolic positioning.
by using the symbolic name of the field
MOVE -1 TO THE LENGTH FIELD.
3)USING THE CURSOR IN THE SEND MAP.
EX. EXEC CICS SEND
MAP('............')
MAPSET('.........')
CURSOR(100)
END-EXEC.
the cursor will be placed at the position 100 of the
terminal relative to zero.......

Is This Answer Correct ?    22 Yes 7 No

How to get cursor position from system in CICS environment ?..

Answer / pof

EIBCPOSN ( from EIBBLK) gives a number
int(EIBCPOSN /80) + 1 gives line #
1 + EIBCPOSN - 80 *(int(EIBCPOSN /80)) gives column #

Is This Answer Correct ?    18 Yes 3 No

How to get cursor position from system in CICS environment ?..

Answer / amiya ranjan

You can get ur cursor position from EIBCPOSN.
give
COPY DFHAID in working storage.
from eibcposn you will get your cursor position.
suppose you have 80 columns in your screen and if your cursor is in 2nd row and 3rd column then your eibcposn is 80+3 =83
so by dividing it with 80 you will get 1 and adding 1 you will get your row number. Similarly you can get your column position by calculating with above formula given by Pof.

thanks.

Is This Answer Correct ?    12 Yes 0 No

How to get cursor position from system in CICS environment ?..

Answer / venkat

to get the cursor pos of cics environment by the concept
of 'eibcposn'.by copy this dfhbmsca we can achive this.

Is This Answer Correct ?    8 Yes 2 No

How to get cursor position from system in CICS environment ?..

Answer / guest

Get it from EIBCURPOS !

Is This Answer Correct ?    12 Yes 7 No

How to get cursor position from system in CICS environment ?..

Answer / ajeet singh

eibcposn

Is This Answer Correct ?    5 Yes 1 No

How to get cursor position from system in CICS environment ?..

Answer / harsha

1 Divide EIBCPOSN by 80.
2 Save the Quotient. Add 1 to it to get the ROW.
3 Remainder will be your column number.

Is This Answer Correct ?    6 Yes 2 No

How to get cursor position from system in CICS environment ?..

Answer / jerinjose

EXEC CICS SEND CONTROL CURSOR(23)
END-EXEC

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More JCL Interview Questions

which utility is used to run a cobol-db2 program?

0 Answers   IBM,


If the proc stepname is excluded while overriding the COND, TIME, REGION and PARM parameters while calling the proc, will the override only apply to the first step in the proc or all the steps for all the above parameters?

2 Answers  


i have a jcl containing header body and trailer .in header i have viswa body 2 6 1 9 7 trailer reddy .now i need to sort only body in either asecending or descending order how can i do it

1 Answers   L&T,


When a dataset is UNCATALOGED in a JOBSTEP, how to get its UNIT and VOL in JCL to refer in subsequent steps ?

1 Answers   IBM,


what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file

3 Answers   Virtusa,






using cursor how can you fetch more than one record into a variable

3 Answers   Syntel,


if my GDG limit has been kept as 50 and if am trying to put 60 records.what would happen. will there be any abend for this scenario

4 Answers  


What are the 4 fields in dd statement?

0 Answers  


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

0 Answers  


How to release the Output HELD by using HOLD = YES on DD statement ?

2 Answers   IBM,


what happens in execution stage in job processing?

0 Answers   IBM,


How to search strings in multiple dataset with conditions 'string1 & string2'?

1 Answers   IBM,


Categories