Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

px_get_data_long(3) [debian man page]

PX_GET_DATA_LONG(3)					     Library Functions Manual					       PX_GET_DATA_LONG(3)

NAME
PX_get_data_long -- Get long data field SYNOPSIS
#include <paradox.h> int PX_get_data_long(pxdoc_t *pxdoc, char *data, int len, long *value) DESCRIPTION
Converts a data field as it stored in the database file into a long 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_short(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_LONG(3)

Check Out this Related Man Page

PX_GET_DATA_ALPHA(3)					     Library Functions Manual					      PX_GET_DATA_ALPHA(3)

NAME
PX_get_data_alpha -- Get alpha data field SYNOPSIS
#include <paradox.h> int PX_get_data_alpha(pxdoc_t *pxdoc, char *data, int len, char **value) DESCRIPTION
Converts a data field as it is stored in the database file into a string for the given encoding. You must set the target encoding before in order to recode the string. If you do not set the encoding the data will be returned as is. You should use this function instead of access- ing 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. The function allocates memory for the string returned in *value. This memory has to be freed by the application. Note: This function is deprecated and obsolete if PX_retrieve_record(3) is used. RETURN VALUE
Returns 0 if the field data starts with a null byte, -1 in case of an error and 1 otherwise. SEE ALSO
PX_get_data_byte(3), PX_get_data_long(3), PX_get_data_short(3), PX_get_data_double(3), PX_get_data_bcd(3), PX_get_data_blob(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PX_GET_DATA_ALPHA(3)
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

fill a NIL into the blank field

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)
Discussion started by: happyv
8 Replies

2. Shell Programming and Scripting

Need help with sed

Hi, I need to convert a fixed length record to a delimited one. Sed is giving me problem when trying with 2 digit field numbers, ir it is failing while extracting 10th field. Can someone plese help me ? Eg: The following is working echo "aaaaaaaaaa bbbbbbbbccccccc dddd... (0 Replies)
Discussion started by: ammu.mathai
0 Replies

3. Shell Programming and Scripting

Need help with sed

Hi, I need to convert a fixed length record to a delimited one. Sed is giving me problem when trying with 2 digit field numbers, ir it is failing while extracting 10th field. Can someone plese help me ? Eg: The following is working echo "aaaaaaaaaa bbbbbbbbccccccc dddd... (3 Replies)
Discussion started by: ammu.mathai
3 Replies

4. UNIX for Dummies Questions & Answers

Formatting a line of data into columns

Hi all, I'm a little stuck with a data file I've been collecting data in. The file contains one field of data running continuously down the file and I can't work out how to format the data into three columns. This is a mock up of the file: Each r# is a random number and varies in length, this... (3 Replies)
Discussion started by: nistleloy
3 Replies

5. Shell Programming and Scripting

Replace field when only "-" occurs on a random basis

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)
Discussion started by: akshaykr2
4 Replies

6. Shell Programming and Scripting

Replace comma by space for specified field in record

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)
Discussion started by: raghavendra.cse
5 Replies

7. Shell Programming and Scripting

help with sed or awk

I need to add a field at the beginning of each record in the file. The file is comma seperated. Can somebody throw some light. My record looks something like this I need to add 100 at the beginning of each record. o/p should be (2 Replies)
Discussion started by: dsravan
2 Replies

8. Shell Programming and Scripting

Inserting a new field inbetween two exisitng field

I have a '|' delimited file. My file looks like below 23|nationalhoilday|feb12||||||||||||||california|northdistrict|| In the same way, each record has 164 fields. I have to insert one more field after the 85th field. Expected output... (3 Replies)
Discussion started by: machomaddy
3 Replies

9. War Stories

Do you trust your users to follow your instructions?

This happened a long time ago and some of the details may not be exact. Customer had obsolete hardware running an obsolete SCO OS and some type of database program with data scattered around the system. There were 2-1g SCSI drives, both split in half, with the 3 filesystems automatically loading... (6 Replies)
Discussion started by: edfair
6 Replies