Page 1 of 1

error in creating panel

PostPosted: Thu Feb 10, 2011 5:43 pm
by syamcs
I want to design a panel but the program is showing error ,the following is my code

/*REXX*/
ADDRESS ISPEXEC
"DISPLAY PANEL(PNL)"
/* MEMBER PNL
) PANEL
) ATTR DEFAULT(%+_)
% TYPE(TEXT) INTENS(HIGH)
+ TYPE(TEXT) INTENS(LOW)
) BODY
 +               A SAMPLE PANEL
 +     ########################################
 +     %ENTER YOUR NAME PLEASE===>_URNAME              +
 +
 +     +PRESS ENTER TO CONTINUE,PF3 TO EXIT            +
 +
 +
) INIT
) PROC
    VER (&URNAME,NE,ALPHAB)
)END
*/

the following is the error i am getting

ISPV021
Invalid GET request
Variable name ')' is not a valid REXX variable name.

Re: error in creating panel

PostPosted: Thu Feb 10, 2011 5:59 pm
by enrico-sorichetti
You are mixing ISPF panel constructs with rexx code

here are the links to the relevant manuals
for REXX/TSO
http://publibz.boulder.ibm.com/cgi-bin/ ... s/IKJ4BK90

for ISPF
http://publibz.boulder.ibm.com/cgi-bin/ ... s/ISPZPM70

Re: error in creating panel

PostPosted: Thu Feb 10, 2011 6:35 pm
by MrSpock
Yes. This part is fine for coding in REXX:

/*REXX*/
ADDRESS ISPEXEC
"DISPLAY PANEL(PNL)"


The calling code would be similar in any other language as well, like COBOL:
CALL ISPLINK ('DISPLAY ','PNL').


Then you need a member "PNL" in your panel library (ISPPLIB):

)PANEL
)ATTR DEFAULT(%+_)
% TYPE(TEXT) INTENS(HIGH)
+ TYPE(TEXT) INTENS(LOW)
)BODY
+               A SAMPLE PANEL
+     ########################################
+     %ENTER YOUR NAME PLEASE===>_URNAME              +
+
+     +PRESS ENTER TO CONTINUE,PF3 TO EXIT            +
+
+
)INIT
)PROC
    VER (&URNAME,NE,ALPHAB)
)END

Re: error in creating panel

PostPosted: Thu Feb 10, 2011 9:00 pm
by Akatsukami
Note that, as Mr. Spock implies, the proximate cause of the error that you are getting is the spaces between the right parentheses and the keywords INIT and PROC.

Re: error in creating panel

PostPosted: Fri Feb 11, 2011 2:04 am
by NicC
the following is the error i am getting

ISPV021
Invalid GET request
Variable name ')' is not a valid REXX variable name.

1 - as shown the Rexx code is perfectly valid - just fails with panel not found
2 - once you create the panel THEN you get the errors specified
2 - once you fix the spaces after the )s I found, on my system, that ALPHAB is invalid

Re: error in creating panel

PostPosted: Fri Feb 11, 2011 5:39 pm
by syamcs
thanks Mr.spock its working fine