IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

restart logic to write a jcl


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tirumalareddy maheswara
Currently Banned

New User


Joined: 24 Nov 2007
Posts: 7
Location: hyderabad

PostPosted: Sat Feb 09, 2008 3:41 pm
Reply with quote

Hi

I have one file with 1 to 10000 records.I got abend at 5000 recored.I want to restart from 5001 th record .I want jcl for this query.
Normal jcl or using ICE TOOL is not a problem

Some infor : 1 to 10000 records in file1

after restart i want to move to temporary file and delete upto 5000 records and rename temporary file with input file.Please give some jcl to me


Thanks

T.Maheswara Reddy
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Feb 09, 2008 4:04 pm
Reply with quote

Search the DFSORT forum, or manual, for how to skip records.

This has been discussed many times before.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sat Feb 09, 2008 8:05 pm
Reply with quote

Hello T.Maheswara Reddy and welcome to the forums,

To properly handle restarting the abended process, there is more to consider than merely skipping records.

As the original process ran, was it producing some report? The continuation needs to be syncronized with what was done in the abended run. What about counters/accumulators - they too need to be dealt with.

Does the process write some output file(s)? Yup, those too need to be handled so that when the "re-start" is run, the output files have everything that would be in the file(s) had there been no abend.

Restart is not simply a matter of some jcl and skipping some records. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts Finding faulty logic Subscript out of... COBOL Programming 5
No new posts JCL to write the log on to a PDS file JCL & VSAM 10
Search our Forums:

Back to Top