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

How to give a input from a rexx program to a panel


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhuspin

New User


Joined: 13 Aug 2008
Posts: 26
Location: chennai

PostPosted: Thu Dec 18, 2008 4:13 pm
Reply with quote

How to give a input from a rexx program to a panel
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Thu Dec 18, 2008 4:15 pm
Reply with quote

.... to a ISPF panel.


via ispexec VPUT.

Check manual.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Dec 18, 2008 8:39 pm
Reply with quote

It should work by using the same variable names. Assign values in the rexx program and use the same names in the panel. In the panel, variables are identified when they are preceeded by an ampersand or an attribute character.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Dec 19, 2008 10:17 am
Reply with quote

Bhuspin,

Just a thought.

Quote:
How to give a input from a rexx program to a panel


If a field value is sent from the program to the panel (assuming that the field names are same) then its actually an OUTPUT rather than an input.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Dec 19, 2008 10:22 am
Reply with quote

Bhuspin,

Say you have a fields named DESCR and VALDV in the panel and you want to move values to the field.

Use the same fields in the REXX program and populate it.

Code:
IF DESCR = 'HOST_VAR1' THEN
   DO
      DESCR='YET TO UPDATE THE FIELD'
      VALDV='YET TO UPDATE THE FIELD'
   END


Then when you re-display the panel the values will be reflected in the panel.
Back to top
View user's profile Send private message
Pragati Soni

New User


Joined: 18 Jan 2008
Posts: 47
Location: India

PostPosted: Tue Apr 14, 2009 6:52 pm
Reply with quote

I have coded in my program

STAR = '*'

On the panel when I write STAR (inside body) STAR gets printed and not *.

Need to display it on the panel. Please help.

Aaru wrote:
Bhuspin,

Say you have a fields named DESCR and VALDV in the panel and you want to move values to the field.

Use the same fields in the REXX program and populate it.

Code:
IF DESCR = 'HOST_VAR1' THEN
   DO
      DESCR='YET TO UPDATE THE FIELD'
      VALDV='YET TO UPDATE THE FIELD'
   END


Then when you re-display the panel the values will be reflected in the panel.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Apr 14, 2009 7:02 pm
Reply with quote

Once again, it works OK for me:

Code:

/* REXX     **********************************************************/
/* Process inline panel and message definitions */                     
ddname = "$"Right(Time(S),7,"0")                                       
memname = "ZZ"                                                         
"ALLOC NEW DEL F("ddname") DIR(2) SP(1) TR RECF(F B)                   
  BLKS(0) LRECL(80) REU"                                               
"ISPEXEC LMINIT DATAID(did) DDNAME("ddname") ENQ(EXCLU)"               
"ISPEXEC LMOPEN DATAID("did") OPTION(OUTPUT)"                         
a = 1                                                                 
Do 1 /* 1 ITERATION FOR EACH PANEL DEFINITION */                       
  Do a = a To 999 Until Substr(line,1,8) = "/*MEMBER"                 
    line = Sourceline(a)                                               
  End                                                                 
  Parse Var line . memname .                                           
  Do a = (a + 1) To 999 While Substr(line,1,2) <> "*/"                 
    line = Sourceline(a)                                               
    "ISPEXEC LMPUT DATAID("did") MODE(INVAR)DATALOC(line) DATALEN(80)"
  End                                                                 
  "ISPEXEC LMMADD DATAID("did") MEMBER("memname")"                     
End                                                                   
"ISPEXEC LMFREE DATAID("did")"                         
"ISPEXEC LIBDEF ISPPLIB LIBRARY ID("ddname") STACK"     
"ISPEXEC LIBDEF ISPMLIB LIBRARY ID("ddname") STACK"     
"ISPEXEC LIBDEF ISPSLIB LIBRARY ID("ddname") STACK"     
star = '*'                                             
"ISPEXEC DISPLAY PANEL(TEST7901)"                       
Exit 0                                                 
                                                       
/*MEMBER TEST7901                               
)Attr Default(%+_)                             
  $ Type(Input) Intens(Low) Pad(_) Caps(Off)   
  _ Type(Input) Intens(Low) Pad(_) Caps(On)     
  ! Type(Input) Intens(Low) Pad(' ') Caps(Off) 
  ` Type(Output) Intens(High)                   
  # Type(Output) Intens(Low)                   
)Body Expand(//) Width(80) Cmd()               
%/-/ Panel Title /-/+                           
+Command%=>_zcmd                               
+                                               
$star+                                         
+                                               
)Init                                           
)Proc                                           
)End                                           
*/                                             


Output Results:

Code:

SYSB ---------------------------- Panel Title --------------------------------
Command => ____________________________________________________________________
                                                                               
*___                                                                             
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Apr 14, 2009 9:12 pm
Reply with quote

Perhaps Pragati does not realize that you have to indicate the start of a field through the use of an attribute character. Variables can also be displayed through the use of an ampersand.
Back to top
View user's profile Send private message
Pragati Soni

New User


Joined: 18 Jan 2008
Posts: 47
Location: India

PostPosted: Wed Apr 15, 2009 10:05 am
Reply with quote

Thanks a lot. I got the point.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top