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

sdsf rexx through jcl


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rahul1586

New User


Joined: 04 Nov 2008
Posts: 28
Location: Mumbai

PostPosted: Mon Oct 03, 2011 4:11 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Oct 03, 2011 4:24 pm
Reply with quote

why not start by displaying the return code
or show what happens when running with trace "O"
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Mon Oct 03, 2011 7:17 pm
Reply with quote

Show us the joblog from the job. Especially any RACF messages you get.

Where do you get "NOT AUTHORIZED FOR CMD "?
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Mon Oct 03, 2011 7:22 pm
Reply with quote

Search manual SG24-7419-00 for RACF information.
Back to top
View user's profile Send private message
rahul1586

New User


Joined: 04 Nov 2008
Posts: 28
Location: Mumbai

PostPosted: Mon Oct 03, 2011 8:41 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Oct 03, 2011 8:56 pm
Reply with quote

Quote:
But that is not the solution. I want to find the particular profile which will give me this authority.


why not read Yourself the sdsf manuals

for example here
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISF4CS80/CCONTENTS?SHELF=ISF4BK80&DN=SA22-7670-11&DT=20080605143940

up to You to find the one related to Your zOS level
starting from here
www-03.ibm.com/systems/z/os/zos/bkserv/index.html
Back to top
View user's profile Send private message
rahul1586

New User


Joined: 04 Nov 2008
Posts: 28
Location: Mumbai

PostPosted: Tue Oct 04, 2011 11:00 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 04, 2011 11:05 am
Reply with quote

glad it worked, thanks for letting us know icon_smile.gif
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