Page 1 of 1

How to use diff user to execute REXX

PostPosted: Thu May 19, 2011 11:21 am
by sjrcreation
Hi

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

PROC 0 DEBUG
EX 'Xxxxx.xxxxx(rexx1)'
EXIT

Re: How to use diff user to execute REXX

PostPosted: Thu May 19, 2011 11:29 am
by enrico-sorichetti
You cannot do it
user gets assigned password gets checked at job (batch/stc ) start at TSO logon period

Re: How to use diff user to execute REXX

PostPosted: Sat May 21, 2011 12:06 pm
by expat
You should speak to your security admin to allow the use of surrogate submission.

Re: How to use diff user to execute REXX

PostPosted: Sat May 21, 2011 4:36 pm
by NicC
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?

Re: How to use diff user to execute REXX

PostPosted: Sat May 21, 2011 9:49 pm
by steve-myers
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.