This is part of the perl script.
Basically i want to try and get the second line of the error message.
Now the whole error which is 5 lines long will come up if i use $Errormsg
So basically i just want the second line of $errormsg to print is this possible? - select TRIM(ed.created_date) Created_Date,
-
TRIM(ed.ERRORMSG) ErrorMsg,
-
to_char(substr(eventdata,instr(eventdata,'<ns0:SiteContractNumber>')+24,
-
instr(eventdata,'</ns0:SiteContractNumber>') - instr(eventdata,
-
'<ns0:SiteContractNumber>')-24)) SiteContractNumber,
-
to_char(substr(eventdata,instr(eventdata,'<ns0:ContactNumber>')+19,
-
instr(eventdata,'</ns0:ContactNumber>') - instr(eventdata,
-
'<ns0:ContactNumber>')-19)) ContactNumber,
-
to_char(substr(eventdata,instr(eventdata,'<ns0:LineItemNumber>')+20,
-
instr(eventdata,'</ns0:peekaboo>') - instr(eventdata,
-
'<ns0:peekaboo>')-20)) LineItemNumber
-
from exception e, exception_detail ed
-
where e.jmsid = ed.jmsid
-
and trunc(e.timeoccured) = (sysdate)
-
and (upper(projectname) like '%BOOBOODEE%')
-
-
-
$sth = $hisCon->prepare( $zuluSQL);
-
$sth->execute();
-
-
-
while( $sth->fetch() ) {
-
-
$sth->bind_columns(\$Created_Date, \$ErrorMsg, \$SiteContractNumber, \$ContactNumber, \$LineItemNumber);
-
if ($SiteContractNumber != null) {
-
-
-
if ($ErrorMsg =~ /Data not found : Product Info -/) {
-
-
$recLine = " ".$SiteContractNumber." ".$LineItemNumber."\t".$Created_Date."\t"."Product Not Found: ";
-
writeLogFile($logFile, $recLine . "\n");}
-
-
else {
-
$recLine = " ".$SiteContractNumber." ".$LineItemNumber."\t".$Created_Date."\t"."Site Contract Not Found: ".$SiteContractNumber;
-
writeLogFile($logFile, $recLine . "\n"); }
-
}
-
}
0 1171 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: MrTrix |
last post by:
Hello:
I'm having a problem formulating the code to execute a multiple line
command. I'm trying to execute something like:
set rowcount 100000
declare @rowct int
select @rowct = 1
while (@rowct > 0)
begin
|
by: G Kannan |
last post by:
Hey all!
I have written a perl script to retrieve information from a HTML Form
and insert the data into an Oracle database table. I am gettting the
the following error message:
"Use of uninitialized value in concatenation (.) at register.pl line
38, <STDIN> line 10."
The PERL code is as follows:
|
by: ulloa |
last post by:
Hi. My name is Randall and I am from Costa Rica.
I have a little problem. I did an application using Perl, DBI and
DBI::Oracle, and now I have to upload my application in an Unix
server. The problem is that the server doesn't have DBI and
DBI::Oracle packages and the owner's server doesn't want to install
the packages because he thinks that the installation will change the
server configuration, and that server has a lot of web...
|
by: Axel Dachtler |
last post by:
Hello,
I want write a CGI-script in Perl to execute queries in an Oracle 9i database.
But I don't know which Drivers (or Perl-moduls) to load and how!
Thanks
Axel
|
by: Rhino |
last post by:
One of my friends, Scott, is a consultant who doesn't currently have
newsgroup access so I am asking these questions for him. I'll be telling him
how to monitor the answers via Google Newsgroup searches.
Scott has heard a lot of hype about DB2 and Oracle and is trying to
understand the pros and cons of each product. I'm quite familiar with DB2
but have never used Oracle so I can't make any meaningful comparisons for
him. He does not have...
| |
by: Cern |
last post by:
Is it somebody out there who has made a migration from an Oracle server to an MySQL server??
The scenario is as simply:
I've got a Oracle 8 server with a database with content that I want to transfer to
a MySQL database. No special data, constraints etc that MySQL not will handle.
My solution is to reverse engineer the database from ERStudio and then produce a SQL script that
will insert the data into the MySQL engine.
But I can't do...
|
by: Raul Rodriguez |
last post by:
I posted this question already but nobody could answer me. Please forgive for
doing it again, but it's very important for my company. We have been
searching for this error with different engines (Google, MSN, etc) and in
different newsgroups but we didn't find any solution. Some people had the
same problem but they never got an answer. :-(
This managed group is my last chance!
We have a "legacy" ASP application that is showing a...
|
by: antonberg1 |
last post by:
Hi,
I wonder if it is possible to write a platform independent
c-application running as job on a sun solaris multiprocessor machine,
connecting to an oracle database and creating a very simple xml-file
from the data extracted.
Could you maybe give me some advice where to start reading about that
theme? Usually I develope windows applications, but this time my
software has to run on sun solaris.
|
by: Mark Cummings |
last post by:
I am migrating an Oracle 9i to Oracle 10g database, and Perl 5.0.4 to Perl 5.8.7 in Sun Solaris environment.
Using Perl 5.8.7, the following legacy code segment is returning a '-1' return code on the system call to execute the 'mv' command. Note that the mv request is across directories.
sub move_inproc
{
print "sub move_inproc\n";
`mv $histhome/dat/inbound/$filename $histhome/dat/inproc/$filename`;
if ($? !=0)
{
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |