RE: date question
I am confused. Can you explain in greater detail? I dont understand how you are getting 3/1/2003 when you subtract 3/1/2017 and 3/1/2018. What is the formula you are using? Also are you using z/OS...
View ArticleRE: date question
I am trying to get the most current 12 months of data based on a start date. so in this instance the start date is 3/1/2003. The most current 12 months would be from 3/1/2017 – 3/1/2018. The next...
View ArticleRE: date question
Ah now I follow. I will try to write something up for you. Seems like pretty simple SQL. Most likely just put the SQL into a function and call that function. Let me get back to you shortly. Are you...
View ArticleRE: date question
This makes absolutely no sense. What is the correlation between the start date and the most current 12 months of data. Until you provide that I don't know how the question can be answered.
View ArticleRE: date question
How does this work? Not sure about performance, but I think its what you want.with cte_dates as ( Select cast('5/22/2018' as date) as start_date from sysibm.sysdummy1 union all Select cast('3/1/2003'...
View Articledate question
I am trying to do a date calc that has me confused. i want to use a date in the past to as my starting point to get the most recent full 12 mont period3/1/2003 = 3/1/2017 - 3/1/20186/1/2005 =...
View ArticleOpena new file in same editor
Is it possible to open a new file and overwrite the existing data in an open editor?I am using v6.3Thanks,Paul
View ArticleRE: Opena new file in same editor
Not currently, but can you let us know your use case? Toad simply creates another Editor tab when opening up a script/file. So the end-result is the same, except that you get the flexibility of...
View ArticleRE: Opena new file in same editor
As Gary mentioned Toad will open up a new editor.If you wanted to bring the contents of that new editor into your existing editor - you can easily CTRL+A and CTRL+C to copy all of its contents.I too...
View ArticleRE: Opena new file in same editor
Our company recently disabled the Create and Replace for procedure command. I need to update about 400 stored procedures. I need to add a Drop and Create statement. I can do this with a code snippet.I...
View ArticleRE: toad for db2 freeware install error (64 bit version)
The 32-bit and 64-bit version cannot co-exist.Choose the bitness of Toad DB2 that matches the bitness of your local DB2 client.
View Articletoad for db2 freeware install error (64 bit version)
devexpress.xpf.grid dll cannot be written to, make sure you have admin rights etc etc, I start the installation from an elevated cmd prompt.if I install the 32 bit version then it installs fine.
View ArticleRE: Issue with a SELECT ... FOR UPDATE DB2 11.1
Hello vilallva11,These locks are there "by design". It means that this level of locking is expected and required. No way how to change it for FOR UPDATE clause. There is no DB/instance parameter to...
View ArticleIssue with a SELECT ... FOR UPDATE DB2 11.1
Hi!We are a issue in our database DB2 11.1 with a SELECT ... FOR UPDATE which is executed many time by seconds and it is generating many locks and the applications hangs.SQL_TEXT:SELECT...
View ArticleRE: Issue with a SELECT ... FOR UPDATE DB2 11.1
Thank Ondrej.Zizka !I agree that there is no parameter that change the behavior of the locks. IBM requires it to be executed at the moment the issue occurs:-> db2mon.pl and db2fodc -hang fullI...
View ArticleSQLSTATE=58005 - InnerException Message "No data exists for the row/column."
Hi,One of my customer is using TOAD to connect to our DB2 Reporting Database. When they run a SELECT query, they are getting the below error. Because of the InnerException Message "No data exists for...
View ArticleRE: SQLSTATE=58005 - InnerException Message "No data exists for the row/column."
Hello JRSK,Please create a Service Request with Technical Support. The request can be created here:support.quest.com/create-service-requestBest RegardsOndrej
View ArticleRE: Issue with a SELECT ... FOR UPDATE DB2 11.1
Hello villalva11,---------We know that the application has worked well with Oracle and they did not have this Issue of locks.---------Oracle uses a different approach to concurrency.There is database...
View ArticleDB2 LUW Restricted database - Permissions to be granted for READ / SELECT...
Hi,We created a DB2 restrictive database and trying to grant permissions for READ / SELECT ONLY Unix group so they have minimum level of access and yet are able to SELECT from application objects /...
View ArticleRE: Issue with a SELECT ... FOR UPDATE DB2 11.1
Thanks Ondrej.Zizka Yes, (CUR_COMMIT) = ON DB2 v11.1.0.0I consider correct or would you like to change it to OFF for the issue that I present ???
View ArticleRE: Issue with a SELECT ... FOR UPDATE DB2 11.1
Value ON is correct.Do you use DB2 compatibility vector settings? Have you set it to ORA and restarted the database?RegardsOndrej
View ArticleRE: Issue with a SELECT ... FOR UPDATE DB2 11.1
Hi Ondrej.Zizka,NO, only have set DB2_COMPATIBILITY_VECTOR=ORA in our development environment.Do you think this can help us ?? If so, how ??We have two possibles options in mind:1.- Alter table to...
View ArticleRE: Issue with a SELECT ... FOR UPDATE DB2 11.1
Hello,The ORA vector variable sets DB2 to behave as Oracle. You mentioned, that you have this parameter configured on DEV environment. Dou you have the problem you are describing on the DEV...
View ArticleRE: Issue with a SELECT ... FOR UPDATE DB2 11.1
Hi Ondrej.Zizka!!!The ORA vector variable sets DB2 to behave as Oracle. You mentioned, that you have this parameter configured on DEV environment. Dou you have the problem you are describing on the DEV...
View ArticleRE: DB2 LUW Restricted database - Permissions to be granted for READ / SELECT...
Hello voorkey,If you go to Tools | Execution Trace and select To File all the SQL queries executed by Toad Data Point will be recorded (including background queries). If you then click on Show Logfile,...
View Article