Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Why we move -1 to set the CURSOR dynamically

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
Author Message
eprabinkumar

New User


Joined: 07 Mar 2005
Posts: 1

PostPosted: Mon Mar 07, 2005 9:32 pm    Post subject: Why we move -1 to set the CURSOR dynamically
Reply with quote

hi all,

i am a new user to the site.....

can anyone tell me why we move -1 to the length attribute of the map field,why not zero

prabin :| [/b]
Back to top
View user's profile Send private message
References
kingofmf

New User


Joined: 02 Mar 2005
Posts: 13
Location: Bangalore

PostPosted: Tue Mar 08, 2005 12:00 am    Post subject: L=-1 for dynamic cursor positioning
Reply with quote

hi prabin,
the reason of your q. is as follows-
Whenever we type something in a field of a physical map,the corredponding L symbolic map element is field with the length,L=0 means it doesn't contains anything,L=-1 means the cursor is positioned on that field. so moving -1 to a L field means to move the cursor to the start of that field in the physical map,this we can do dyanamically in our prog. ie we can dynamically control the position of the cursor fom one field to another field ,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1