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
 

 

In vsam, how to point to specific record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
nareshdacha

New User


Joined: 12 Jan 2010
Posts: 66
Location: US

PostPosted: Thu Jul 15, 2010 8:19 am    Post subject: In vsam, how to point to specific record
Reply with quote

VSAM file having 1000 records. Job got abend while processing the 600th record and job got failed. Again i want to restart the job not from begining instead i want to restart it from 600th record only. How to restart ?????
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 15, 2010 8:49 am    Post subject:
Reply with quote

Make a copy and skip 600 records.

Idcams : REPRO SKIP(600)
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: Thu Jul 15, 2010 9:05 am    Post subject:
Reply with quote

Hello,

Quote:
How to restart ?????
This depends on how the process is implemented.

You may be able to run from a copy of the input that only has the unprocessed data, but usually there is more to a "restart".

Often, the best way to handle this is to reload the file and rerun the entire process.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Jul 15, 2010 4:38 pm    Post subject:
Reply with quote

If the program using the VSAM file is having check-point-restart logic implemented, you could restart from the last check-point. And if it's a prodcution-abend, and there is no check-point restart available in the program - possibly you can use what Peter and Dick has said. However, if ever I'd to strip the records from input, for a production run, I had to give pretty decent explanations to my super-visors even if I knew I've taken care of every aspect from business and system per se.
Back to top
View user's profile Send private message
santy
Warnings : 1

New User


Joined: 19 Jul 2007
Posts: 22
Location: mumbai

PostPosted: Tue Sep 14, 2010 11:11 am    Post subject: Reply to: In vsam, how to point to specific record
Reply with quote

as per peter,

yes u can restart your read process after 600 records, using PERPRO SKIP(600).

but in this case u know the no of record you have to skip, if the file size is large and more no. of records then u have to use other logic.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Sep 14, 2010 2:39 pm    Post subject:
Reply with quote

Do you really deal with production abends, this way?
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: Tue Sep 14, 2010 7:49 pm    Post subject:
Reply with quote

Hello,

Quote:
but in this case u know the no of record you have to skip, if the file size is large and more no. of records then u have to use other logic.
Even if you know the "number" it is not the proper way to do most restarts. . .

Hi Anuj,

Quote:
Do you really deal with production abends, this way?
We can only hope that someone else is responsible for production. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Sep 15, 2010 3:59 pm    Post subject:
Reply with quote

Well, yeah..Dick.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 5 Fri Jan 20, 2017 12:36 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am


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