View previous topic :: View next topic
|
Author |
Message |
rahul1586
New User
Joined: 04 Nov 2008 Posts: 28 Location: Mumbai
|
|
|
|
Hello all,
I want to submit a REXX which is using SDSF, through a JCL
Here is my code:
Code: |
/*REXX*/
RC=ISFCALLS("ON")
ADDRESS SDSF "ISFEXEC '/D T'"
RC=ISFCALLS("OFF") |
when i execute this using ex on the command line ...its working fine and i can see the command and its output in syslog.
However when i submit the same rexx through a jcl, i get
NOT AUTHORIZED FOR CMD
Here is the JCL i am using
Code: |
//A2REXX EXEC PGM=IKJEFT01
//SYSPROC DD DSN=xxx.xxx.xxx,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
TEST1
|
I know its a RACF issue where I am not having authority on a particular resource.But i am not able to figure out that.
Can some one let me know this thing if they have faced a similar issue..
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why not start by displaying the return code
or show what happens when running with trace "O" |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Show us the joblog from the job. Especially any RACF messages you get.
Where do you get "NOT AUTHORIZED FOR CMD "? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Search manual SG24-7419-00 for RACF information. |
|
Back to top |
|
|
rahul1586
New User
Joined: 04 Nov 2008 Posts: 28 Location: Mumbai
|
|
|
|
thanks Pedro...
I am getting the output in SYSTSPRT.
Just for trial I made a profile *.** in SDSF class and gave ALTER authority to my user id.
The job is working with this setting.
But that is not the solution. I want to find the particular profile which will give me this authority.
Can you help with this.
Thanks. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
rahul1586
New User
Joined: 04 Nov 2008 Posts: 28 Location: Mumbai
|
|
|
|
Thanks enrico.
I referred SG24-7419-00
Here I found through a trace REXX that I did not have one of the profiles defined in RACF.
I created that profile and now I am able to run my rexx through JCL.
Thanks again |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
glad it worked, thanks for letting us know |
|
Back to top |
|
|
|