How to check the existence of DB400 library from java
Hi all,
I actunally need to validate a DB400 library via java. so is there any way to check the existence of DB400 library from java side.
Thanks in advance.
Hi Sarvan,
You might not even need a function to tell you if a record exists or not.
Here in below example i do a check with exists .you will find couple of other ways too..
create table t as select * from emp where deptno=10now i set salary of every person present in table 'T' to 1111 in emp table.
update emp e
set sal=1111
where exists
(select 1
from t
where t.empno=e.empno) Remember that plain SQL will always outperform PLSQL.
Hope it helps
CKLP
Edited by: CKLP on Sep 26, 2011 3:41 AM
Similar Messages
-
How to check the JDK version of a compiled java file
can anybody tell me how to check the JDK version of a compiled java file ?
Edited by: gbhatia8 on Sep 9, 2010 7:04 AMThe major/minor version of the class file is the way to go.
Also, it's not necessary to write a separate program to get to those. javap prints them out when being passed the -v flag.
Note, however that "JDK version" is not a correct term, as I can create 1.4-compatible class files with a Java 6 JDK (by passing the -target flag to javac). Those won't look any different than .class files written with a 1.4 JDK. -
How to check the existence of file without any error dialog?
Hi everybody,
I am trying update some labview programs from LV6.1 to LV7.1, I used the
function "File/Dictionary Info" to check if the file
exists or not (if the size=0 then file does not exist), and it ran well with
LV6.1, but now it shows every time a labview error dialog
about "LabView: file not found..." with 7.1, if this file dosn't exist.
Sometimes I feel that it is really stupid to show the dialog, because I
can write handling by myself, if the error should be handled, and
I don't want all the process is interrupted because of such dialogs. Is
there any way to shut the dialog down or check the existence of
file smoothly?
Thanks a lot!
L.WangHello,
The dialog is probably appearing because you have Auto Error Handling turned on. This feature is turned on by default in LabVIEW 7.0. You should go to VI Properties (Ctrl-I) > Execution and deselect "Enable automatic error handling". Also you should go to Tools > Options > New and Changed in LabVIEW 7.x and deselect "Enable automatic error handling in new VIs". If you never want to see one of those dialogs again, you can also deselect "Enaeble automatic error handling dialogs"...I wouldn't recommend this, however, as you would never know if one of your VIs had this setting enabled...you would only find out once somebody else tried to use your VI on another LabVIEW install.
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
How to check the existence of a file?
Hi,
I want to know how to use FileNotFoundException to check whether a text file exists in local directory.
How should I do the code?
Thanks
gogoLike this:
private File f = new File ("c:\\projects\\sutil\\err\\temp_err.txt");
if (f.exists()) {
f.delete();
} -
How to check the existence of a storeProcedure
Hello everyone,
today I discovered how to call an oracle store procedure with jdbc classes, and it's been easy with tutorials and reading posts on this forum.
The problem I have is the following:
if i try to execute a store procedure which does not exist on the oracle schema with this code:
try{
con = DriverManager.getConnection(databaseurl,username,password);
cstmt = con.prepareCall"{call procedure_that_not_exist(?,?,?)}";
cstmt.setString(1, "try");
cstmt.registerOutParameter( 2, Types.VARCHAR );
cstmt.registerOutParameter( 3, Types.VARCHAR );
cstmt.executeUpdate();
catch(Exception e)
e.printStackTrace();
System.out.println(e.getMessage());
I get the following error:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'PROCEDURE_THAT_NOT_EXIST' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
how is it possible to check before getting this "not specific error" wheter the procedure exist on the database schema?
Thank you!
GianniI mean the error PLS-00201 is not only related to the
fact that the procedure does not exist, but more
generally to "identifiers". (what are identifiers?)The 'name' of something. So, using your example code the following is an identifier....
procedure_that_not_exist
Other identifiers are variables in procs, table names, field names, constraint names, etc. -
CIN: How to check the material document posted without excise invoice
Hi Guru,
Please advise how to check the material document posted without excise invoice.
I have tried tcode J1I7 but it seems start to collect the excise invoice first and then material document.
But my case is to find the material document WITHOUT excise invoice for internal tracking purpose.
At the moment we start from tcode MB51 to get the list of material document and check in J_1IEXCHDR / J_1IEXCDTL
Best regards,
PakornHi,
Try creating a Query in Tcode SQVI by combining tables MKPF and J_1IEXCHDR/J_1IEXCDTL for your requirement.
Check these threads how to create Query.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6018c1ae-8c44-2d10-6ea9-c3fad2c82880?QuickLink=index&…
http://ptgmedia.pearsoncmg.com/images/9780672329029/samplechapter/0672329026_CH03.pdf
Regards
Binoy -
How to find the existence of a tag in XML file through XSLT Mapping?
Hello Friends,
Working on an SAP XI interface ,I have come across a situation where I need to map the values only when a particular tag exists in the inbound XML file.I need to use the XSLT mapping for the same.
Requesting your advice on as to how may I validate the existence of a tag through XSLT mapping?
Thanks.Hello Friends
After research , I could also find another way to check the existence of a node .We can even use CHOOSE to check the existence.
<xsl:choose>
<xsl:when test="(/mynode)">
your action if the mynode is found
</xsl:when>
<xsl:otherwise>
action if mynode is not found
</xsl:otherwise>
</xsl:choose>
Thanks.
Wishes
Richa -
How to check the DTP status (i.e in active mode or not) for the Prior days.
Hi SAP gurus,
How to check the DTP status whether it was in active mode or inactive mode for the prior days ?Hi Aditya,
Kindly have a look into below links,
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00dbbfa9-dba2-2d10-bc80-9d6489e4b1c7?QuickLink=index&overridelayout=true
DTP request Overall status
Hope this helps.
Regards,
Mani -
how to check the usage of ram and cpu Performance for the particular application like sqlserver ,ms word
rankiHi,
You can use Performance Monitor and add the required counters.
Check the below Technet article on Performance Monitor.
http://technet.microsoft.com/en-us/library/cc749249.aspx
Below are the steps to monitor the process in Performance Monitor.
- Go to the Performance Monitor.
- Right-click on the graph and select "Add Counters".
- In the "Available counters" list, open the "Process" section by clicking on the down arrow next to it. Select "% Processor Time" (and any other counter you want).
- In the "Instances of selected object" list, select the process you want to track. Then click on "Add >>" button. Click on OK.
Regards,
Jack
www.jijitechnologies.com -
Procedure to check the existence of Indexes
I have a procedure whcih drops all the indexes, when the same procedure is executed again, it gives error "object does not exists" (obviously)
I want to avoid this error, how can I check the existence of index inside the procedure, so that the procedure will check if the index exists before deleting the index?
Is there a ready-made procedure available for such scenario?
Thanks in advanceThe other approach is to catch the exception in your script, i.e.
BEGIN
EXECUTE IMMEDIATE 'DROP INDEX <<index name>>';
EXCEPTION
WHEN OTHERS THEN
-- Drop failed. Do something to record the failure.
NULL;
END;Now, most of the time, you'll want to catch a few specific exceptions and you'll want to do something when you catch them (i.e. generate a log entry).
Justin -
Programmatically check the existence of objects in the system
Hi,
Is there a way to programmatically check the existence of objects? The idea is I'll accept a list of names of objects and their object types and then programmatically check their existence in the system?
Can you point me to a resource on how to do it?
Thanks in advance.
--CarlHi.
All custom objects (z, y) being referred to a program. May it be z or y table, data element, domain, sapscript form, function module/group.
The goal is actually to be able to transport a program from a source machine to a target machine. The objects being referred to from the program must also be transported, of course, for it to run properly. Thus, the need to check the objects' existence.
Thanks.
--Carl -
How to check the messages in solution manager?
hai experts !
how to check the messages in solution manager?
in which transaction do we see them?Hi Kiran,
From what I gather from your brief question, you are perhaps looking for CRM_DNO_MONITOR that would display all queries created from Satellite/SolMan system itself, as support messages.
If you are looking for Notifications underlying those messages, please look for DNOTIFWL.
For more specific answers, please provide more description of what you are looking for.
Trust this helps.
Regards,
Srini -
How to check the verity version in our PeopleSoft Installation?
How to check the verity version in our PeopleSoft Installation? I am not sure if the verity is installed or not and also if installed what is the version?
yes. it says the version is 5.0.1
Is there any difference in installation or configuration when the app and web server are in same machine and when the app and web server are installed in different servers?
============================================
D:\fs840\webserv\peoplesoft>mkvdk
mkvdk - Verity, Inc. Version 5.0.1 (_nti40, Jul 23 2004)
Usage: mkvdk [<option>...] <filespec>...
Where <option> can be a VDK switch, or any of:
-about Show the collection's about resources
-autodel Delete bulk insert file when no longer needed
-backup <dir> Specify collection backup location
-bulk Submit bulk insert file(s)
-charmap <name> Specify the character map to VDK
-collection <path> Specify the collection (required)
-create Create the collection
-credentials <user> Specify user[:passwd][:domain][:mailbox]
-datapath <path> Specify VDK datapath
-datefmt <fmt> Specify date format to VDK
-debug Enable debugging output
-delete Delete documents
-description <desc> Set the collection's description
-diskcache <num> Set VDK's disk cache size (kbytes)
-extract Extract field values from text
-help Print this usage information
-insert Insert documents (default)
-locale <locale> Specify the locale to VDK
-logfile <file> Save output in a log file
-loglevel <num> Set the VDK output level for the log
-mailboxes This option is depracated. Use the credentials option inste
ad
-maxfiles <num> Set VDK's maximum number of open files
-maxmemory <num> Set VDK's maximum memory usage (kbytes)
-mode <mode> Set the indexing mode
-modify Modify fields using field/value pairs from a bulkfile
-nohousekeep Disable housekeeping
-noindex Disable indexing
-nolock Turns off locking (dangerous)
-nooptimize Disable optimizations
-nosave Don't save collection work list
-noservice Prevents servicing of submitted work
-nosubmit Don't submit work to VDK
-numdocs <num> Number of documents to insert from bulk insert file(s)
-numpages <num> Synonym for diskcache for backward compatibility
-offset <num> Specify offset into bulk insert file(s)
-online Flag for online Bulk Modify
-optimize <spec> Optimize the collection
-outlevel <num> Set the VDK output level
-persist Service the collection forever
-purge Remove all documents from collection
-purgeback Purge in the background
-purgewait <secs> Specify delay before purge
-quiet Suppress all non-error messages
-repair Repair the collection
-servlev <spec> Advanced option for overriding service level
-sleeptime <secs> Interval between service calls for persist
-style <dir> Specify style directory for create
-submit Synonym for noservice for backward compatibility
-synch Perform work synchronously
-topicset <path> Specify VDK topic set
-update Update documents
-vdkhome <path> Specify VDK home
-verbose Output more information
-words Build word assist list
-wordindex Build word assist index
The <spec> for -optimize is a hyphenated string of:
maxmerge Perform maximal merging of partitions
squeeze Recover space from deleted documents
vdbopt Build optimized VDB's
spanword Create word list spanning all partitions
ngramindex Create ngram index into spanning word list
maxclean Really clean (not for read-write)
readonly Make the collection read-only
tuneup Fully optimize for read-write use
publish Fully optimize for read-only use
The <spec> for -servlev is a hyphenated string of:
search Enable search and retrieval
insert Enable adding and updating documents
optimize Enable opportunistic collection optimization
assist Enable building of word list
housekeep Enable housekeeping of unneeded files
delete Enable document deletion
backup Enable backup
purge Enable background purging
repair Enable collection repair
dataprep Same as search-index-optimize-assist-housekeep
index Same as insert-delete
Error: must specify collection
mkvdk done
D:\fs840\webserv\peoplesoft> -
Can anyone tell me how to check the balance on an iTunes gift card that is not yet scratched?
Can anyone tell me how to check the balance on an iTunes gift card that is not yet scratched or activated?
If it's not printed on the card, then you'll need to check the receipt from the purchase of the card. There's no way to check the value from the card itself without redeeming it.
Regards. -
How will check the space taken by a single table in a tablespace ?
How will check the space taken by a single table in a tablespace ?
dba_segments is giving the same values even if I truncate the table?
Pls replyI need to know how can we find out the size of the table in the tablespace.use user_segments (bytes) column.
How much bytes it has taken ?value from user_segments, bytes column
If u delete records will the space be used for another table in same tablespace?No, it keep the space in the same table for future usage.
How can we free that space ?truncate or drop the table and reduce the size from tablespace, if you want to reclaim the space from the tablespace, OS level.
Jaffar
Maybe you are looking for
-
Hi - We import our photos leaving them in the current location, which happens to be on AFP volumes. Everything works well except deleting (not removing) images. It errors out & says the file can't be moved to the trash. I tried it accross different s
-
Problem with C++ parser V2
Hi, I encountered some problems with C++ XML Parser on NT (0acle 8.1.7). I can't use the function print on a Node => error LNK2001: unresolved external symbol "public: void __thiscall Node::print(unsigned char *,unsigned int,unsigned int,unsigned int
-
Dual monitor setup for prem pro cs6
I asked a question a while back wanting to know can i work on two cs6 programs at the same time. Can this be done? Would it be dual monitors to one PC then could i open one project then another one at the dame time? steve
-
Wyse Thin client not connecting to Windows 2008 R2 server
Configuration SBS 2011 Server Windows 2008 R2 server with Remote Desktop Services installed, License Manager installed. WYSE WT3125SE thin clients with Windows CE 5 I setup the Windows 2008 with Remote Desktop Services and was able to successfully c
-
Is my hard disk telling me it gonna die?
Hi all, I have all sorts of troubles since I install (after initialising it, with zero write) Snow Leopard on my MacBook 2.'GHZ, 2008-11. Now, a newly created window opens in the top middle of the screen (instead of some pixels from the left). I also