PX_PUT_DATA_BYTES(3) Library Functions Manual PX_PUT_DATA_BYTES(3)NAME
PX_put_data_bytes -- Put value into a bytes data field
SYNOPSIS
#include <paradox.h>
void PX_put_data_bytes(pxdoc_t *pxdoc, char *data, int len, char *value)
DESCRIPTION
Simply copies a sequence of bytes into a data field as it stored in the database file. You should use this function instead of accessing
the record data directly.
data points to start of the data field in the record. It must be calculated by summing up all field length before the field to operate on
and add it to the base pointer of the record.
This function is similar to PX_put_data_alpha(3) without recoding. It is mostly used to store field data of Type pxfBytes.
SEE ALSO PX_put_data_byte(3), PX_put_data_short(3), PX_put_data_long(3), PX_put_data_double(3), PX_put_data_alpha(3)AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PX_PUT_DATA_BYTES(3)
Check Out this Related Man Page
PX_GET_DATA_SHORT(3) Library Functions Manual PX_GET_DATA_SHORT(3)NAME
PX_get_data_short -- Get value from short data field
SYNOPSIS
#include <paradox.h>
int PX_get_data_short(pxdoc_t *pxdoc, char *data, int len, short int *value)
DESCRIPTION
Converts a data field as it stored in the database file into a short integer for the host architecture. You should use this function
instead of accessing the data directly.
data points to the start of the data field in the record. It must be calculated by summing up all field length before the field to operate
on and add it to the base pointer of the record.
Note:
This function is deprecated and obsolete if PX_retrieve_record(3) is used.
RETURN VALUE
Returns 0 if the value is NULL, -1 in case of an error and 1 otherwise.
SEE ALSO PX_get_data_byte(3), PX_get_data_long(3), PX_get_data_double(3), PX_get_data_alpha(3)AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PX_GET_DATA_SHORT(3)
Sorry, I accidentally posted this in the advance forum first...
Hi, I'd like to use cut to remove the last field from a record
the original record is comma delimited with null as the 19th field. Example: field18,,field20
if I use
cut -d, -f1-19 file
the record ends with
field18,
... (4 Replies)
I need to pick a field out of a variable record - the field is always found 4 fields after a certain text string, but it can be on any line of the record and in any position across the record on a line. I have had no luck through any of the Unix editors being able to cut a field that isn't always... (17 Replies)
I am trying to use two files and walk through the first one to see if a value from each record resides in the other file.
I am reading the file record by record and awking out the first field into a varaiable. That is working fine.
When I try to write my grep command it gives me an error.
... (7 Replies)
I have a pipe delimited file I need to add a sequence number to in the third field. The record fields will be variable length, so I have to parse for the second pipe. Another requirement is that the sequence number must be unique to all records in the file and subsequent files created, so the... (5 Replies)
Hello,
I have a record which split with "," I would like to check..if the field is empty and it will field "NIL" into the field.
input
45111,40404,peter,,0303403,0,030304,john,,9,0,
output
45111,40404,peter,NIL,0303403,0,030304,john,NIL,9,0, (8 Replies)
Hi there, using the command below
> cat file1 | tr "\001" " " > tmp2
how can I alter the record length of tmp2 to fix length of 350 bytes ?
Thanks a lot! (7 Replies)
So, I need to do some summing. I have an Apache log file with the following as a typical line:
127.0.0.1 - frank "GET /apache_pb.gif HTTP/1.0" 200 2326
Now, what I'd like to do is a per-minute sum. So, I can have awk tell me the individual minutes, preserving the dates(since this is a... (7 Replies)
:confused: I have a tab delimited file that I need to extract data from and into a file with specific field specs. Each field has to be a certain amount of characters. So, the name field (from delimited file) might have only 15 characters but needs to be 25 (in new file) so I need to insert spaces... (5 Replies)
Hello all,
I have a data file that needs some serious work...I have no idea how to implement the changes that are needed!
The file is a genotypic file with >64,000 columns representing genetic markers, a header line, and >1100 rows that looks like this:
ID 1 2 3 4 ... (7 Replies)
I have a file in which "-"(by itself and nothing else) occurs in different fields in each record(sometimes in the 3 field, sometime in the 20th field, some time in the 100th field....etc). Also there are field of the format "abc-def". How do I replace fields that have just "-" with number zero. sed... (4 Replies)
Hi,
i want to replace comma by space for specified field in record, i mean i want to replace the commas in the 4th field by space. and rest all is same throught the record.
the record is
16458,99,001,"RIMOUSKI, QC",418,"N",7,EST,EDT,902
16458,99,002,"CHANDLER,... (5 Replies)
I'm not really sure how to explain this but I will try. In the attached file if $4=$4 and $5="-" then the last record is 1 and the one above that is 2, etc...
However, $4=$4 and $5="-" then the first record is 1 and the one below that is 2, etc...
"-" example:
chr10 90694830 90695123... (7 Replies)
Hi All,
I have a file like below. In the field 9 I am having 14,014,3,001/009 on the records. I want to convert the field to a three digit value. For example 14 should 014 , 3 should 003
11050;11001;;CREDITTRANC;5293218;NRATL;;;11095;;-1;14;3;29=0000;1.25... (5 Replies)
File is pipe delimited with 17 fields. We may get \n char (1 or more \n in one field or multi fileds) in data in any field.
Need to replace \n in data with space and not the Ture \n that is line separator.
I tried below awk command it did not work as expected.
awk '(NR-1)%2{$1=$1}1' RS=\|... (9 Replies)
Each record coming with column names. I have to replace them in each record as shown below
TIME=20181219110000261|CHAN=FMBKHJBAAAADPCFNAAAAAABA|EVNT=SWIclst|VALU=Session FMBKHJBAAAADPCFNAAAAAABA started|SRC=NSS|UCPU=0|SCPU=0
Output should look like: ... (9 Replies)