I am going to develop a address book using the shell scripting commands without sed, awk, .... I am thinking to apply the concept of 2 dimenstional array. Can I create a two dimensional array for the insertion/updation/deletion of record in unix. If yes then tell me plz or recommend me some... (1 Reply)
Hi
I have a table with name, date in format DD.MM.YYYY.
I need to something like this (I try to explain in pseudo code)
if SYSDATE (current date) minus 6 months > $expiry date
print OK
else print NOK with $name and $expiry date
I know this is possible with Oracle. How to do this... (0 Replies)
Hi,
I have one small doubt how to go ahead and process the below requirement.
File Content
1,abc,10
2,xyz,11
3,pqr,12
4,pqr,13
5,pqr,14
Output file expected:
1,mnq,1
1,ddd,2
1,qqq,3
1,sss,4
1,ddd,5
1,eee,6
1,fff,7
1,ddr,8
1,rrd,9 (3 Replies)
Hi,
I have a input file with the following entries:
1one
2two
3three
1four
2five
3six
1seven
1eight
1nine
2ten
The output should be
1one
2two
3three
1four
2five
3six (2 Replies)
Hi,
I have a input file with the following entries:
1one
2two
3three
1four
2five
3six
1seven
1eight
1nine
2ten
2eleven
2twelve
1thirteen
2fourteen
The output should be: (5 Replies)
I'm trying to compare 2 files for differences in a selct number of fields. When differnces are found it will write the whole record of the second file including appending '|C' out to a delta file. Each record will have 20 fields, but only want to do comparison of 1st 15 fields. The 1st field of... (7 Replies)
I have data coming in the below format for each record
<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><testdetials>....</test_sox>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox... (8 Replies)
Hi,,
I have requirement that i need to get DISTINCT values from a table and if there are two records i need to update it to one record and then need to submit INSERT statements by using the updated value as a parameter. Here is the example follows..
SELECT DISTINCT ID FROM OFFER_GROUP WHERE... (1 Reply)
Hey,
I am trying to compare formated login and logout dates from one user at a host which I have stored in a tmp directory in order to find out the total login time. I need to compare them in order to find overlapping intervals.
At first I tried to store each log in and logo date in an array... (3 Replies)
Discussion started by: Mumu123
3 Replies
LEARN ABOUT PHP
yaz_set_option
YAZ_SET_OPTION(3) 1 YAZ_SET_OPTION(3)yaz_set_option - Sets one or more options for connectionSYNOPSIS
void yaz_set_option (resource $id, string $name, string $value)
DESCRIPTION
void yaz_set_option (resource $id, array $options)
Sets one or more options on the given connection.
PARAMETERS
o $id
- The connection resource returned by yaz_connect(3).
o $name or $options
- May be either a string or an array. If given as a string, this will be the name of the option to set. You'll need to give it's
$value. If given as an array, this will be an associative array (option name => option value).
PHP/YAZ Connection Options
+----------------------+---------------------------------------------------+
| Name | |
| | |
| | Description |
| | |
+----------------------+---------------------------------------------------+
| implementationName | |
| | |
| | implementation name of server |
| | |
|implementationVersion | |
| | |
| | implementation version of server |
| | |
| implementationId | |
| | |
| | implementation ID of server |
| | |
| schema | |
| | |
| | schema for retrieval. By default, no schema is |
| | used. Setting this option is equivalent to using |
| | function yaz_schema(3) |
| | |
|preferredRecordSyntax | |
| | |
| | record syntax for retrieval. By default, no syn- |
| | tax is used. Setting this option is equivalent to |
| | using function yaz_syntax(3) |
| | |
| start | |
| | |
| | offset for first record to be retrieved via |
| | yaz_search(3) or yaz_present(3). First record is |
| | numbered has a start value of 0. Second record |
| | has start value 1. Setting this option in combi- |
| | nation with option count has the same effect as |
| | calling yaz_range(3) except that records are num- |
| | bered from 1 in yaz_range(3) |
| | |
| count | |
| | |
| | maximum number of records to be retrieved via |
| | yaz_search(3) or yaz_present(3). |
| | |
| elementSetName | |
| | |
| | element-set-name for retrieval. Setting this |
| | option is equivalent to calling yaz_element(3). |
| | |
+----------------------+---------------------------------------------------+
o $value
- The new value of the option. Use this only if the previous argument is a string.
RETURN VALUES
No value is returned.
PHP Documentation Group YAZ_SET_OPTION(3)