Advertisement

09.12.2005 at 07:07AM PDT, ID: 21558279
[x]
Attachment Details

DB2 STORED PROCEDURE

Asked by ngujja in DB2 Database

Tags: procedure, stored, db2

Hi
Can someone validate if the following Stored Procedure is valid:

CREATE PROCEDURE SPROC.PMDR0002 (
  IN STATS_DT DATE,
  IN STATS_HR CHAR(2),
  IN AUD_PGM_ID CHAR(8),
  IN AUD_OPID CHAR(8),
  IN AUD_TS TIMESTAMP )
  LANGUAGE SQL
  MODIFIES SQL DATA
  COLLID SPROC
  WLM ENVIRONMENT DBD1WLM1
  ASUTIME NO LIMIT
  SECURITY DB2
  STAY RESIDENT YES
  EXTERNAL NAME 'PMDR0002'
  RUN OPTIONS 'ALL31(ON) HEAP(,,ANY) STACK(,,ANY,)'
------------------------------------------------------------------------
-- SQL Stored Procedure
-- Long Name:  FIND MERCHANT BY AFFILIATE, CHANNEL, STORE, AND PAYMENT METHOD
------------------------------------------------------------------------
P1: BEGIN
INSERT INTO AU002AT_AU_TMPSTAT
values (STATS_DT,STATS_HR, , , , , , , , AUD_PGM_ID, AUD_OPID, AUD_TS);  <---
  END P1

Notice that in the table AU002_AU_TMPSTAT I have to only insert a few fields the rest of the fields have to be null, is the above method OK? High points coz I need a prompt confirmation.

Thank You
ngujjaStart Free Trial
[+][-]09.12.2005 at 07:18AM PDT, ID: 14864170

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.12.2005 at 07:42AM PDT, ID: 14864364

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.12.2005 at 07:46AM PDT, ID: 14864396

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: DB2 Database
Tags: procedure, stored, db2
Sign Up Now!
Solution Provided By: Kdo
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.12.2005 at 07:53AM PDT, ID: 14864463

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32