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 Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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