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
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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