View previous topic :: View next topic
|
Author |
Message |
Ramsee
New User
Joined: 06 Jan 2011 Posts: 53 Location: Chennai
|
|
|
|
Hi All,
Good Day!!
I am very new to REXX Programing and currently i am trying to populate a sample message into the SCREEN via REXX Panels but unfortunately i am getting a ERROR as below, Kindly help me to find out the mistake that i have committed in the below code.
Sample Code:
Code: |
/* REXX */
"PROFILE NOPREFIX"
/* LIBRARY Where the PANEL CODE is present */
"ISPEXEC LIBDEF ISPPLIB DATASET ID(USER.TEST.SOURCE.PANEL)"
"ISPEXEC ADDPOP"
/* Name of the PANEL */
"ISPEXEC DISPLAY PANEL(PANEL1)"
"ISPEXEC REMPOP"
"ISPEXEC LIBDEF ISPPLIB"
|
PANEL Code:
Code: |
)PANEL
/* PANEL 1 CREATED */
)BODY WINDOW(10,5)
+ PANEL1 +
+ THIS IS THE TEST PANEL
+
+ GOOD BYE ...
)END
|
Error Message:
Code: |
ISPP100
Panel 'PANEL1' error
Panel not found.
|
Thanks in advance for your kind time on helping me. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Possibly because there is no such thing as REXX panels
Is the panel library concatenated to the ISPPLIB DD
What is )PANEL - where did you find that ? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Show us the rexx trace.
What are the return codes... especially from the LIBDEF? |
|
Back to top |
|
|
Ramsee
New User
Joined: 06 Jan 2011 Posts: 53 Location: Chennai
|
|
|
|
Hi Expat,
Thanks for your time!
Now i am able to run the sample pgm correctly.
CODE:
Code: |
/* REXX */
"PROFILE NOPREFIX"
"ISPEXEC LIBDEF ISPPLIB DATASET ID('USER.TEST.SOURCE.PANEL')"
"ISPEXEC ADDPOP"
"ISPEXEC DISPLAY PANEL(TEST)"
"ISPEXEC REMPOP"
|
Panel:
Code: |
)PANEL
/* PANEL 1 CREATED */
)BODY WINDOW(50,5) --> Size of the WIDGET in the window
+ PANEL1 + --> Name of the PANEL as "PANEL1"
+ THIS IS THE TEST PANEL
+
+ GOOD BYE ... --> Test message in the WIDGET
)END |
Output :
Code: |
EsssssssssssssssssssssssssssssssssssssssssssssssssssN
e PANEL1 e
e THIS IS THE TEST PANEL e
e e
e GOOD BYE ... e
e e
DsssssssssssssssssssssssssssssssssssssssssssssssssssM
|
Thanks for the question as i tried a lot and got the output!! |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
What is )PANEL - where did you find that ? |
)PANEL is a standard tag, but you typically only use it if you want to use keylists with this panel. |
|
Back to top |
|
|
|