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

Types of variables REXX


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

New User


Joined: 06 Jan 2015
Posts: 19
Location: Hyderabad, INDIA

PostPosted: Wed Aug 26, 2015 6:57 pm
Reply with quote

Hi All,
As of now I have coded as below in the panel.

_ TYPE(INPUT) COLOR(GREEN) PAD(' ') CAPS(ON)
! TYPE(OUTPUT) COLOR(RED) PAD(' ') CAPS(ON)

I have a requirement to use a variable in my panel for both input and output.
Is there any way to declare variables as INPUT/OUTPUT in ISPF?
Please suggest.

TIA
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Aug 26, 2015 7:04 pm
Reply with quote

If you specify the attribute as INPUT, then you can also specify an initial value before you display the panel. So, yes it is both output and input.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Aug 26, 2015 7:32 pm
Reply with quote

Your question is not clear, and there could be a few answers.
Here is one:

You can define an attribute with a variable:
Code:
_ TYPE(&FLDATTR) COLOR(GREEN) PAD(' ') CAPS(ON)

Then in the rexx program you can set the attribute:
Code:
If User = 'ADMIN' Then
   FLDATTR = 'INPUT'
Else
   FLDATTR = 'OUTPUT'
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 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
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top