The following is panell source named P@30610
)ATTR
* TYPE(TEXT) INTENS(HIGH) COLOR(BLUE) CAPS(OFF)
# TYPE(TEXT) INTENS(HIGH) COLOR(WHITE) CAPS(OFF)
@ TYPE(TEXT) INTENS(LOW) COLOR(GREEN)
_ TYPE(INPUT) INTENS(HIGH) COLOR(WHITE) PAD('_') CAPS(OFF)
{ TYPE(OUTPUT) INTENS(LOW) COLOR(WHITE) CAPS(OFF)
)BODY
* Database Archiving Tool
*
* @This utility will archive data in a database to GDGs
*
* Database/HLQ name:_DBname *Date for Archiving:_ARVdate #(dd/mm/yyyy)
*
* Table Name 1:_TBLname1 +
*
* Table Name 2:_TBLname2 +
Table Name 3:_TBLname3 +
Table Name 4:_TBLname4 +
Table Name 5:_TBLname5 +
Table Name 6:_TBLname6 +
{INFO
PROC
ver(&DBname,nb)
ver(&ARVdate,nb)
ver(&ARVdate,pict,'nn/nn/nnnn')
&KEYNUM = .PFKEY
vput(DBname ARVdate TBLname1 TBLname1 TBLname2 TBLname3 TBLname4 +
TBLname5 TBLname6) SHARED
IF (&KEYNUM = 'PF03')
&NOMORE = 'Y'
VGET(INFO)
END
* TYPE(TEXT) INTENS(HIGH) COLOR(BLUE) CAPS(OFF)
# TYPE(TEXT) INTENS(HIGH) COLOR(WHITE) CAPS(OFF)
@ TYPE(TEXT) INTENS(LOW) COLOR(GREEN)
_ TYPE(INPUT) INTENS(HIGH) COLOR(WHITE) PAD('_') CAPS(OFF)
{ TYPE(OUTPUT) INTENS(LOW) COLOR(WHITE) CAPS(OFF)
)BODY
* Database Archiving Tool
*
* @This utility will archive data in a database to GDGs
*
* Database/HLQ name:_DBname *Date for Archiving:_ARVdate #(dd/mm/yyyy)
*
* Table Name 1:_TBLname1 +
*
* Table Name 2:_TBLname2 +
Table Name 3:_TBLname3 +
Table Name 4:_TBLname4 +
Table Name 5:_TBLname5 +
Table Name 6:_TBLname6 +
{INFO
PROC
ver(&DBname,nb)
ver(&ARVdate,nb)
ver(&ARVdate,pict,'nn/nn/nnnn')
&KEYNUM = .PFKEY
vput(DBname ARVdate TBLname1 TBLname1 TBLname2 TBLname3 TBLname4 +
TBLname5 TBLname6) SHARED
IF (&KEYNUM = 'PF03')
&NOMORE = 'Y'
VGET(INFO)
END
REXX code
/* REXX */
/*********************************************************************/
/* MAIN ROUTINE */
/*********************************************************************/
ADDRESS TSO
KEYNUM = 0
NOMORE = ''
DO UNTIL (NOMORE = 'Y')
CLRSCRN
CALL DISPLAY_PANEL
END
EXIT
/*********************************************************************/
/* DISPLAY PANEL */
/*********************************************************************/
DISPLAY_PANEL:
/* panel location */
panel_pds = 'REXX.EXEC'
ADDRESS ISPEXEC "LIBDEF ISPPLIB DATASET ID("panel_pds") STACK"
/* clear panel's variable */
DBname = ''
ARVdate = ''
TBLname1 = ''
TBLname2 = ''
TBLname3 = ''
TBLname4 = ''
TBLname5 = ''
TBLname6 = ''
/* put value into panel */
ADDRESS ISPEXEC "VPUT (INFO) SHARED"
/* display panel */
ADDRESS ISPEXEC "CONTROL DISPLAY REFRESH"
ADDRESS ISPEXEC "DISPLAY PANEL(p@30610)"
/* when you press F3 */
IF KEYNUM = 'PF03' THEN DO
NOMORE = 'Y'
RETURN
END
/* get value from panel */
ADDRESS ISPEXEC "VGET (DBname ARVdate TBLname1 TBLname2 TBLname3 ,
TBLname4 TBLname5 TBLname6) SHARED"
RETURN
/*********************************************************************/
/* MAIN ROUTINE */
/*********************************************************************/
ADDRESS TSO
KEYNUM = 0
NOMORE = ''
DO UNTIL (NOMORE = 'Y')
CLRSCRN
CALL DISPLAY_PANEL
END
EXIT
/*********************************************************************/
/* DISPLAY PANEL */
/*********************************************************************/
DISPLAY_PANEL:
/* panel location */
panel_pds = 'REXX.EXEC'
ADDRESS ISPEXEC "LIBDEF ISPPLIB DATASET ID("panel_pds") STACK"
/* clear panel's variable */
DBname = ''
ARVdate = ''
TBLname1 = ''
TBLname2 = ''
TBLname3 = ''
TBLname4 = ''
TBLname5 = ''
TBLname6 = ''
/* put value into panel */
ADDRESS ISPEXEC "VPUT (INFO) SHARED"
/* display panel */
ADDRESS ISPEXEC "CONTROL DISPLAY REFRESH"
ADDRESS ISPEXEC "DISPLAY PANEL(p@30610)"
/* when you press F3 */
IF KEYNUM = 'PF03' THEN DO
NOMORE = 'Y'
RETURN
END
/* get value from panel */
ADDRESS ISPEXEC "VGET (DBname ARVdate TBLname1 TBLname2 TBLname3 ,
TBLname4 TBLname5 TBLname6) SHARED"
RETURN
when I input DB2T into panel's Database/HLQ name field. the srcreen goto the following screen.
DB2I PRIMARY OPTION MENU SSID: DB2T
COMMAND ===>
Select one of the following DB2 functions and press ENTER.
1 SPUFI (Process SQL statements)
2 DCLGEN (Generate SQL and source language declarations)
3 PROGRAM PREPARATION (Prepare a DB2 application program to run)
4 PRECOMPILE (Invoke DB2 precompiler)
5 BIND/REBIND/FREE (BIND, REBIND, or FREE plans or packages)
6 RUN (RUN an SQL program)
7 DB2 COMMANDS (Issue DB2 commands)
8 UTILITIES (Invoke DB2 utilities)
D DB2I DEFAULTS (Set global parameters)
X EXIT (Leave DB2I)
note: DB2T is db2 ssid.
I don't find way to sovle this issuse.
Please give me some suggestion.
thank you for your help.