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 

REXX with ISPF Panel

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
pnbalaji
Beginner


Joined: 05 Oct 2004
Posts: 14
Topics: 8
Location: Chennai, India

PostPosted: Tue Oct 05, 2004 2:09 pm    Post subject: REXX with ISPF Panel Reply with quote

Hi,

I have coded a REXX exec to generate the DB2 REPAIR jcl. The inputs
are taken from an ISPF panel. I have a strange issue. The REXX exec is
working fine in my PC most of the times (but not all times). However,
it is not working in my friend's PC. Another issue I have is when I
execute the exec, the LIBDEF statements are causing some problems ( I
guess the NULL LIBDEF statement at line #7 is the one that is causing
problems) and I am not able to execute SPUFI. SPUFI asks for the DB2
subsystem before I enter the SQL query. I am pasting both the REXX
code and the ISPF panel code. Can some one tell me how to fix the
above issues?. It would be better if someone has time to re-write the
piece of code.

I have some more questions that are listed below.

1. Is it necessary to use the VPUT statement in the ISPF panel PROC
to save the variables that I enter in the dialog?.
2. When should I use NEWAPPL and PASSLIB commands?.

REXX EXEC CODE:
Code:

---------------
===============================================/******************** REXX *****************************************
ADDRESS ISPEXEC                                                     
"CONTROL ERRORS RETURN"                                             
"LIBDEF ISPPLIB DATASET ID('TSO.BNEELKA.PANELS') STACK"             
"DISPLAY PANEL(REPAIR)"                                             
DISPLAY_RC = RC                                                     
"VGET (DB2SUB CREATOR TBLNAME) SHARED"
"LIBDEF ISPPLIB"                                                   
O = MSG("OFF")                                                     
USER = USERID()                                                     
                                                                   
REG = WORD(DB2SUB,1)                                               
CRT = WORD(CREATOR,1)                                               
TBL = WORD(TBLNAME,1)                                               
CALL BUILD'JCL
===============================================
ISPF PANEL CODE:
----------------
===============================================)BODY
%--------------- REXX EXEC TO CREATE DB2 REPAIR JOB
-------------------
%
+LOGGED ON USER=====>%&ZUSER
%
%
%1. ENTER DB2 SUBSYSTEM ====>_DB2SUB  +
%
%2. ENTER TABLE CREATOR ====>_CREATOR +
%
%3. ENTER TABLE NAME    ====>_TBLNAME          +
%
)INIT
        .HELP    = REPHELP
        &DB2SUB  = ''
        &CREATOR = ''
        &TBLNAME = ''
)PROC
        VER (&DB2SUB,NONBLANK)
        VER (&CREATOR,NONBLANK)
        VER (&TBLNAME,NONBLANK)
        "VPUT (DB2SUB CREATOR TBLNAME) SHARED"
)END
===============================================

Thanks,
Balaji.
Back to top
View user's profile Send private message
Maton_Man
Beginner


Joined: 30 Jan 2004
Posts: 123
Topics: 0

PostPosted: Tue Oct 12, 2004 7:28 pm    Post subject: Reply with quote

You have a number of problems here:

1. No error checking in your rexx = bad
2. No variable value checking = bad
3. No demonstration of how you are calling this rexx, therefore no way of telling what application id you are using

The number of reasons why this might be failing are sufficiently numerous as to not even warrant speculation of what the problem might be.

Turn tracing on and see what is happening when you run it and capture the output to post here and we might have a chance!
_________________
My opinions are exactly that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group