IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to caliculate the correct POPUP size


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Wed Dec 28, 2011 4:41 am
Reply with quote

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
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Wed Dec 28, 2011 4:51 am
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Dec 28, 2011 11:16 pm
Reply with quote

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
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Wed Dec 28, 2011 11:30 pm
Reply with quote

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
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Wed Dec 28, 2011 11:40 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Dec 29, 2011 2:28 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jan 03, 2012 10:53 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
No new posts Dataset size increase on adding 1 byt... DFSORT/ICETOOL 8
Search our Forums:

Back to Top