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
 
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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