Change of size and format, statistics, properties
See file statistics:
jstat -v F.SAMPLE File C:\r11\bnk\bnk.run\F.SAMPLE Type=J4 , Hash method = 5 Created at Tue Nov 20 19:38:25 2012 Groups = 101 , Frame size = 4096 bytes , Secondary Record Size = 8192 bytes Restore re-size parameters : (none) File size = 417792 bytes , Inode = 29838 , Device = Id 24915 Last Accessed Tue Nov 20 19:50:30 2012 , Last Modified Tue Nov 20 19:50:30 2012 Backup = YES , Log = YES , Rollback = YES , Network = NO Record Count = 1 , Record Bytes = 45 Bytes/Record = 45 , Bytes/Group = 0 Primary file space: Total Frames = 101 , Total Bytes = 45 Secondary file space: Total Frames = 0 , Total Bytes = 0
NOTE
101 - number of groups - was defined when file was created.
Add more records:
COPY FROM F.SAMPLE REC1,REC2 1 records copied
Try to resize the file:
jrf -V F.SAMPLE ... Downsizing skipped from modulo 101 to 3.
Resize it anyway:
jrf -VD F.SAMPLE ... Downsizing from modulo 101 to 3
Change file type to JR:
jrf -H6 F.SAMPLE
See statistics now:
jstat -v F.SAMPLE File Type = JR, Hash method = 5, Created = Tue Nov 20 19:56:00 2012 Frame size = 4096, OOG Threshold = 2048 File size = 8192, Freespace = 0 frames Internal Modulo = 3/7/11, External Modulo = 13 Inode no. = 29838, Device no. = 24915 Accessed = Tue Nov 20 19:56:13 2012, Modified = Tue Nov 20 19:56:13 2012 Backup = YES, Log = YES, Rollback = YES, Secure updates = NO Deallocate pointers : NO Deallocate frames NO Revision level = 2 Record Bytes = 82, Record Count = 2 Bytes/Record = 41, Bytes/Group = 82 Data Frames = 1, Ptr Frames = 0 OOG Bytes = 0, OOG Frames = 0 Sum Squares = 3362, Std Dev Mean = 41
Turn on secure updates:
jchmod +S F.SAMPLE
Check the result:
jstat -v F.SAMPLE ... Backup = YES, Log = YES, Rollback = YES, Secure updates = YES ...
Delete a record:
DELETE F.SAMPLE REC2 1 record(s) deleted.
Add data sections:
CREATE-FILE F.SAMPLE,TWO TYPE=JR [ 417 ] File F.SAMPLE]MTWO created , type = JR
CREATE-FILE F.SAMPLE,THREE TYPE=JR [ 417 ] File F.SAMPLE]MTHREE created , type = JR
Create a record in a section:
JED F.SAMPLE,TWO REC5 0001 Section 2/1 0002 Section 2/2 0003 Section 2/3
See that all sections use the same dictionary:
LIST F.SAMPLE,TWO F.SAMPLE,TWO.. ID.................. FIELD 1 HEADER REC5 REC5 Section 2/1
LIST F.SAMPLE,THREE F.SAMPLE,THREE ID.................. FIELD 1 HEADER No Records Listed
NOTE
File F.SAMPLE still reports 1 record in it; here's the difference between having several data sections and a distributed file.
Last update: Sat, 16 Jul 2022 15:34