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

SDSF through REXX


IBM Mainframe Forums -> IBM Tools
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: Thu Jan 27, 2011 2:33 pm
Reply with quote

HI,

I have coded a REXX to run sdsf commands.
It luks like this
Code:
/*REXX*/                                                                                                                   
FILNAME3 ='file1'                                         
FILNAME4 ='file2'                                   
IF SYSDSN("'"||FILNAME3||"'") /= "OK" THEN                           
DO                                                                   
ADDRESS TSO                                                         
"ALLOC FILE(ISFIN) UNIT(SYSDA) NEW TRACKS SPACE(100,100) RELEASE",   
" LRECL(80) RECFM(F) BLKSIZE(80) DA('"||FILNAME3||"') REUSE"         
"NEWSTACK"                                                           
QUEUE "/d t"                                                         
"EXECIO 1  DISKW ISFIN (FINIS"                                       
"DELSTACK"                                                           
ADDRESS TSO "FREE FILE(ISFIN)"                                       
END                                                                 
IF SYSDSN("'"||FILNAME4||"'") /= "OK" THEN                           
DO                                                                   
ADDRESS TSO                                                         
"ALLOC FILE(ISFOUT) UNIT(SYSDA) NEW TRACKS SPACE(1000,200) RELEASE", 
" LRECL(300) RECFM(F,B) BLKSIZE(300) DA('"||FILNAME4||"') REUSE"     
ADDRESS TSO "FREE FILE(ISFOUT)"                                       
END                                                                   
ADDRESS TSO "ALLOC FILE(ISFIN) DA('"||FILNAME3||"') SHR REUSE"       
ADDRESS TSO "ALLOC FILE(ISFOUT) DA('"||FILNAME4||"') MOD REUSE"       
ADDRESS ISPEXEC                                                       
/*"SELECT PGM(ISFAFD) PARM('++250,282')"*/                           
"SELECT PGM(SDSF) PARM('++100,282')"                                 
ADDRESS TSO "FREE FILE(ISFIN,ISFOUT)"                                 
EXIT     


The problem is this rexx is working fine if the member in which the code is written is executed.
But when i try to execute the same through a JCL, it gives error as not authorised for command!

Can someone help me into this.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 27, 2011 2:36 pm
Reply with quote

Hello,

You need to work with your system support or security admins to make sure your id has the proper permissions. You will need to tell them which command(s) are not authorised.
Back to top
View user's profile Send private message
rahul1586

New User


Joined: 04 Nov 2008
Posts: 28
Location: Mumbai

PostPosted: Thu Jan 27, 2011 2:44 pm
Reply with quote

Thanks for the reply

ya..i would have reported if it was not executing at all..
but since it is not executing only through a JCL and saying authority issues,
I have posted it here.

My requirement is to run a REXX which issues SDSF commands, through a JCL. In this I am getting authority issues which I am not able to figure out.

I have a utility which can fire the SDSF commands, but it doesn't collect the output in a flat file.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 27, 2011 2:50 pm
Reply with quote

Hello,

Quote:
In this I am getting authority issues which I am not able to figure out.
Not a surprise - the people who are able to help are the ones i mentioned before. If your system is like many i've worked on, this is not something you can fix as you cannot grant yourself more authority. . .

After talking with then, post back here if you still have a doubt.
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
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
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top