Relational Architects International

Discussion Forum

Screenshots - run SYSPROC.DSNACCOR

Allows you to develop, test, deploy and manage routines such as Stored Procedures (SP), User Defined Functions (UDF) and Distinct Data Types (DDT) directly on the z/OS platform

Screenshots - run SYSPROC.DSNACCOR

Postby piverba » Mon May 12, 2008 5:36 pm

The following screens will demonstrate invocation of IBM Supplied stored procedure SYSPROC.DSNACCOR. This SP is very complex and requires many input parameters. DX/SPM dynamically creates an input parameters screen, validates the parameters you enter in accordance with its type, executes the stored procedure and displays output parameters and result sets. All this without any user coding.

Execute DB2 command to display all defined subsystems - the following screen is shown:

rai image
Screen 1 - Defined DB2 subsystems

In the Rcmd column next to the subsystem DSN9 enter spm command. The 'DX/SPM - Select routines' pop-up window is displayed. To limit selection of routines enter SYSPROC in the Routine schema field:

rai image
Screen 2 - Select routines

Next to DSNACCOR stored procedure in Rcmd column enter run command to prepare SP for execution:

rai image
Screen 3 - Enter run command to prepare the stored procedure for execution

A screen with the DSNACCOR parameters is display. The input parameters are formatted as modifiable fields so that you can enter input information. The output parameters are protected fields which mat receive values after the stored procedure execution.

rai image
Screen 4 - DSNACCOR parameters

Fill the input parameters on the screen and use UP/DOWN commands (PF7/PF8) to scroll screen up and down. When all parameters are entered press ENTER key.

rai image
Screen 5 - DSNACCOR parameters - 2

After stored procedure is executed the output parameters are filled in and several information sections are displayed:

  • Generated SQL statement - shows generated SQL statement used to test the stored procedure.
  • SQL message - is DSNTIAR translated message obtained from SQLCA that was set after the CALL statement.
  • Procedure returned 2 result set(s) - list first 20 rows of all returned result sets
Following screens are result of the stored procedure execution:

rai image
Screen 6 - After CALL statement - 1

rai image
Screen 7 - After CALL statement - 2

rai image
Screen 8 - After CALL statement - 3

rai image
Screen 9 - After CALL statement - 4

rai image
Screen 10 - After CALL statement - 5
piverba
Site Admin
 
Posts: 42
Joined: Thu Apr 03, 2008 4:56 pm

Return to SRM - System Routines Manager for DB2/z

Who is online

Users browsing this forum: No registered users and 1 guest

cron