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 control Panel Attributes through REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Mon Feb 26, 2018 9:51 pm    Post subject: How to control Panel Attributes through REXX
Reply with quote

How to control attributes of the Panel variables through REXX. is it first possible. i have gone through multiple manuals , only i could relate it .ATTR or .ATTRCHAR but they can be used in )INIT or )REINIT section, i want to control the attributes through REXX though.

My requirement is:

(Note: this is simple requirement only, the concept can be used for multiple solution).

Step 1: Throw panel from REXX and ask for Dataset.
Step 2: Validate the data set if exist read else throw error message.
Step 3: Once the data is valid display the data row wise for first 15 lines. while doing so the field where we enter the dataset should be protected.
Step 4: Page up and Page down function to browse through and if any change to be made can be made.
Step 5: Save the updated content to the dataset.

i have figured out all other stuff but wanted to know how to protect the field which accepts dataset after displaying the data.
Back to top
View user's profile Send private message

Pedro

Senior Member


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

PostPosted: Mon Feb 26, 2018 10:39 pm    Post subject: Reply to: How to control Panel Attributes through REXX
Reply with quote

Try something like this, in your panel:
Code:
)ATTR
 _ type(&mytype)  COLOR(TURQ) HILITE(&mylite)

In your rexx program:
Code:
&mytype = 'INPUT'
&mylite = 'USCORE'

Address ISPEXEC "DISPLAY PANEL(thepanel)"
...
&mytype = 'OUTPUT'
&mylite = ''
Back to top
View user's profile Send private message
enrico-sorichetti

Moderator


Joined: 14 Mar 2007
Posts: 10472
Location: italy

PostPosted: Mon Feb 26, 2018 11:16 pm    Post subject: Reply to: How to control Panel Attributes through REXX
Reply with quote

learn to use the proper terminology for mainframe oriented IT
throw is a term used for toy computers and toy languages

You DISPLAY a panel as per ISPF manuals
and You DISPLAY an error message

and as a general concern ( been there done that )
if the number of fields for which the attribute has to be changed is large
the process and the coding will be painful
apart finding the proper names to use in order not to overflow the 80 bytes record length for panels
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Tue Feb 27, 2018 5:33 pm    Post subject:
Reply with quote

thanks Pedro, the suggestion you gave is working like charm. i am able to control the attributes using variables in the program.
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 Trap the jcl error message or maxcc i... ankita agarwal CLIST & REXX 4 Fri May 18, 2018 2:08 pm
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
No new posts Control M - Predecessor/successor of ... SRIDEVI TANTRY Compuware & Other Tools 6 Sun May 06, 2018 10:57 am
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts Default attributes for undeclared SYS... Alan Playford PL/I & Assembler 3 Wed Apr 11, 2018 5:18 pm

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