Operating System - OpenVMS
1748106 Members
4727 Online
108758 Solutions
New Discussion юеВ

Re: %RMS-F-RSZ, invalid record size

 
Not applicable

%RMS-F-RSZ, invalid record size

Hi,

While updating the file using sys$update I am getting following error.

%RMS-F-RSZ, invalid record size

From VMS help I get to know, there is some problem with the record size of the file.

Could you help me to know how to check the record size of the current file?
And is it possible to change the record size of a file?

Here is the output of dir /full and ana /rms


$ dir test.dat /full

Directory DKA200:[PROGRAMS]

TEST.DAT;1 File ID: (93465,43,0)
Size: 9/9 Owner: [NITIN,AUTH]
Created: 10-MAR-2009 12:25:20.59
Revised: 10-MAR-2009 12:25:20.63 (1)
Expires:
Backup:
Effective:
Recording:
Accessed:
Attributes:
Modified:
Linkcount: 1
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 9, Extend: 1000, Global buffer count: 0, No version limit, Contiguous best try
Record format: Undefined, maximum 0 bytes, longest 3732 bytes
Record attributes: None
RMS attributes: None
Journaling enabled: None
File protection: System:RWED, Owner:RWED, Group:RE, World:
Access Cntrl List: None
Client attributes: None

Total of 1 file, 9/9 blocks.



$ ana /rms test.dat

Check RMS File Integrity 10-MAR-2009 12:26:35.60 Page 1
DKA200:[PROGRAMS]TEST.DAT;1


FILE HEADER

File Spec: DKA200:[PROGRAMS]TEST.DAT;1
File ID: (93465,43,0)
Owner UIC: [NITIN,AUTH]
Protection: System: RWED, Owner: RWED, Group: RE, World:
Creation Date: 10-MAR-2009 12:25:20.59
Revision Date: 10-MAR-2009 12:25:20.63, Number: 1
Expiration Date: none specified
Backup Date: none posted
Contiguity Options: contiguous-best-try
Performance Options: none
Reliability Options: none
Journaling Enabled: none


RMS FILE ATTRIBUTES

File Organization: sequential
Record Format: undefined
Record Attributes:
Maximum Record Size: 0
Longest Record: 3732
Blocks Allocated: 9, Default Extend Size: 1000
End-of-File VBN: 9, Offset: %X'016C'
File Monitoring: disabled
Global Buffer Count: 0


The analysis uncovered NO errors.


ANA/RMS TEST.DAT

Regards,
Nitin


5 REPLIES 5
Ian Miller.
Honored Contributor

Re: %RMS-F-RSZ, invalid record size

You can change file attributes using SET FILE/ATTRIBUTE

As that file has an undefined record format then there is not a log ANAL/RMS can check.
Should it be another record format?
____________________
Purely Personal Opinion
Joseph Huber_1
Honored Contributor

Re: %RMS-F-RSZ, invalid record size

?? While updating the file using sys$update I am getting following error.

What does this mean? sys$update is a directory,
what did You do really resulting to this error ?
http://www.mpp.mpg.de/~huber
Not applicable

Re: %RMS-F-RSZ, invalid record size

Hi Joseph,

I have written a C program to open a file and update the file test.dat (given file info above). For opening the file I am using VMS system service $open and for updating the file I am using RMS routine $update.

Regards,
ajaydec
Kris Clippeleyr
Honored Contributor

Re: %RMS-F-RSZ, invalid record size


Re: Joseph

> sys$update is a directory,
> what did You do really resulting to this error ?

Ayadec probably called the $UPDATE RMS service
(from C you have to call it "sys$update")

Re: ayadec
Make sure RAB$W_RSZ is properly filled in in the RAB.

Greetz,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Hein van den Heuvel
Honored Contributor

Re: %RMS-F-RSZ, invalid record size

The RMS system service SYS$UPDATE takes the RAB field RAB$W_RSZ as input for the record size.

For a SEQUENTIAL file, such as here, that record size MUST be exactly the same as the original record length.
The preceeding SYS$GET will have filled RAB$W_RSZ... don't change it.

If you _think_ you are not changing the record size, then you may want to provide more details about the code, check for memory over writes and so forth.

What problem are you really trying to solve?

You may have to create a new file to hold the changed data.

hth,
Hein.