IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cursor in telon


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Is SQLCODE -811 possible while fetchi... DB2 1
No new posts Restart logic by using cursor name in... DB2 1
No new posts Seeking Resolution for SQKCODE -991 o... DB2 2
No new posts Multiple rows within Cursor when Coun... DB2 14
No new posts Dynamic cursor name in Cobol program COBOL Programming 1
Search our Forums:

Back to Top