Sponsored Content
Full Discussion: Conversion Problem
Top Forums UNIX for Dummies Questions & Answers Conversion Problem Post 72977 by vivekshankar on Thursday 26th of May 2005 09:58:48 AM
Old 05-26-2005
Thanks :-)

can u tell me the author of the books.......so that i cud get one...

thanks and regards
vivek.s
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with File Conversion

Hi All, I am putting the file on UNIX server using "put" remote command. i have one character i.e. Pipeline(|) in the file. When i send this file from other system(Mainframe) to UNIX server, i found that the chracter get changed to Exlametory mark(!). I don't know why?. Can any way tell me... (2 Replies)
Discussion started by: Balkrishna
2 Replies

2. Shell Programming and Scripting

conversion

hi all i have a file like 151125 25252 2452567 253464576 255 i want this file to be like '151125','25252','2452567','253464576','255' please help thanks (3 Replies)
Discussion started by: infyanurag
3 Replies

3. UNIX for Dummies Questions & Answers

Conversion problem with date field and formatting.

Hi, My input file contains the record(s) as below with space as FS. 01-01024180 35000 MV010 02/03/09 0306 03060226 03 02-00410330 470000 MV010 02/03/09 0301 03010276 03 1. I need to convert the field 02/03/09 (dd/mm/yy) to yyyymmdd yet retain the Field separator. Using the modified... (2 Replies)
Discussion started by: talk2pawee
2 Replies

4. Shell Programming and Scripting

Conversion

How to convert Nov 10 14:20 to YYYYMMDDHHMMSS in unix I am using K-shell HP-AUX (1 Reply)
Discussion started by: chinniforu2003
1 Replies

5. Shell Programming and Scripting

Help in conversion ......

Hi, I have a requirement to capture file time stamp and compare with current system time. I am using HP-AUX K-shell. Below is what i have done Getting current date into myfile2 --------------------------------- date +%Y%m%d%H%M%S > myfile2 20091110132800 Getting the file date into... (5 Replies)
Discussion started by: chinniforu2003
5 Replies

6. Programming

timestamp conversion problem.

Hi all. I have the following code: #include<stdio.h> #include<time.h> int main() { struct tm tm; time_t time = 1262322000; /*Jan, 01, 2010*/ char temp; int i = 0; while(i < 4) { memset(temp, 0, 128); localtime_r(&time,... (2 Replies)
Discussion started by: adm1n
2 Replies

7. Shell Programming and Scripting

Typeset conversion problem from ksh to bash

Hi, typeset -l sgf # all lowercase letters typeset -u SGF # all uppercase letters sgf=$1 SGF=$sgf these lines used in my scripts . It ran fine in ksh but when we convert this to bash it erroring out. I like to know what the use of typeset ?? Thanks & Regards kanagaraj (3 Replies)
Discussion started by: kanagaraj
3 Replies

8. UNIX for Advanced & Expert Users

.so to .sl conversion ?

Hi all, I have one libxxx.so file ( which I got from a third party ). We use shared library libxxx.sl . Is there any way to convert the .so file to .sl file ? Thanks in advance - M (3 Replies)
Discussion started by: kanu_kanu
3 Replies

9. Shell Programming and Scripting

Characterset conversion problem using iconv command

Hi Friends, I am not able to conver character set from UTF-8 to IBM-284 throwing an error "cannot open convertor" . Could you please help me how to get out of this error. Below command is working fine iconv -f ISO8859-15 -t UTF-8 fromfile.txt > tofile.txt But the below command is... (2 Replies)
Discussion started by: sivakumarl
2 Replies

10. Shell Programming and Scripting

File conversion problem

To convert file epcdic to ascill format,i am using below code.Getting some junk characters in output file.not sure what the issue is.Please correct if below command is wrong. DD conv=ascii if=filename of =output_filename. (2 Replies)
Discussion started by: srivalli
2 Replies
Data::Phrasebook::SQL(3pm)				User Contributed Perl Documentation				Data::Phrasebook::SQL(3pm)

NAME
Data::Phrasebook::SQL - The SQL/DBI Phrasebook Model. SYNOPSIS
use Data::Phrasebook; use DBI; my $dbh = DBI->connect(...); my $book = Data::Phrasebook->new( class => 'SQL', dbh => $dbh, file => 'queries.txt', ); my $q = $book->query( 'find_author', { author => "Lance Parkin" }); while ( my $row = $q->fetchrow_hashref ) { print "He wrote $row->{title} "; } $q->finish; queries.txt: find_author=select title,author from books where author = :author DESCRIPTION
In order to make use of features like placeholders in DBI in conjunction with phrasebooks, it's helpful to have a phrasebook be somewhat more aware of how DBI operates. Thus, you get "Data::Phrasebook::SQL". "Data::Phrasebook::SQL" has knowledge of how DBI works and creates and executes your queries appropriately. CONSTRUCTOR
new Not to be accessed directly, but via the parent Data::Phrasebook, by specifying the class as SQL. Additional arguments to those described in Data::Phrasebook::Generic are: o "dbh" - a DBI database handle. METHODS
dbh Set, or get, the current DBI handle. query Constructs a Data::Phrasebook::SQL::Query object from a template. Takes at least one argument, this being the identifier for the query. The identifier is used as a key into the phrasebook "file". A second argument can be provided, which is an optional hashref of key to value mappings. If phrasebook has a YAML source looking much like the following: --- find_author: sql: select class,title,author from books where author = :author You could write: my $q = $book->query( 'find_author' ); OR my $q = $book->query( 'find_author', { author => 'Lance Parkin' } ); OR my $author = 'Lance Parkin'; my $q = $book->query( 'find_author', { author => $author, } ); # sql = select class,title,author from books where author = ? # args = 'Lance Parkin' In the above examples, the parameters are bound to the SQL using the bind parameters functionality. This is more efficient in most cases where the same SQL is reused with different values for fields. However, not all SQL statements just need to bind parameters, some may require the ability to replace parameters, such as a field list. --- find_author: sql: select :fields from books where author = :author my $q = $book->query( 'find_author', replace => { fields => 'class,title,author' }, bind => { author => 'Lance Parkin' } ); # sql = select class,title,author from books where author = ? # args = 'Lance Parkin' In all instances, if the SQL template requested does not exist or has no definition, then an error will be thrown. Consult Data::Phrasebook::SQL::Query for what you can then do with your returned object. For reference: the bind hashref argument, if it is given, is given to the query object's "order_args" and then "args" methods. SEE ALSO
Data::Phrasebook, Data::Phrasebook::Generic, Data::Phrasebook::SQL::Query. SUPPORT
Please see the README file. AUTHOR
Original author: Iain Campbell Truskett (16.07.1979 - 29.12.2003) Maintainer: Barbie <barbie@cpan.org> since January 2004. for Miss Barbell Productions <http://www.missbarbell.co.uk>. COPYRIGHT AND LICENSE
Copyright (C) 2003 Iain Truskett. Copyright (C) 2004-2010 Barbie for Miss Barbell Productions. This module is free software; you can redistribute it and/or modify it under the Artistic Licence v2. perl v5.10.1 2010-08-31 Data::Phrasebook::SQL(3pm)
All times are GMT -4. The time now is 08:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy