|
Size: 1022
Comment:
|
Size: 1606
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 22: | Line 22: |
| logid is the control log identifier which you can easily find out using fdbstat. | ==== logid ==== logid is the control logid which you can easily find out using fdbstat. following example show logid for STOCK is 9 |
| Line 25: | Line 28: |
| fdbstat -v /u/cc/comp/file.dat Filename flags ssize/ vsize/ bucsiz/ 1stbuc/ # bucs/ lastbuc nulls log release |
fdbstat -v /u/cc/comp/stock.dat Filename flags ssize/ vsize/ bucsiz/ 1stbuc/ # bucs/ lastbuc nulls log release |
| Line 31: | Line 34: |
| ==== offset ==== offset is the starting byte of the field in the record. which can be found by running align on any dec files in /u/ccr.xx/std/hdrs/ use stock.dec as an example {{{ align /u/ccr.16/std/hdrs/stock.dec }}} in the output you will get a list of in the following formats. {{{ 120 123 4 2 SHTDEC markup 124 127 4 2 SHTDEC supp_cost 128 129 2 2 SMLDEC supdisc 130 131 2 2 SMLDEC duty_rate }}} |
readmin advance usage.
-c : display changed byte
Display altered bytes at the end of any ALT line , after the Tag, "ChgBytes:"
Example:
readmin -c
Output line:
160222 09:17:00 cc 10 stpost Alt STOCK_LOG 1 1002595 ECLIPSE CHAIR YELLOW CODE FABRIC 2609 ChgBytes: 124-125,3076-3077,3172,3333-3334,3336
-f <filename> : specify input log file
Example:
readmin -f log.22feb17-0
-m <logid:offset:datatype>
Search the log file for Alter logs, that changed a paticular field on one type of record.
logid
logid is the control logid which you can easily find out using fdbstat.
following example show logid for STOCK is 9
fdbstat -v /u/cc/comp/stock.dat
Filename flags ssize/ vsize/ bucsiz/ 1stbuc/ # bucs/ lastbuc nulls log release
prelen suflen keysize elsize maxnkey lastnod ok ? id alphalen
stock.dat MASTER 3072 1024 4096 2 0 1147 9 64
offset
offset is the starting byte of the field in the record. which can be found by running align on any dec files in /u/ccr.xx/std/hdrs/
use stock.dec as an example
align /u/ccr.16/std/hdrs/stock.dec
in the output you will get a list of in the following formats.
120 123 4 2 SHTDEC markup 124 127 4 2 SHTDEC supp_cost 128 129 2 2 SMLDEC supdisc 130 131 2 2 SMLDEC duty_rate
