MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 27 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: SQLCODE -433 Trying to update a column using a UDF
agredell

Replies: 1
Views: 2775

PostForum: Database   Posted: Tue Feb 17, 2009 12:33 pm   Subject: SQLCODE -433 Trying to update a column using a UDF
DB2 V7 on Z/OS, we built UDF's to migrate between a long part number and a short part number as needed. The UDF's are working fine, converting away happily in any SELECT statement.

But, due to a p ...
  Topic: DB2 Function written in COBOL Zos
agredell

Replies: 8
Views: 4789

PostForum: Database   Posted: Thu Jan 08, 2009 3:41 pm   Subject: DB2 Function written in COBOL Zos
I have used SYSIBM.SYSDUMMY1 for years in cases where I had a literal that needed a function of any kind applied. Normally, I will expect this UDF to reference a column in a table, rather than a lite ...
  Topic: DB2 Function written in COBOL Zos
agredell

Replies: 8
Views: 4789

PostForum: Database   Posted: Tue Jan 06, 2009 11:42 am   Subject: DB2 Function written in COBOL Zos
The changes we made worked! Kolusu, it appears not to matter that the SYSDUMMY1 table definition is not equal to the field or fields in question; for example, the following query:

select sandbox. ...
  Topic: DB2 Function written in COBOL Zos
agredell

Replies: 8
Views: 4789

PostForum: Database   Posted: Fri Jan 02, 2009 5:10 pm   Subject: DB2 Function written in COBOL Zos
Sorry for any lack of clarity!!

Kolusu, I think I understand what you mean, and it will be possible for me to test this UDF using a value selected from a real table.

jsharon, I was using the sta ...
  Topic: DB2 Function written in COBOL Zos
agredell

Replies: 8
Views: 4789

PostForum: Database   Posted: Fri Jan 02, 2009 2:54 pm   Subject: UDFs in ZOS
I was wondering if anyone has anything new to add to this thread? I have a working SP, and a UDF created on it, but it doesn't return anything when invoked through a function call, while the SP does ...
  Topic: DELETE Processing and Foreign Key Requirements
agredell

Replies: 4
Views: 2000

PostForum: Database   Posted: Tue May 22, 2007 9:04 am   Subject: Foreign Key and Multi-column Indexes
I was finally able to test the scenario I described, and the delete ran very quickly, so it is apparent that DB2 is indeed able to use a multi-column index to do a referential integrity check.
  Topic: DELETE Processing and Foreign Key Requirements
agredell

Replies: 4
Views: 2000

PostForum: Database   Posted: Wed Apr 25, 2007 8:30 am   Subject: DELETE Processing and Foreign Key Requirements
Sorry, Kolusu, this is a long-known hole in the EXPLAIN function. You are not directly referencing the child table in your query (so no EXPLAIN output related to the child table), but DB2 must check ...
  Topic: DELETE Processing and Foreign Key Requirements
agredell

Replies: 4
Views: 2000

PostForum: Database   Posted: Tue Apr 24, 2007 4:27 pm   Subject: DELETE Processing and Foreign Key Requirements
I have a table (Fact table in a data mart) with 5 foreign keys; to allow Starjoin to be selected more frequently, I am considering 5 different indexes, each with all 5 columns, but also each with a di ...
  Topic: Insert with Subselect and Nested Table Expression (DB2 Z/os)
agredell

Replies: 12
Views: 6935

PostForum: Database   Posted: Wed Feb 07, 2007 10:44 am   Subject: Insert with Subselect and Nested Table Expression (DB2 Z/os)
Once again, Kolusu, you have come to the rescue!! With some additional modifications and a long time until I figured out the cause for a -408 value problem (the last two columns, representing the SQL ...
  Topic: Insert with Subselect and Nested Table Expression (DB2 Z/os)
agredell

Replies: 12
Views: 6935

PostForum: Database   Posted: Wed Feb 07, 2007 8:56 am   Subject: Insert with Subselect and Nested Table Expression (DB2 Z/os)
Very ingenious, and makes sense! I will report back as soon as I can try it. Thanks much again, Kolusu!!! Very Happy
  Topic: Insert with Subselect and Nested Table Expression (DB2 Z/os)
agredell

Replies: 12
Views: 6935

PostForum: Database   Posted: Tue Feb 06, 2007 3:26 pm   Subject: Insert with Subselect and Nested Table Expression (DB2 Z/os)
Kolusu, you are so very close; the only problem with your example is that the "COUNT(*)" function is a count from a different table, and THAT is exactly why I'm trying to use the nested tabl ...
  Topic: Insert with Subselect and Nested Table Expression (DB2 Z/os)
agredell

Replies: 12
Views: 6935

PostForum: Database   Posted: Tue Feb 06, 2007 9:13 am   Subject: Insert with Subselect and Nested Table Expression (DB2 Z/os)
Thanks for the responses, programmer and Kolusu; programmer, the syntax still must be off, though I cannot see why; I get a -104 on the token "MIN" for your example. You are on the right tr ...
  Topic: Insert with Subselect and Nested Table Expression (DB2 Z/os)
agredell

Replies: 12
Views: 6935

PostForum: Database   Posted: Mon Feb 05, 2007 4:36 pm   Subject: Insert with Subselect and Nested Table Expression (DB2 Z/os)
I always turn to Kolusu when all other sources fail!

I am trying to insert into an audit table of our own design. The idea is to name some identifying data about the row, then either a count value ...
  Topic: Include a Carriage Return (x'0D') in a result set
agredell

Replies: 2
Views: 2049

PostForum: Database   Posted: Wed Jan 03, 2007 11:11 am   Subject: Include a Carriage Return (x'0D') in a result set
Thanks, Kolusu; my nitty gritty work with DB2 has been limited lately, I knew this answer, but couldn't pull it from offline storage!! My buffers had been flushed!! Your help, as always, is apprecia ...
  Topic: Include a Carriage Return (x'0D') in a result set
agredell

Replies: 2
Views: 2049

PostForum: Database   Posted: Wed Jan 03, 2007 10:39 am   Subject: Include a Carriage Return (x'0D') in a result set
I've built a query that has been working fine, but the file is being transferred by SFTP (used to be a standard FTP), and the required CR/LF line termination that terminated each output line in the FT ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group