Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Displaying '(' in ISPF panels

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Displaying '(' in ISPF panels
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: 8593
Location: Back in jolly old England

PostPosted: Sat Feb 07, 2009 6:00 pm    Post subject:
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: 1219
Location: Israel

PostPosted: Sun Feb 08, 2009 1:29 pm    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Sun Feb 08, 2009 8:45 pm    Post subject:
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

Site Director


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

PostPosted: Mon Feb 09, 2009 12:36 am    Post subject: Reply to: Displaying '(' in ISPF panels
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: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 09, 2009 3:34 pm    Post subject:
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    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Tue Feb 10, 2009 6:29 pm    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Tue Feb 10, 2009 6:31 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Feb 10, 2009 9:20 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Sat Feb 21, 2009 9:52 pm    Post subject: Reply to: Displaying '(' in ISPF panels
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: 1219
Location: Israel

PostPosted: Sun Feb 22, 2009 9:18 pm    Post subject:
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    Post subject: reply: Displaying '(' in ISPF panels
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    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 ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm
No new posts More ISPF RFE's to vote for prino TSO/ISPF 1 Tue Apr 19, 2016 12:06 am
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us