Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Embedded Cursors

Posted on 2004-09-01
6
537 Views
Last Modified: 2006-11-17
Is it possible to have cursors within cursors in Mainframe DB2 ? Is this the same as Scrollable cursors ? If cursor in curor is possible, where can i get more info about it ? Thanks.
0
Comment
Question by:hellomdp
  • 2
  • 2
6 Comments
 
LVL 3

Expert Comment

by:lwilkin7
ID: 11957191
What do you mean by cursor within a cursor?

You can open multiple cursors at one time.  For ex., you can open cursor1, fetch a row, open cursor2 based on the row fetched from cursor1, nest the loops, etc.

Lloyd
0
 

Author Comment

by:hellomdp
ID: 11958370
No. I have used multiple cursors, and that concept is fine.

An analogy, SUBSELECT ===> This is a SELECT within a SELECT. Similarly, Can we have a cursor within a cursor ?

Thanks,
hellomdp.
0
 
LVL 3

Accepted Solution

by:
lwilkin7 earned 75 total points
ID: 11958403
No, you cannot have a cursor within a cursor.

Lloyd
0
 

Author Comment

by:hellomdp
ID: 11960806
ok...thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question