Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to caliculate the correct POPUP size

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: how to caliculate the correct POPUP size
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    Post subject:
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: 1243
Location: Israel

PostPosted: Wed Dec 28, 2011 11:16 pm    Post subject: Re: how to caliculate the correct POPUP size
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    Post subject: Reply to: how to caliculate the correct POPUP size
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    Post subject:
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: 1243
Location: Israel

PostPosted: Thu Dec 29, 2011 2:28 am    Post subject: Reply to: how to caliculate the correct POPUP size
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

Senior Member


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

PostPosted: Tue Jan 03, 2012 10:53 pm    Post subject: Reply to: how to caliculate the correct POPUP size
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Is the explanation correct? XRST,CHKP Martylin IMS DB/DC 1 Wed Mar 15, 2017 9:26 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Increase the screen size after split mistah kurtz TSO/ISPF 2 Fri Sep 02, 2016 6:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us