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
 

 

Dynamic Content in an ISPF Table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
epicdave

New User


Joined: 11 Oct 2007
Posts: 20
Location: New York

PostPosted: Mon Dec 03, 2007 9:58 pm    Post subject: Dynamic Content in an ISPF Table
Reply with quote

I'm using REXX to parse source code from another source and an ISPF table to display the data to the user. The problem is, there are instances where I need certain rows of the table to have different attributes (color) than the rest of the table. Unfortunately, there doesn't seem to be an easy way to do this. I've got a single variable in the )MODEL section that displays the table, row by row.

I've been digging through the IBM pubs and they hint at things like DYNAMIC AREAS and SHADOW VARIABLES, but do a poor job of explaining how to use them. As the table gets build row-by-row, I'd really like to be able to somehow flag certain rows so ISPF knows to display them with different attributes.

Does anyone know how to do this?
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 Dec 03, 2007 10:45 pm    Post subject:
Reply with quote

Hello,

There is another current similar topic you might look at.

http://ibmmainframes.com/viewtopic.php?t=26379
Back to top
View user's profile Send private message
epicdave

New User


Joined: 11 Oct 2007
Posts: 20
Location: New York

PostPosted: Mon Dec 03, 2007 11:33 pm    Post subject:
Reply with quote

I took a look at that post before, it doesn't apply as it has to do with changing the color of something from within the ISPF editor. I was looking more into setting a Dynamic Area but it looks like that is incompatible with ISPF Table Services.

So is there another way?
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: Tue Dec 04, 2007 1:06 am    Post subject:
Reply with quote

Hello,

Quote:
So is there another way?

Not that i'm aware of. . .
Back to top
View user's profile Send private message
russnesbitt

New User


Joined: 08 Oct 2008
Posts: 5
Location: washington state

PostPosted: Thu Oct 09, 2008 7:05 pm    Post subject: Reply to: Dynamic Content in an ISPF Table
Reply with quote

I was wondering if you ever resolved this issue? I have the same requirement. I want to highlite three fields in that row in a table depending on data in one field in that table. Here is an example of what I tried. The problem is that it only works if the first row has the "p" in the status field.
Code:
)MODEL CLEAR(OPT ZCMD)                                             
 @Z¬$Z   ¬$Z ¬$Z ¬$z¬$z   ¬$z       ¬ $z   ¬$z       ¬$Z       ¬$Z
)INIT                                                             
 .ZVARS = '(ZSCBR,    +                                           
            OPT,      +                                           
            REL,      +                                           
            VER,      +                                           
            BUILD,    +                                           
            STATUS,   +                                           
            PRIM,     +                                           
            PRIMDT,   +                                           
            SECOND,   +                                           
            SECDT,    +                                           
            PDATE,    +                                           
            CDATE)'                                               
  &ZCMD = ' '                                                     
                                                                                       
  IF (&STATUS = 'P')                                               
    .ATTR(REL) = 'INTENS(HIGH)'                                   
    .ATTR(VER) = 'INTENS(HIGH)'                                   
    .ATTR(BUILD) = 'INTENS(HIGH)'                                 
  ELSE                                                             
    .ATTR(REL) = 'INTENS(LOW)'                                     
    .ATTR(VER) = 'INTENS(LOW)'                                     
    .ATTR(BUILD) = 'INTENS(LOW)'                                   
)REINIT                                                           
  &ZCMD = ' '                                                     
  IF (&STATUS = 'P')                                               
    .ATTR(REL) = 'INTENS(HIGH)'                                   
    .ATTR(VER) = 'INTENS(HIGH)'                                   
    .ATTR(BUILD) = 'INTENS(HIGH)'                                 
  ELSE                                                             
    .ATTR(REL) = 'INTENS(LOW)'                                     
    .ATTR(VER) = 'INTENS(LOW)'                                     
    .ATTR(BUILD) = 'INTENS(LOW)'                                   
)PROC                                                             
)END                                                               
Back to top
View user's profile Send private message
epicdave

New User


Joined: 11 Oct 2007
Posts: 20
Location: New York

PostPosted: Thu Oct 09, 2008 7:30 pm    Post subject:
Reply with quote

russnesbitt,

as far as I know, there is no way to change the l/f attributes of data in an ISPF table dynamically, based on the contents of the table. At best, you can hilite a row depending on where the cursor is, but that's about it.

I've dug pretty deep into this issue with no success, so if you find a solution please do let me know :-)
Back to top
View user's profile Send private message
russnesbitt

New User


Joined: 08 Oct 2008
Posts: 5
Location: washington state

PostPosted: Thu Oct 09, 2008 7:42 pm    Post subject: Reply to: Dynamic Content in an ISPF Table
Reply with quote

OK, thanks for your input. icon_sad.gif
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Thu Oct 09, 2008 9:40 pm    Post subject: Reply to: Dynamic Content in an ISPF Table
Reply with quote

Quote:
I want to highlite three fields in that row in a table depending on data in one field in that table.

I do not think it can be done with a table. Use dynamic area with shadow variables.
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 unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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