View previous topic :: View next topic
|
Author |
Message |
deepali33
New User
Joined: 21 Sep 2008 Posts: 4 Location: pune
|
|
|
|
Hi,
I have one sequential file with variable length.
I want to update that file.
So I am using rewrite statement.
But at the time of execution it is giving abend.
& there is file error at rewrite statement i.e. file status is 44.
44 : Rewrite attempt with invalid length. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
And what is your problem? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well, with so much information at hand it's so very hard to know where to start.
What is the DSORG of the file.
Are you writing longer than the original record.
DCB attributes of the file.
File is on which media. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Not to mention -- which abend code did you get?
You basically tell us nothing and expect us to psychically read your mind to know these details? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Remember - if you are to rewrite a record it must be of the same length as the original record as it has to fit in the same space as it was read from. |
|
Back to top |
|
|
kapiltamrakar
New User
Joined: 24 May 2009 Posts: 41 Location: Hyderabad
|
|
|
|
can you please provide the FD section of that file and the copybooks / record lengths that are used for that file along with the record length which you are trying to rewrite while getting abend.
( I guess there must be 2-3 different kind of records are getting written in th same file that make it varuable length.) |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
(I guess there must be 2-3 different kind of records are getting written in th same file that make it varuable length.) |
Or it could be an OCCURS DEPENDING ON -- the other way of creating variable length records. |
|
Back to top |
|
|
kapiltamrakar
New User
Joined: 24 May 2009 Posts: 41 Location: Hyderabad
|
|
|
|
Hi Robert,
well said... thanks for adding point missed by me...
Regards,
Kapil. |
|
Back to top |
|
|
|