Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SDSF through REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: SDSF through REXX
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

Site Director


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

PostPosted: Thu Jan 27, 2011 2:36 pm    Post subject:
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    Post subject: Reply to: SDSF through REXX
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

Site Director


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

PostPosted: Thu Jan 27, 2011 2:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SDSF and SAF security danik56 TSO/ISPF 3 Wed Mar 15, 2017 12:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us