Resizing Badly Sized Files With JRF if it works ?

  • Abulfazl
  • Topic Author
  • Offline
  • New Member
  • New Member
More
17 years 6 months ago #2030 by Abulfazl
Problem in Resizing Files



I archived my history files and then noticed that there was no

effect on the physical size of history file.

So I took jstat for he file of FOREX$HIS

>jstat FBNK>FOREX$HIS



and got the result



jsh TEM5 ~ -->jstat FBNK.FOREX$HIS

File ..nk.datastFBNK.FORE000

Type=J4 , Hash method = 4

Groups = 10239 , Frame size = 4096 bytes , Secondary Record Size = 8192 bytes





Record Count = 11873 , Record Bytes = 9356691

Bytes/Record = 788 , Bytes/Group = 913

Primary file space: Total Frames = 10240 , Total Bytes = 9356691

Secondary file space: Total Frames = 0 , Total Bytes = 0



so seeing a diffrence in Grups and Total Frames I decided to to resize this badly sized file

using jrf utility





jsh TEM5 ~ -->jrf -S2900..nk.datastFBNK.FORE000

&COMO&]D Type J4, 2 records at size 47, Resize from modulo 1 to 2901.

&ED&]D Type J4, 2 records at size 45, Resize from modulo 1 to 2901.

&PH&]D Type J4, 2 records at size 45, Resize from modulo 1 to 2901.

&SAVEDLISTS&]D Type J4, 2 records at size 53, Resize from modulo 1 to 2901.

&TEMP&]D Type J4, 2 records at size 47, Resize from modulo 1 to 2901.

D:

Please Log in or Create an account to join the conversation.

More
17 years 6 months ago #2031 by chid
Replied by chid on topic Resizing Badly Sized Files
Hi,

It seems you have not yet verified the present file status with the command 'jstat'.

I hope, what you have done is correct.



If you see through the jstat command you may check whether

Groups and Primary File space: Total Frames are 2901. But the Bytes/Group would be varying. This would indicate that the file has been resized.



Otherwise, pl.add. few records and do the resizing with 'jstat' and 'jrf' again but this time you need to take the resulting data BEFORE & AFTER for both the commands. It would make you sure whether the process has gone through or not.



Simple mechanism: To ensure whether the no.of Groups have been changed or not.

Please Log in or Create an account to join the conversation.

  • Abulfazl
  • Topic Author
  • Offline
  • New Member
  • New Member
More
17 years 6 months ago #2032 by Abulfazl
Replied by Abulfazl on topic Resizing Badly Sized Files
Hi,



I actually didn't mentioned the status of file after running jrf because it was the same and there was no change.



With Regards

Abulfazl

Please Log in or Create an account to join the conversation.

More
17 years 6 months ago #2033 by chid
Replied by chid on topic Resizing Badly Sized Files
Is the present file status-output (after resizing) with the command 'jstat' , still like the old one? Groups is still 10239?

Please Log in or Create an account to join the conversation.

  • Abulfazl
  • Topic Author
  • Offline
  • New Member
  • New Member
More
17 years 6 months ago #2034 by Abulfazl
Replied by Abulfazl on topic Resizing Badly Sized Files
Yes, there was no change in the result of jstat adn it was same in words like before resizing.

Please Log in or Create an account to join the conversation.

Time to create page: 0.036 seconds