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: 8620
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: 8620
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: 8620
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

Senior Member


Joined: 08 May 2006
Posts: 1002
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 Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

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