Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2446
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 How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us