Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
sdsf rexx through jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: sdsf rexx through jcl
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Mon Oct 03, 2011 4:24 pm    Post subject: Reply to: sdsf rexx through jcl
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

Senior Member


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

PostPosted: Mon Oct 03, 2011 7:17 pm    Post subject: Reply to: sdsf rexx through jcl
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

Senior Member


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

PostPosted: Mon Oct 03, 2011 7:22 pm    Post subject: Reply to: sdsf rexx through jcl
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    Post subject: Reply to: sdsf rexx through jcl
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Mon Oct 03, 2011 8:56 pm    Post subject: Reply to: sdsf rexx through jcl
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
http://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
http://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    Post subject: Reply to: sdsf rexx through jcl
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Oct 04, 2011 11:05 am    Post subject: Reply to: sdsf rexx through jcl
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us