How to use diff user to execute REXX

IBM's Command List programming language & Restructured Extended Executor

How to use diff user to execute REXX

Postby sjrcreation » Thu May 19, 2011 11:21 am


In normal JCL job card we can give as
// CLASS=0,NOTIFY=@,user=xxxxxx,password=xxxxxx

so when we submit the job it will take the user specified in the job card

similarly how to do in rexx.
I need to give the userid and password to exec the command REXX1

EX 'Xxxxx.xxxxx(rexx1)'
Posts: 30
Joined: Sat Dec 11, 2010 9:44 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to use diff user to execute REXX

Postby enrico-sorichetti » Thu May 19, 2011 11:29 am

You cannot do it
user gets assigned password gets checked at job (batch/stc ) start at TSO logon period
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: How to use diff user to execute REXX

Postby expat » Sat May 21, 2011 12:06 pm

You should speak to your security admin to allow the use of surrogate submission.
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: How to use diff user to execute REXX

Postby NicC » Sat May 21, 2011 4:36 pm

Do you just want them to be able to run the exec? does this exec submit a job? If it does not then you only need to put it into a libaray that they are authorized to use (and is in their logon concatenation). And why wrap it in a CLIST?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to use diff user to execute REXX

Postby steve-myers » Sat May 21, 2011 9:49 pm

In many shops, giving your password to someone else is a firing offense. Even if it's legitimate, you should never ever leave a clear text password in a dataset, though it's OK, I guess, if the password area is junk characters that are overlaid with the real password just before you submit the job.

One situation where you often have to insert a userid and password is if you are submitting a job to run in another node.
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Return to CLIST & REXX


  • Related topics
    Last post