Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Cursor in telon

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
sunnybunny

New User


Joined: 29 Nov 2005
Posts: 49

PostPosted: Thu Jun 19, 2008 2:33 pm    Post subject: Cursor in telon
Reply with quote

Hi,

Can anyone help me on this.

I have the following requirement in telon.

There are two screens A,B. The layout of 'A' screen is as follows.

1. Read
2. Update
3. Delete

Option :
Emply No :

From screen A i have to perform the following.

1. From screen A when user selects Option 1 and employee No as '100' then it should read DB2 table
and it has retrieve all the employee numbers from the table which are gretaerthan or equal to
the entered Employee.

2. From screen A when user selects Option 2 and emplyee No as '100' then it should read DB2 table
and it has retrieve all the employee numbers from the table which are equal to the entered Employee.

For both the above mentioned points screen B will have PF7, PF8 logic to show the records.

To do this it requires two cursor queries with AUTOEXEC option.
I am able to add AUTOEXEC and BROWSE for point 1.

But when I tried to add AUTOEXEC and BROWSE for point 2 telon is showing following error.

"MULTIPLE BROWSE REQUESTS IN DATA GROUP"

Can any one help how to rectify this.
or Is there any other method to achieve above problem???


Thanks
Sunny
Back to top
View user's profile Send private message

ajithkumarsl

New User


Joined: 23 Oct 2006
Posts: 19
Location: Chennai

PostPosted: Fri Jun 20, 2008 12:20 pm    Post subject:
Reply with quote

Hi Sunny,

Why you need to use an 'AUTOEXEC' in the second Case?

What I understand is In the second Case, ie when you want to update the details of the Employee, you have the Key with you.
So you can excecute a Unique read and populate in the next screen.

Please correct me if I am wrong.
Back to top
View user's profile Send private message
sunnybunny

New User


Joined: 29 Nov 2005
Posts: 49

PostPosted: Fri Jun 20, 2008 12:34 pm    Post subject:
Reply with quote

Hi Ajit,

In second case also first I need to display all the employees which are having the employee No# 100 in the screen.
Then user selects any one of the row from the list screen for update.

So I need to use one more cursor in this case.

Please let me know what to be done in this case.

Regards,
Sunny.
Back to top
View user's profile Send private message
ajithkumarsl

New User


Joined: 23 Oct 2006
Posts: 19
Location: Chennai

PostPosted: Fri Jun 20, 2008 12:46 pm    Post subject:
Reply with quote

Hi Sunny,

Then you can use the same 'AUTOEXEC' in the second case also.

IT seems to be like doing the same thing for the both options.

Please correct me if I am wrong.
Back to top
View user's profile Send private message
sunnybunny

New User


Joined: 29 Nov 2005
Posts: 49

PostPosted: Fri Jun 20, 2008 1:04 pm    Post subject:
Reply with quote

No Ajith.... you can not use AUTOEXEC twice.

I tried to add AUTOEXEC and BROWSE for point 2 also. Telon is showing following error.

"MULTIPLE BROWSE REQUESTS IN DATA GROUP"


Is there any other way to do this?????

Reagrds,
Sunny.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Release of Adabas Cursor mohitsethi All Other Mainframe Topics 1 Mon Feb 06, 2017 8:36 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us