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

How to display the value on ispf panel from rexx pgm


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Nov 26, 2008 5:36 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Nov 26, 2008 6:36 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Nov 26, 2008 6:54 pm
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

Global Moderator


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

PostPosted: Wed Nov 26, 2008 7:03 pm
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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Nov 26, 2008 8:22 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top