473,395 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SAR file -- can this be imported and edited?

Raj
Please bear with me if this is not a very intelligent question!!

I have few SAR files that stores some StoredProcedures. I am supposed
to use the "PUT ROUTINE" command to execute them in my DB2 UDB 8
Database.
But when I do this I get the following message.

LINE MESSAGES FOR P4014038.bnd
-------------------------------------------------------------------
SQL0061W The binder is in progress.
560 SQL0204N "DB2ADMIN.XYZ" is an undefined name.
SQLSTATE=42704
I found out that the SAR file by default uses DB2ADMIN as the schema,
while for some reason I had got rid of that in my DB.
I believe that is the reason why it says "DB2ADMIN.XYZ is an undefined
name."

Now the question is, Can I edit these SAR files and change the schema
names?

Can I import them to an application, change the settings and create the
SAR files again?

Thanks in advance for your time!

Nov 12 '05 #1
3 3353
Raj wrote:
Please bear with me if this is not a very intelligent question!!

I have few SAR files that stores some StoredProcedures. I am supposed
to use the "PUT ROUTINE" command to execute them in my DB2 UDB 8
Database.
But when I do this I get the following message.

LINE MESSAGES FOR P4014038.bnd
-------------------------------------------------------------------
SQL0061W The binder is in progress.
560 SQL0204N "DB2ADMIN.XYZ" is an undefined name.
SQLSTATE=42704
I found out that the SAR file by default uses DB2ADMIN as the schema,
while for some reason I had got rid of that in my DB.
I believe that is the reason why it says "DB2ADMIN.XYZ is an undefined
name."

Now the question is, Can I edit these SAR files and change the schema
names?

Can I import them to an application, change the settings and create the
SAR files again?

Thanks in advance for your time!

Us eteh PUT_ROUTINE procedure. Note "special register flag"
http://publib.boulder.ibm.com/infoce...70%75%74%22%20

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
Raj

Thanks.

But when I tried that I got the following message.

Command:
put routine from xyz.sar OWNER Administrator USE REGISTERS

Error Message:
"SQL0443N Routine "SYSFUN.PUT_ROUTINE_SAR" (specific name "PUT_SAR")
has
returned an error SQLSTATE with diagnostic text "-20135, 55046, 1".
SQLSTATE=38000"

When I looked up sqlcode: -20135 and sqlstate: 55046 it says

1. The operating system of the target environment is not the same as
the operating system on which the SQL archive was created.
2. The database type and level of the target environment is not the
same as the database type and level on which the SQL archive was
created.
1) I am not sure which one has caused the problem. Is there anyway to
narrow down to the exact problem?
2) Is there any other way to manually run those procedures? reading the
SPs in the SAR file and manually running against the DB

Thanks!

Nov 12 '05 #3
Raj wrote:
Thanks.

But when I tried that I got the following message.

Command:
put routine from xyz.sar OWNER Administrator USE REGISTERS

Error Message:
"SQL0443N Routine "SYSFUN.PUT_ROUTINE_SAR" (specific name "PUT_SAR")
has
returned an error SQLSTATE with diagnostic text "-20135, 55046, 1".
SQLSTATE=38000"

When I looked up sqlcode: -20135 and sqlstate: 55046 it says

1. The operating system of the target environment is not the same as
the operating system on which the SQL archive was created.
2. The database type and level of the target environment is not the
same as the database type and level on which the SQL archive was
created.
1) I am not sure which one has caused the problem. Is there anyway to
narrow down to the exact problem?
2) Is there any other way to manually run those procedures? reading the
SPs in the SAR file and manually running against the DB

Thanks!

Which fixpack level are you on both systems and what are the systems?
GET and PUT ROUTIEN are meant to deploy from a development machine to a
production machine without a C-Compiler.
In DB2 V8.2 the only remaining reason to use GET and PUT is obfuscation
of the text.
Does anyting speak against just getting the text from SYSCAT.ROUTINES.TEXT ?

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: GW | last post by:
After the conversion and fixing some errs VS2005 threw, project ran OK. Opened xxx.vbproj file after the conversion to VS2005 from VS2003. Changed (usng wordpad) ../msbuild/2003 to 2005...
5
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class...
10
by: setar | last post by:
How can I edit an xml file which has 250MB? I tried to use UltraEdit, Visual Studio, Eclipse, Stylus Studio and XMLSpy editors but these programs can't read this file because it is too big. SmEdit...
4
by: Michael Malinowski | last post by:
Is there a way to read the directory that the currently running python file is located in? Cheers Mike.
0
by: Bmack500 | last post by:
Hello all. I'm reading the data from an XML file similiar to below, using the code below. When the file is edited in the datagridview and then re-written, it doesn't write the xml file as it was...
7
by: Chris Barlow | last post by:
Hi All On importing a text file using the TransferText method into an empty, existing table in an Access 2003 database I occasionally find that although the data has all imported ok it is not in...
5
by: bobh | last post by:
HI, I understand AccessXP file size has a 2 gig limit but I trying to understand the following I have a tab delimited data file that is 1.3 gigs big and I try to import it into an empty...
1
by: Christian Heimes | last post by:
William Purcell wrote: (33188, 362259, 2053L, 1, 0, 0, 1690, 1218550501, 1218118498, 1218118498) 1218118498.0
0
by: Virgil Stokes | last post by:
Christian Heimes wrote: Is it possible to change the time stamp of a file (Win2K platform)? If yes, how?
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.