View previous topic :: View next topic
|
Author |
Message |
rahul1586
New User
Joined: 04 Nov 2008 Posts: 28 Location: Mumbai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
rahul1586
New User
Joined: 04 Nov 2008 Posts: 28 Location: Mumbai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|