View previous topic :: View next topic
|
Author |
Message |
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
Code: |
)panel
/* panel 1 created */
)ATTR
@ TYPE(OUTPUT) INTENS(LOW) COLOR(WHITE)
! TYPE(INPUT) INTENS(NON)
¢ TYPE(TEXT) INTENS(HIGH) COLOR(WHITE) HILITE(REVERSE)
# TYPE(TEXT) INTENS(HIGH) COLOR(GREEN) HILITE(REVERSE)
)body window(10,20)
+PNAEL 1
+ PGMLIB :_ZDSP +
+ DBRMLIB :_ZDSD +
+
)end |
Code: |
/*REXX*/
ADDRESS ISPEXEC "LIBDEF ISPPLIB DATASET" ,
"ID('XXXX.ISPPLIB') STACK"
ISSPEXEC ADDPOP ROW(10) COLUMN(20)
ZWINTTL='SETUP SYSTEM '
"ISPEXEC DISPLAY PANEL(ADDPOP01)"
"ISPEXEC LIBDEF ISPPLIB" |
Please help me how to caliculate the correct size to avoid these errors and also please let me know i want to popup in the middle
Code: |
ISPP353
Panel 'ADDPOP01' error
Panel record longer than specified (or defaulted) window width.
Panel line where error was detected:
+ PGMLIB :_ZDSP +
Enter HELP command for further information regarding this error.
Press ENTER key to terminate the dialog. |
Code: |
ISPP352
Panel 'ADDPOP01' error
Invalid window depth value (must be numeric, > 0, less than screen
depth). |
|
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
Number one, your (10,20) states the width of your popup is 10 characters and to place the popup starting on line 20 of the screen.
I would really trying READING the MANUAL |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
nkothako wrote: |
Code: |
)body window(10,20)
+PANEL 1
+ PGMLIB :_ZDSP +
+ DBRMLIB :_ZDSD +
+
)end |
|
The WINDOW parameter defines the size of your popup window.
The window definition that follows must fit into that size, otherwise you'll get the error you got.
Try different values (like "window(5,60)" for a start).
nkothako wrote: |
Code: |
ISPEXEC ADDPOP ROW(10) COLUMN(20) |
|
The ROW and COLUMN parameters define the position of your popup window.
If the window width is 60 characters and you want it in the middle, you will have 10 chars on both sides, so you will start with COLUMN(10).
Then you will see that it doesn't exactly work like this, there is a frame around the window, so you will move it to the left as COLUMN(6) for example.
Same thing for the ROW. Try different values until you are satisfied...
Additional notes:
1. Try not to use variables starting with a Z. Some are ISPF specific (ZCMD is the first example that comes to mind).
2. Use quotes:
Code: |
ISPEXEC "ADDPOP ROW(10) COLUMN(20)" |
3. Be consistent: sometimes you have ADDRESS ISPEXEC, sometimes ISPEXEC, sometimes within quotes, sometimes not.... |
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
Code: |
ISPP351
Panel 'ADDPOP01' error
Invalid window width value (must be numeric, >= 8, less than screen
width).
Panel line where error was detected:
)body window(5,60) |
Code: |
ISPP352
Panel 'ADDPOP01' error
Invalid window depth value (must be numeric, > 0, less than screen
depth).
Panel line where error was detected:
)body window(8,50) |
thx alot
Even after giving ISPEXEC ADDPOP ROW(1) COLUMN(1) values i am getting the above errors |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
you do not even take the time to look or listen to what you have been told.
1st of all you left out the ) in front of the ATTR command
Code: |
)ATTR
@ TYPE(OUTPUT) INTENS(LOW) COLOR(WHITE)
! TYPE(INPUT) INTENS(NON)
_ TYPE(INPUT) COLOR(PINK) INTENS(HIGH) CAPS(ON)
¢ TYPE(TEXT) INTENS(HIGH) COLOR(WHITE) HILITE(REVERSE)
# TYPE(TEXT) INTENS(HIGH) COLOR(GREEN) HILITE(REVERSE)
)BODY WINDOW(58,04)
+
+ PGMLIB :_ZDSP +
+ DBRMLIB :_ZDSD +
+
)end |
|
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Ooops, my bad,
Correct format is WINDOW(width,depth), as Mickey said.
All the error messages that you showed are very explicit.
So is the manual... |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
The window definition that follows must fit into that size |
The definition of the window is all of the lines after the )BODY tag and until the next ) tag (likely, )PROC, )REINIT, or )END tag).
If the body has 5 lines, your )BODY WINDOW( , ) dimensions have to have at least that many.
Also, you need to determine the max length of the text of body. Use the COLS line command in the editor.
Code: |
----+----1----+----2----+----3----+----4----+----5----+----6----+
+ PGMLIB :_ZDSP +
|
ps. (my memory is vague) I seem to recall that the width needs to account for a few additional characters for the border line of the popup. |
|
Back to top |
|
|
|