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
 

 

UPDATING GDG genaration file

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

New User


Joined: 31 Mar 2005
Posts: 6
Location: Chennai

PostPosted: Fri Jul 22, 2005 2:25 pm    Post subject: UPDATING GDG genaration file
Reply with quote

Problem goes like this

I am reading some data from a table and writing on to a generation of GDG.When write fails i keep track of the count and rewrite records to the same generation using restart logic.

say i have commit count = 10 and write fails in 14 th record.

how do i rewrite failed records as well as update records from 11.

Is it a good practice to do so.Suggestions are welcome.

Thanks in advance for all replies from fellow Forum mates.

36_2_35.gif 36_2_35.gif
Back to top
View user's profile Send private message

withnams

New User


Joined: 06 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Fri Jul 22, 2005 3:46 pm    Post subject:
Reply with quote

Its not a good programming practise. The process is to commit after 'n' records and write those 'n' records into the file.
This way you can avoid the issue.
Back to top
View user's profile Send private message
che

New User


Joined: 31 Mar 2005
Posts: 6
Location: Chennai

PostPosted: Fri Jul 22, 2005 3:51 pm    Post subject: Re: UPDATING GDG genaration file
Reply with quote

mr.chokalingam,

issue is whatif write fails in between. If u read the problem again u wud
have seen commit count is 10 records.

whatif write fails between 10 and 20. icon_question.gif


how do i write data on to the same generation with new fetch of data from the table. without deleting records already written.


36_2_35.gif
Back to top
View user's profile Send private message
nspreddy

New User


Joined: 29 Jul 2005
Posts: 1

PostPosted: Fri Jul 29, 2005 2:35 pm    Post subject: Re: UPDATING GDG genaration file
Reply with quote

Pls clear abt this topic
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Fri Jul 29, 2005 3:08 pm    Post subject: Re: UPDATING GDG genaration file
Reply with quote

My suggestioin is

1. Create GDG new version with Disp as (Mod,Catlg,Keep)

2. Have 10 LRCL restart file with value as 000000000 & open it in I-O mode & update the counter (Commit-write) in the periodic interval.

3. Make the pgm to read restartfile, if its zero start process from 1. Else jus read infile till read count > commit count

Hope it shd works...

Correct me if I am wrong.
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 Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


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