Greetings,
I would like to extract records from a fixed width text file that have unique field elements.
Data is structured like this:
John A Smith NY
Mary C Jones WA
Adam J Clark PA
Mary Jones WA
Fieldname / start-end position
Firstname 1-10... (8 Replies)
I am trying to parse a Fixed width file with data as below. I am trying to assign column values from each record to variables. When I parse the data, the spaces in all coumns are dropped. I would like to retain the spaces as part of the dat stored in the variables. Any help is appreciated.
I... (4 Replies)
Hi All,
I have created a script which generates FIXED-WIDTH file by executing Oracle query.
SELECT RPAD(NVL(col1,CHR(9)),20)||NVL(col2,CHR(9))||NVL(col3,CHR(9) FROM XYZ
It generates the data file with proper alignment. But if same file i transfer to windows server or Mainframe... (5 Replies)
I am trying to determine what would be a fast and simple way to manipulate data that comes in a fixed width format. This data has 6 segments within a record. Each record needs to written out with a header and the 6 segments. Based on the value in column #6 the fields will be defined accordingly.... (4 Replies)
Hi Guys
I am checking the treads to get the answer but i am not able to get the answer for my question.
I have two files. First file is a pattern file and the second file is the file i want to search in it. Output will be the lines from file2.
File1:
P2797f12af 44751228... (10 Replies)
I have a fixed width file of length 53. when is try to get the lengh of the record of that file i get 2 different answers.
awk '{print length;exit}' <File_name>
The above code gives me length 50.
wc -L <File_name>
The above code gives me length 53.
Please clarify on... (2 Replies)
Thank u so much .Its working fine as expected.
---------- Post updated at 03:41 PM ---------- Previous update was at 01:46 PM ----------
I need one more help.
I have another file(fixed length) that will get negative value (ex:-00000000003000) in postion (98 - 112) then i have to... (6 Replies)
Hi All,
I am trying to select the rows in a fixed width file based on values in the columns.
I want to select only the rows if column position 3-4 has the value AB
I am using cut command to get the column values. Is it possible to check if cut -c3-4 = AB is true then select only that... (2 Replies)
I have csv file with 30, 40 columns
Pasting just three column for problem description
I want to filter record if column 1 matches CN or DN then,
check for values in column 2 if column contain 1235, 1235 then in column 3 values must be sequence of 2345, 2345
and if column 2 contains 6789, 6789... (5 Replies)
Discussion started by: as7951
5 Replies
LEARN ABOUT SUNOS
flowacct
flowacct(7ipp) IP Quality of Service Modules flowacct(7ipp)NAME
flowacct - Flow Accouting module
DESCRIPTION
The flow accounting module flowacct enables you to record flow details. You use flow details to gather statistics and/or for billing pur-
poses. Accounting consists of recording flow details in a location you designate and in a format that you can retrieve at a later stage.
IPQoS accounting relies on the exacct mechanism to store and retrieve flow information.
A flow is defined by the 5-tuple - saddr, sport, daddr, dport and protocol.
Typically, the accounting module is the last datapath element in a sequence of actions. Flow attributes include ToS/DS, user id, project
id, creation time (time the flow was created), last seen (when pkts for the flow were last seen), action name (instance that recorded the
flow information), nbytes and npackets. Attributes are split into groups entitled basic and extended. The basic group records only the
nbytes, npackets and action name, while the extended group is a superset of the basic group and records all attributes. The attributes to
be recorded, in addition to the accounting file that contains flow details, are selected using acctadm(1M). The flowacct module does not
provide a mechanism to retrieve flow information from the accounting file nor to interpret the retrieved information.
STATISTICS
The flowacct module exports the following statistics available through kstat:
module: flowacct instance: <action id>
name: Flowacct statistics class <action name>
bytes_in_tbl <bytes in the flow table>
epackets <packets in error>
flows_in_tbl <flow records in the flow table>
nbytes <number of bytes through this instance>
npackets <number of packets>
usedmem <memory, in bytes, used by the flow table>
FILES
/kernel/ipp/sparcv9/flowacct
64-bit module (SPARC only.)
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWqos |
+-----------------------------+-----------------------------+
SEE ALSO ipqosconf(1M), acctadm(1M), libexacct3LIB, dlcosmk(7IPP), dscpmk(7IPP), ipqos(7IPP), ipgpc(7IPP), tokenmt(7IPP), tswtclmt(7IPP)SunOS 5.10 29 Sep 2004 flowacct(7ipp)