View previous topic :: View next topic |
Author |
Message |
meetrb Beginner
Joined: 24 Nov 2003 Posts: 40 Topics: 15
|
Posted: Sun Apr 10, 2005 5:58 am Post subject: Custom Message Display in Panel |
|
|
Hi,
I have created the following panel:
Code: |
)ATTR DEFAULT(%+_)
)BODY EXPAND(!!)
+
+ ENTER THE%DATE+RUN%+: _DATE
+
+ ENTER THE%REGION+: _REGION
+
+Press%ENTER+to process; Enter%END+command to exit.
)PROC
VER(&DATE,NONBLANK)
VER(®ION,NONBLANK)
VER(®ION,ALPHA)
VPUT(DATE REGION) SHARED
)END
I have declared a custom message as:
PPT101 "Date Entered is invalid"
"Date Entered is invalid'"
Inside a member PPT10
When the panel is displayed using the routine below:
/*REXX*/
ADDRESS ISPEXEC
/*"CONTROL ERRORS RETURN"*/
"LIBDEF ISPPLIB DATASET ID('bdlt.sihs135.pANELS') STACK"
"LIBDEF ISPMLIB DATASET ID('bdlt.sihs135.messages')"
"DISPLAY PANEL(CMNBUILD) msg(ppt101)"
"LIBDEF ISPPLIB"
"LIBDEF ISPMLIB"
"VGET (DATE REGION)"
EXIT 0
|
I am getting the following error message:
CMG999
Message syntax error.
PPT101 - contains invalid format syntax in long message.
Could anyone help with this.
Regards,
Meetrb |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Sun Apr 10, 2005 9:00 am Post subject: |
|
|
Quote: |
"Date Entered is invalid'"
|
meetrb,
You are missing a single quote in that message. Correct that and you should be fine.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
meetrb Beginner
Joined: 24 Nov 2003 Posts: 40 Topics: 15
|
Posted: Mon Apr 11, 2005 2:02 am Post subject: |
|
|
Thanks Kolusu,
Sorry did not see the quotes.
Regards,
Meetrb |
|
Back to top |
|
|
s_shivaraj Beginner
Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
|
Posted: Tue Apr 12, 2005 11:59 pm Post subject: How to execute the Panel Routine |
|
|
Hi Kolusu,
I am new to this rexx Panel,, I tried running the above code given by Meetrb with ur correction, i am getting the following error.
I ran the panel display routine using "tso ex 'pds.name(mem)', is that correct.. if not plz provide me the right way...
Panel line where error was detected:
)ATTR DEFAULT(%+_)
Error mesg:
A severe error occurred under dialog:
Application : ISP
Function . : Command EX
Service . . : DISPLAY
Error message ID: ISPP111 _________________ Cheers
Sivaraj S
'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity' |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Wed Apr 13, 2005 2:56 am Post subject: |
|
|
Quickref gives this information:
[code:1:b48ddcf42c]
------------------------------------------ V=IBM P=Z/OS ISPF MESSAGES R=V1R4 I=ISPP111 -------
********************* Text Below Copyright (c) 2005, IBM *********************
+------------------------------------------------------------------------+
_________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
|
s_shivaraj Beginner
Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
|
Posted: Wed Apr 13, 2005 4:03 am Post subject: |
|
|
Meryn,
Thanks for the respnse.
It went fine when i started the lines from column position 2.
But now i am getting this Error msg :
ISPP150
Panel 'AAPANEL' error
No )END found before reaching end of file.
I can clearly see the End at the end of the coding.. I am attaching my code used..
Code: |
***************************** Top of Data ***
----+----1----+----2----+----3----+----4----+
)ATTR DEFAULT(%+_)
)BODY EXPAND(!!)
+ ENTER THE%DATE +RUN%+:_DATE
+ ENTER THE%REGION+: _REGION
)PROC
VER(&DATE.NOBLANK)
VER(®ION,NOBLANK)
VER(®ION,ALPHA)
VPUT(DATE REGION) SHARED
VPUT(DATE REGION) SHARED
)END
|
Note: Coding is starting at col 2, here its not showing.. _________________ Cheers
Sivaraj S
'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity' |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
|
Back to top |
|
|
s_shivaraj Beginner
Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
|
Posted: Thu Apr 14, 2005 12:56 am Post subject: Its really surprising |
|
|
Merv,
Its really surprising
Code: | ***************************** Top of Data ***************
)ATTR DEFAULT(%+_)
)BODY EXPAND(!!)
+
+ ENTER THE%DATE+RUN%+: _DATE
+
+ ENTER THE%REGION+: _REGION
+
+PRESS%ENTER+TO PROCESS; ENTER%END+COMMAND TO EXIT.
)PROC
VER(&DATE,NONBLANK)
VER(®ION,NONBLANK)
VER(®ION,ALPHA)
VPUT(DATE) SHARED
)END |
Rexx routine for calling the panel :
Code: | /*REXX*/
ADDRESS ISPEXEC
/*"CONTROL ERRORS RETURN"*/
"LIBDEF ISPPLIB DATASET ID('pdsname') STACK"
"LIBDEF ISPMLIB DATASET ID('pdsname')"
"DISPLAY PANEL(AAPANEL)"
EXIT 0 |
I am getting this Error.
ISPV021
Invalid GET request
Variable name ')' is not a valid REXX variable name.
But were is the Get Request, i am not seeing any were in my code.
Please help me in displaying my First Panel. _________________ Cheers
Sivaraj S
'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity' |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Thu Apr 14, 2005 3:19 am Post subject: |
|
|
s_shivaraj,
Please try again with all of the ")" commands in column 1. _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
|
s_shivaraj Beginner
Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
|
Posted: Thu Apr 14, 2005 4:21 am Post subject: |
|
|
Merv,
If i start in column 1 , then i am getting the following error msg, which i posted first.
Panel 'AAPANEL' error
Illegal characters or statement type found in )ATTR section.
Panel line where error was detected:
)ATTR DEFAULT(%+_)
Error message ID: ISPP111
I hexed On my code, i am not seeing anything unusal there...
Pasting the Hex code here
Code: | ------------------------------------------------
)ATTR DEFAULT(%+_)
5CEED4CCCCEDE46465444444444444444444444444444444
D133904561433DCEDD000000000000000000000000000000
------------------------------------------------
)BODY EXPAND(!!)
5CDCE4CEDCDC455544444444444444444444444444444444
D26480577154DAAD00000000000000000000000000000000
------------------------------------------------
+
444444444444444444444444444444444444444444444444
E00000000000000000000000000000000000000000000000
------------------------------------------------
+ ENTER THE%DATE+RUN%+: _DATE
444CDECD4ECC6CCEC4DED64746CCEC444444444444444444
E00553590385C4135E945CEA0D4135000000000000000000
+PRESS%ENTER+TO PROCESS; ENTER%END+COMMAND TO EXIT.
4DDCEE6CDECD4ED4DDDCCEE54CDECD6CDC4CDDDCDC4ED4CECE444444
E79522C55359E3607963522E055359C554E364415403605793B00000
--------------------------------------------------------
)PROC
5DDDC444444444444444444444444444444444444444444444444444
D7963000000000000000000000000000000000000000000000000000
--------------------------------------------------------
VER(&DATE,NONBLANK)
ECD45CCEC6DDDCDCDD54444444444444444444444444444444444444
559D04135B56523152D0000000000000000000000000000000000000
--------------------------------------------------------
VER(®ION,NONBLANK)
ECD45DCCCDD6DDDCDCDD544444444444444444444444444444444444
559D0957965B56523152D00000000000000000000000000000000000
--------------------------------------------------------
VER(®ION,ALPHA)
ECD45DCCCDD6CDDCC544444444444444444444444444444444444444
559D0957965B13781D00000000000000000000000000000000000000
------------------------------------------------------------
VPUT(DATE) SHARED
EDEE4CCEC54ECCDCC4444444444444444444444444444444444444444444
5743D4135D02819540000000000000000000000000000000000000000000
------------------------------------------------------------
)END
5CDC44444444444444444444444444444444444444444444444444444444
D55400000000000000000000000000000000000000000000000000000000
------------------------------------------------------------
**************************** Bottom of Data **************** |
_________________ Cheers
Sivaraj S
'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity' |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Thu Apr 14, 2005 6:04 am Post subject: |
|
|
s_shivaraj,
I don't understand why you are still getting an error.
This works for me:
Code: |
****** ********************************* Top of Data *****************
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6---
000001 )ATTR DEFAULT(%+_)
000002 )BODY EXPAND(!!)
000003 +
000004 + ENTER THE%DATE+RUN%+: _DATE
000005 +
000006 + ENTER THE%REGION+: _REGION
000007 +
000008 +PRESS%ENTER+TO PROCESS; ENTER%END+COMMAND TO EXIT.
000009 )PROC
000010 VER(&DATE,NONBLANK)
000011 VER(®ION,NONBLANK)
000012 VER(®ION,ALPHA)
000013 VPUT(DATE) SHARED
000014 )END
****** ******************************** Bottom of Data ***************
|
Give it a try. _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Apr 14, 2005 7:00 am Post subject: |
|
|
Do you have numbering on? If so, turn it off. Otherwise you have garbage in cols 73-80. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Apr 14, 2005 7:09 am Post subject: |
|
|
With NUMS ON, I get this error:
Quote: |
ISPP111
Panel 'AAPANEL' error
Illegal characters or statement type found in )ATTR section.
|
with NUMS OFF, the panel works fine for me also. |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Thu Apr 14, 2005 8:12 am Post subject: |
|
|
Could be a clue!
Good spot, Superk! _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Thu Apr 14, 2005 8:13 am Post subject: |
|
|
Sorry, Semigeezer, you should have been included in that last post! _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
|
|
|