I'm relatively new to Pro*C programming. In the following example:
char name; EXEC SQL SELECT 'John Doe' INTO :name FROM DUAL;
"John Doe" is in positions 0-7, blanks in 8-19, and a null in 20. I would really prefer the null to be in position 8 and I don't care what's after that. I wrote a... (1 Reply)
Hi,
I am trying to replace nulls with spaces in every record of a '|' delimited file. I used this command -
cat input.dat | sed 's/||/| |/g' > output
But if a space appears twice '| | |' , then only the first null is getting replaced with a space. The second one remains as a null. I... (7 Replies)
When I try to sort a file where some records contain nulls i.e. hex 00 the sort truncates the record when it reaches the null and writes message:
"sort: warning: missing NEWLINE added at end of input file myfile"
I'm assuming from this that the sort sees the null as a special character and... (6 Replies)
Hello,
I am checking the length of each line of a fixed length file and making sure all lines are 161 length. My problem is that some files contain null characters which gets stripped out of my echo. How do I have the NULLs included in my check? (and I cannot replace or sub the NULL values with... (10 Replies)
Hi,
i have a file which contains data in fixed length. each row contains data of 10 characters fixed length. The data in the file appears like 4567782882
some times i may recieve dat less than fixed length of 10. in such a case i find nulls appended at the trailing spaces when i do a... (2 Replies)
I am trying to count the number of columns in a delimited flat file. The record is tab delimited. When I use the command wc -w, I am getting unexpected results when the record contains a NULL value. I believe it is because there is a "word" missing.
The below example will return 4 words... (2 Replies)
Ok,
I'm stuck here with a plan to get what I need done completed.
I want to use perl to produce a document. lets say the document will be a pdf document.
Now, is there a way for me to put a tiny little code in that pdf document that can make the pdf file null itself if run on a non-unix... (2 Replies)
Hi,
I've a PIPE delimited file with about 5 fields. Sometimes the records in the 4th field is null, so I want to replace it based on values we get it on 2nd field in the same file.
Following is an example.
ABCD|X-TYPE 3.0|2010|X-TYPE|20000
CDEF|C-TYPE 2.5|2011|C-TYPE|10000
XYZ|LX... (4 Replies)
I want to remove from a file the trailing null characters (0x00) and stop doing so when a different byte is found (which should not be deleted), and either put the result to the same file or a different one.
Any ideas? (9 Replies)
Discussion started by: Tribe
9 Replies
LEARN ABOUT DEBIAN
dpm_modifyfs
DPM_MODIFYFS(3) DPM Library Functions DPM_MODIFYFS(3)NAME
dpm_modifyfs - modify the parameters of a disk pool filesystem
SYNOPSIS
#include <sys/types.h>
#include "dpm_api.h"
int dpm_modifyfs (char *server, char *fs, int status, int weight)
DESCRIPTION
dpm_modifyfs modifies the parameters of a disk pool filesystem.
server specifies the host name of the disk server where this filesystem is mounted.
fs specifies the mount point of the dedicated filesystem.
status Initial status of this filesystem. It can be set to 0 or FS_DISABLED or FS_RDONLY. (-1 will tell the server to not change the cur-
rent value).
weight specifies the weight of the filesystem. This is used during the filesystem selection. The value must be positive (-1 will tell the
server to not change the current value). It is recommended to use a value lower than 10.
This function requires ADMIN privilege.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
ENOENT Filesystem does not exist.
EACCES The caller does not have ADMIN privilege.
EFAULT server or fs is a NULL pointer.
EINVAL The length of server exceeds CA_MAXHOSTNAMELEN or the length of fs exceeds 79.
SENOSHOST Host unknown.
SEINTERNAL Database error.
SECOMERR Communication error.
LCG $Date$ DPM_MODIFYFS(3)