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
 

 

Job gets abend when reading 100,000 records from input file

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

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Tue Feb 20, 2007 9:39 am    Post subject: Job gets abend when reading 100,000 records from input file
Reply with quote

I have 100,000 record in my input file.

I'm reading that input file, doing some processing and writing it into the output file.
But then the program abends when the process has completed some X number of records.

My questions are:

1. Whether the processed records(X) are written in ouput file or not?
2. If they are written, I want to restart the process from the record where the program abended.
3. I want to know how much records are getting copied into the output file without opening that output file.
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Feb 20, 2007 10:20 am    Post subject:
Reply with quote

There are different ways you can implement CHECKPOINT/RESTART logic.

To answer your question:
1. Really depends on your program logic, but if the program has executed the WRITE statement then the processed records are written to file, whether the dataset is deleted or retained depends on your JCL DISP option.

2. You can display a counter after writting a record to sysout/output file, (to track count of number of records written to output file). If the job abends you can look at the count and find out how many records were written to output file.

3. The above display count will tell you the actual number of records written to output file.
Back to top
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Tue Feb 20, 2007 10:35 am    Post subject:
Reply with quote

Thanks for your reply, its really useful to me.

Can you explain a little more about checkpoint. I read about checkpoint theoritically, but I don't know how to implement it in program.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm


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