Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Change Profile parameter from REXX

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

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Fri Oct 07, 2011 9:11 pm    Post subject: Change Profile parameter from REXX
Reply with quote

Hello,

When I type "TSO PROFILE" in command line below is the screen that appears,

CHAR(0) LINE(0) PROMPT INTERCOM PAUSE MSGID MODE WTPMS
G NORECOVER PREFIX(Mainframe ID) PLANGUAGE(ENU) SLANGUAGE(ENU) VARSTORAGE(LOW)

I want Change the profile paremeter PROMPT to NOPROMPT from Rexx code.

Is it possible?
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Fri Oct 07, 2011 9:15 pm    Post subject: Reply to: Change Profile parameter from REXX
Reply with quote

Yes.

"PROFILE NOPROMPT"
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Oct 07, 2011 9:18 pm    Post subject:
Reply with quote

Issue below TSO command (using REXX for your case)
Code:

TSO PROFILE NOPROMPT

Now if you issue TSO PROFILE you could see updated profile.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Fri Oct 07, 2011 9:23 pm    Post subject: Reply to: Change Profile parameter from REXX
Reply with quote

PROFILE is a TSO command as such can be executed using the usual
Code:
Address TSO "PROFILE ....."

like on the other side ALL the TSO commands
as per TSO manuals available here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJ4BK90
up to You to look search for the ones related to Your zOS level
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Fri Oct 07, 2011 10:39 pm    Post subject: Reply to: Change Profile parameter from REXX
Reply with quote

You should also read section titled "Interaction of Three Ways to Affect Prompting" in the rexx reference manual.

I am leary of global changes. Your intent was not clear, but you may be able to accomplish your goal through the use of the prompt function:
Code:
status = PROMPT("OFF")
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Fri Oct 07, 2011 11:22 pm    Post subject:
Reply with quote

I intended to set the NOPROMPT in my current profile through REXX.

This was achieved using

ADDRESS TSO "PROFILE NOPROMPT"

Thanks for the showing another approach.
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Sat Oct 08, 2011 3:04 am    Post subject: Reply to: Change Profile parameter from REXX
Reply with quote

Quote:
I intended to set the NOPROMPT in my current profile through REXX.


Running with NOPROMPT may have unintended consequences. And it normally retains the setting even after logging off / on until you change it back.

I understand the NOPROMPT part and I understand the profile part. I am not sure I understand the requirement for rexx.

If it is a one time thing and you are going to just set your profile to noprompt, you do not need rexx. But the use of rexx implies to me that you may have to do it repeatedly. And if you are turning it on and off repeatedly, then maybe the PROMPT( ) function is better suited for your needs.
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us