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
 
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: 4650
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: 10327
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: 2086
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: 2086
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

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