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
 

 

Fetch N numbers of rows thru a batch jobs

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

New User


Joined: 05 Jul 2004
Posts: 6
Location: mumbai

PostPosted: Sun Feb 03, 2008 6:13 pm    Post subject: Fetch N numbers of rows thru a batch jobs
Reply with quote

Hi,
I am trying to fetch N numbers of rows thru a batch jobs. But my job gets abend after fetching cerntain number of rows. When I run the same job, cursor points to the first row.

Does anyone know to to locate a cursor on the current row ( one row after which the abend has occured??) when I re submit the same job?

Please let me know if I am not clear or more information is required.

Abhijeet
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Sun Feb 03, 2008 6:38 pm    Post subject: Reply to: DB2 query
Reply with quote

If You posted the abend message and the db2 status/return codes
You might get a quicker answer..

if You had lurked( looked around) the other posts a little bit,
you should have noticed that
the job log with the error messages is the the first thing that gets asked

You did not give any clue on how to proceed on the problem determination
from your description it could be anything

Why not try to get rid of the abend, just to get started, and avoid reruns ??
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Feb 03, 2008 6:46 pm    Post subject:
Reply with quote

Hello,

Quote:
Does anyone know to to locate a cursor on the current row ( one row after which the abend has occured??) when I re submit the same job?
I'd suggest you do some research on checkpoint/restart/recovery - if there is some reason to not get rid of the abend(s). Far better and much less complicated to correct the job.
Back to top
View user's profile Send private message
ahalyah

New User


Joined: 13 Dec 2007
Posts: 25
Location: india

PostPosted: Wed Feb 06, 2008 3:41 pm    Post subject: Re: Fetch N numbers of rows thru a batch jobs
Reply with quote

[quote="abhijeet3162002"]Hi,
Does anyone know to to locate a cursor on the current row ( one row after which the abend has occured??) when I re submit the same job?

Have u tried with restart logic?
Here we have to set a commit frequency.
For ex if we set the commit frequency 100 then if any abend happens then the cursor will be at 101 rec. But i think it is not possible to place the cursor one row after which the abend has occured.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Feb 06, 2008 3:46 pm    Post subject:
Reply with quote

what abend? a non-zero sqlcode is NOT an abend.

op obviously is not interested in this thread.
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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm


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