Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 995
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
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us