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

Displaying '(' in ISPF panels


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

New User


Joined: 23 May 2008
Posts: 9
Location: pune

PostPosted: Sat Feb 07, 2009 5:35 pm
Reply with quote

Hi Friends,
I need to display " Mainframe (India) " in the Header of a Panel...
But in the final result I'm getting only " Mainframe India)" .. I dont why '(' is missing in the panel.

Please give me some ideas ...

Thanks in advance....
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Feb 07, 2009 6:00 pm
Reply with quote

I think that the problem is with line 4 of the panel code.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Feb 08, 2009 1:29 pm
Reply with quote

expat wrote:
I think that the problem is with line 4 of the panel code.
In other words: Show us the code!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Feb 08, 2009 8:45 pm
Reply with quote

as Vanky frantically studies line 4 to find the problem ......
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Feb 09, 2009 12:36 am
Reply with quote

And line 4 is a comment. . .
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 09, 2009 3:34 pm
Reply with quote

Or in the case of this OP ........... "No comment"
Back to top
View user's profile Send private message
ramanindya55

New User


Joined: 23 May 2008
Posts: 9
Location: pune

PostPosted: Tue Feb 10, 2009 6:23 pm
Reply with quote

Code:

)ATTR                                 

%  TYPE(TEXT) INTENS(LOW) SKIP(ON)     
)BODY DEFAULT((+!)   
%  Welcome  to Mainframe (India) %

)INIT 
 )PROC 
)END   


This is the Code ... icon_biggrin.gif
But finally i'm getting as

Code:

 Welcome to Mainframe  India)


Please help me ... icon_biggrin.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Feb 10, 2009 6:29 pm
Reply with quote

Code:
)BODY DEFAULT((+!) 
Hint: how many left parentheses in this statement? What do you think that means?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Feb 10, 2009 6:31 pm
Reply with quote

AND if you count the blank line after the ATTR this is line 4 .... ROFLMAO!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Feb 10, 2009 9:20 pm
Reply with quote

Spooky that - isn't it

P.S. Palm and tealeave readings by appointment only icon_biggrin.gif
Back to top
View user's profile Send private message
ramanindya55

New User


Joined: 23 May 2008
Posts: 9
Location: pune

PostPosted: Sat Feb 21, 2009 6:26 pm
Reply with quote

Hi Friends,
Thanks a lot.. after removing from "default((" word from body section...itz working...
And Now in the same case .. now '_ ' is not coming
Following is my code
Code:

)ATTR                                                                 
ยข  TYPE(CH)                                                           
<  TYPE(TEXT) INTENS(LOW) SKIP(ON)                                     
$  TYPE(TEXT) INTENS(HIGH) SKIP(ON)                           
@  TYPE(INPUT) COLOR(TURQ) CAPS(ON) HILITE(USCORE)                     
#  TYPE(OUTPUT) INTENS(HIGH) HILITE(USCORE)                           
%  TYPE(OUTPUT) INTENS(LOW)                                           
.  TYPE(TEXT)                                                         
)BODY                                                                 
    Welcome (User)
         PAGE 1 OF 1         
$User_Name                       CHAR(8)        @Z       $                   
$Funky_name                     CHAR(8)        @Z       $                   
$SIM_time_TS                     $TIMESTAMP    @Z                         $ 
$file_fmt_nbr                     $CHAR(12)       @Z           $               
$CATTLE_FOR_CODE              $CHAR(5)        @Z    $                       
$AS_OF_CT_VALUE            $CHAR(5)        @Z    $                       


i'm Getting Error as shown below
Code:

******************************************************************************
* ISPP125                                                                    *
*                                                                            *
* Panel 'PANEL' error                                                       *
* Duplicate panel field (or area) name defined.                              *
*                                                                            *
*                                                                            *
*                                                                            *
*                                                                            *
*                                                                            *
*                                                                            *
* Panel line where error was detected:                                       *
* $     _  _              $CHAR(5)        @Z    $                           *


Can u plz help me out icon_biggrin.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Sat Feb 21, 2009 9:52 pm
Reply with quote

Code:
)BODY DEFAULT((+!)

You removed the DEFAULT, but you removed it without understanding what it does.

DEFAULT((+!) alters the default attribute characters from their actual defaults, which includes the underscore character. If you want to use the underscore within your panel, then provide new defaults (but use characters that you do not use in the panel).
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Feb 22, 2009 9:18 pm
Reply with quote

You are now using the )ATTR and )BODY without changing the default attributes.
The default is:
Code:
    % TYPE(TEXT) INTENS(HIGH)
    + TYPE(TEXT) INTENS(LOW)
    _ TYPE(INPUT) INTENS(HIGH)
which means you cannot use underscore as part of the text.

1. Don't define attributes that you don't need.
2. Use )ATTR DEFAULT(%+!) for example if you want "_" to be available.
3. If you use Z variables, don't forget to define .ZVARS in the )INIT section
4. Don't place attributes where they are not necessary.
5. Keep variables aligned one below the other.
Back to top
View user's profile Send private message
ramanindya55

New User


Joined: 23 May 2008
Posts: 9
Location: pune

PostPosted: Mon Feb 23, 2009 12:09 pm
Reply with quote

Hi Friends,
Thanks a lot.. Itz working fine...:-)
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 Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts IBM OnDemand Folders displaying to al... IBM Tools 6
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Is there a way to close VSAM files us... CICS 8
Search our Forums:

Back to Top