View previous topic :: View next topic
|
Author |
Message |
Rajani Krishna
New User
Joined: 24 Oct 2007 Posts: 3 Location: India
|
|
|
|
Hi!
Can you tell me how to do dynamic positioning of the cursor in Assembly language CICS. I am sending -1 to the field+L with cursor option in send map and also have IC in the field. But the cursor is not moving dynamically as per the requirement. I even initialized the map by passing low values to it in the beginning of the program. |
|
Back to top |
|
|
hemanth.nandas
Active User
Joined: 18 Aug 2007 Posts: 120 Location: India
|
|
|
|
Hi Rajani,
Quote: |
Can you tell me how to do dynamic positioning of the cursor in Assembly language CICS |
Are you writing CICS program in Assembly Program?
Quote: |
I am sending -1 to the field+L with cursor option in send map and also have IC in the field. |
ATTRB=IC can be overridden by the CURSOR option of the SEND MAP command that causes the write operation.
Quote: |
But the cursor is not moving dynamically as per the requirement. |
What does it mean?
Do you wanna move cursor to next field as values entered? |
|
Back to top |
|
|
Rajani Krishna
New User
Joined: 24 Oct 2007 Posts: 3 Location: India
|
|
|
|
hi Hemanth,
Thanks for the immediate reply. Yes, I am writing CICS program in Assembly language and I am trying to position the cursor on the field on the screen at the place of the error. It will help more if you can give me a sample program of CICS in assembly langauge with dynamic positioning of cursor. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi Rajani !
CICS-ASSEMBLER, Great !
You have to move the -1 to the Length-Field of the Map-Field in which the
user entered somthing wrong.
You could also change the colour by using other attributes.
Regards, UmeySan |
|
Back to top |
|
|
Rajani Krishna
New User
Joined: 24 Oct 2007 Posts: 3 Location: India
|
|
|
|
Hi UmeySen,
I have done that. But it is not moving. I moved low-values to the map in the start of the program. I moved IC to all the fields where dynamic cursor postioning is needed, moved -1 to the field+L, added cursor option to the send map. But still, the cursor is not moving to the field dynamically. Colour change is working successfully. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Essentially everything seams to be right. Normaly, i have a IC on the first
MapField, that the user has to enter. Then, with Tab he could move to the next MapField. After receiving Map and checking MapFields, i move -1 to the LengthByte of that MapField, where the first error has occured. Also i change colour of other MapFields, which are in error. I also change the attributes of the correct MapFields to protect and askip before resendeing the Map.
Regards, UmeySan |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
One more hint:
MVC -1 to the FldnameF for cursor positionig
exec cics
send map('xxxx') mapset('xxxx')
dataonly cursor
end-exec
Regards, UmeySan |
|
Back to top |
|
|
Earl
Active User
Joined: 17 Jun 2007 Posts: 148 Location: oklahoma
|
|
|
|
Sorry no cigar,
FldmameF is incorrect
for assembler its
mvc FldnmeL,=X'FFFF'
I copied the following statement from a working Assembler program..
MVC M1SSN1L,=X'FFFF' POSITION CURSOR TO SSN FIELD
EXEC CICS SEND MAP ('XXXXXXXX') CURSOR END-EXEC |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi Earl !
Sorry, right, must be L instead of F.
But that's what i wrote in my post before.
>> I move -1 to the LengthByte of that MapField, where the first error has occured. <<
Thanks for correcting !
UmeySan |
|
Back to top |
|
|
revel
Active User
Joined: 05 Apr 2005 Posts: 135 Location: Bangalore/Chennai-INDIA
|
|
|
|
Hi Rajani Krishna,
Quote: |
But the cursor is not moving dynamically as per the requirement |
May be because, you didn't used CURSOR Option while SENDING MAP
Say,
Code: |
EXEC CICS SEND
MAP(Map name)
MAPSET(Mapset Name)
CURSOR
END-EXEC. |
|
|
Back to top |
|
|
haibrs
New User
Joined: 03 Jan 2007 Posts: 8 Location: Mumbai
|
|
|
|
Hi Rajani,
Did you got the solution for Cursor positioning !
If so san you explain me too..the same plzzz!
I have the same problem..but i am able to get the Dynamic Cursor position correctly(i.e. by move `ffff` to length field)
but my default cursor position defined in BMS( by giving ATTRB=IC) is not working properly.
My problem is occuring when i send the map without errors that time the default cursor is always pointing at (row,col)=(1,1) but my default(actual) position is defined in BMS is different.
Regard's
BRS |
|
Back to top |
|
|
Earl
Active User
Joined: 17 Jun 2007 Posts: 148 Location: oklahoma
|
|
|
|
BRS,
if you specify CURSOR on the send,
BMS expects an override, you MUST always specify -1 (x'ffff') to length field ,
if you want to default then you need a CICS SEND without cursor option. |
|
Back to top |
|
|
haibrs
New User
Joined: 03 Jan 2007 Posts: 8 Location: Mumbai
|
|
|
|
Earl,
Thanks for your Reply...!
Is there any chance chance or way handle both conditions.
Regards
BRS |
|
Back to top |
|
|
Earl
Active User
Joined: 17 Jun 2007 Posts: 148 Location: oklahoma
|
|
|
|
BRS.
not that I am aware of,
you will need to code for it.
perhaps have 2 different sends.
-Earl |
|
Back to top |
|
|
|