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

Change Profile parameter from REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri Oct 07, 2011 9:15 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Oct 07, 2011 9:23 pm
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
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

Global Moderator


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

PostPosted: Fri Oct 07, 2011 10:39 pm
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
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

Global Moderator


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

PostPosted: Sat Oct 08, 2011 3:04 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
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
Search our Forums:

Back to Top