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
 

 

How to display the value on ispf panel from rexx pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
veena_nagesh2002
Warnings : 1

Active User


Joined: 07 May 2005
Posts: 110
Location: hyderabad

PostPosted: Wed Nov 26, 2008 5:33 pm    Post subject: How to display the value on ispf panel from rexx pgm
Reply with quote

Code:
/*REXX PGM */
ADDRESS ISPEXEC "LIBDEF ISPPLIB DATASET ID('PXXXXXA.NAG.SPFMENUS.ISPPLIB')" << PANNEL DEFINED
ADDRESS ISPEXEC "DISPLAY PANEL(GFCHUS)"                                     << PANNEL DISPLAYED PROPERLY
SAY JYER                      << RECEIVED VALUE AS 2008 AND DISPLAYED    
JYER = JYER + 1                                                          << INCREMENTED TO 2009    
SAY JYER                                                                    << DISPLAYED 2009
ADDRESS ISPEXEC "DISPLAY PANEL(GFCHUS)"    << BUT HOW TO REFLECT IN THE PANNEL WITH 2009 INSTEAD OF 2008    
PANNEL CODE : GFCHUS
Code:
)ATTR                                                     
  @ TYPE(OUTPUT) INTENS(LOW)  CAPS(OFF)                   
  ! TYPE(INPUT)  INTENS(NON)                               
  ยข TYPE(TEXT)   INTENS(HIGH) COLOR(WHITE) HILITE(REVERSE)
  # TYPE(TEXT)   INTENS(LOW)   SKIP(ON)                   
)BODY expand($$)                                           
+ YEAR : _JYER +
)PROC
  VPUT (JYER) PROFILE
)END
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: Wed Nov 26, 2008 5:36 pm    Post subject:
Reply with quote

Is there a question here or is this posted as a hint and tip to other users ?
Back to top
View user's profile Send private message
veena_nagesh2002
Warnings : 1

Active User


Joined: 07 May 2005
Posts: 110
Location: hyderabad

PostPosted: Wed Nov 26, 2008 6:19 pm    Post subject: How to display the value on ispf panel from rexx pgm
Reply with quote

Sorry,

The question is
How to display the incremented value on ispf panel
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: Wed Nov 26, 2008 6:36 pm    Post subject:
Reply with quote

What happens when you open the panel ?
Back to top
View user's profile Send private message
veena_nagesh2002
Warnings : 1

Active User


Joined: 07 May 2005
Posts: 110
Location: hyderabad

PostPosted: Wed Nov 26, 2008 6:39 pm    Post subject: How to display the value on ispf panel from rexx pgm
Reply with quote

it displaying 2008 only but not 2009 which was incremented
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: Wed Nov 26, 2008 6:54 pm    Post subject:
Reply with quote

Knocked up a quick REXX and panel and mine works perfectly. The only thing that immediately springs to mind is that I have the DEFAULT declared on my )ATTR statement.
REXX
Code:

"ISPEXEC DISPLAY PANEL(TEST01)"
JYER = JYER + 1                 
"ISPEXEC DISPLAY PANEL(TEST01)"

PANEL
Code:

)ATTR DEFAULT(%+_) 
)BODY EXPAND([[)   
%COMMAND ===>_ZCMD 
+ +                 
+     YEAR = _JYER+
+ +                 
)INIT               
 .CURSOR = JYER     
)PROC               
)END               
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Nov 26, 2008 7:03 pm    Post subject: Reply to: How to display the value on ispf panel from rexx p
Reply with quote

Same code, same panel definition, also worked just fine here.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Nov 26, 2008 8:22 pm    Post subject:
Reply with quote

Works fine as-is for me, too.

Garry.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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