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
 

 

How to Read records in back words from table using Cursor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
varabandi

New User


Joined: 07 Mar 2005
Posts: 2

PostPosted: Mon Jun 06, 2005 10:19 am    Post subject: How to Read records in back words from table using Cursor
Reply with quote

I have few quetions on DB2. please answer those...


1. How to read records from table in Back words Using Cursor.

2. How to solve -818 .

3. How Optimizer works? What does it do?

4. how to solve soc-7 in effctive way if it is production?
Back to top
View user's profile Send private message

laxmi

New User


Joined: 24 May 2005
Posts: 9

PostPosted: Mon Jun 06, 2005 3:19 pm    Post subject: hai
Reply with quote

1) by using scrollable cursors we can read backward and forward
the option is ABSOLUTELY N so that it fetches N records from the beginning
RELATIVELY N it fetches N records from the last record
i think it is sufficient if u have any doubts let me know
Back to top
View user's profile Send private message
asr1983

New User


Joined: 31 May 2005
Posts: 11

PostPosted: Mon Jun 06, 2005 5:40 pm    Post subject: Re: How to Read records in back words from table using Curso
Reply with quote

Hi varabandi,

Sql code -818 occurs because of the timestamp mismatch between pre-compiler and bind.

Solution is to pre-compile and bind it again

Let me know if any other solutions.

Regards,
Ram
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu Nov 03, 2005 2:56 pm    Post subject: SOC7
Reply with quote

hi frnd,
S0C7 is the common error in mainframe tech.
here is the solution to solve it:

>>>Basically you need to correcting the offending data. Many times the reason for SOC7 is an un-initialized numeric item.

>>>Examine that possibility first. Many installations provide you a dump for run time abend?s ( it can be generated also
by calling some subroutines or OS services thru assembly language).

>>> Examine the compilation output XREF listing to get the verb and the line number of the source code at this offset.

>>> Then you can look at the source code to find the bug. To get capture the runtime dumps, you will have to define some datasets (SYSABOUT etc ) in the JCL.

>>>If none of these are helpful, use judgement and DISPLAY to localize the source of error.

>>>Some installation might have batch program debugging tools. Use them.

hope enough
Back to top
View user's profile Send private message
tam

New User


Joined: 02 Nov 2005
Posts: 12
Location: zz

PostPosted: Mon Nov 07, 2005 3:33 pm    Post subject:
Reply with quote

DB2 optimizer selects the best access paths for executing the Sql Statements. Whenever a Dynamic SQl statement is issued the DB2 optimizer reads the system catalog tables to review the available indexes, the size of each table, the characteristics of the column, and other information to select the bets access path for executing the query.[/b]
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am


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