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 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
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