View previous topic :: View next topic |
Author |
Message |
waves Beginner
Joined: 09 Nov 2006 Posts: 35 Topics: 12
|
Posted: Thu Oct 25, 2007 4:23 am Post subject: S047 Abend |
|
|
When i'm calling the SARBCH utility in the rexx program, it throws an abend called S047.
Please find the code below which i used:
"CALL *(SARBCH) "
SarRetCd = rc
here i'm getting the rc as "290816"
the abend msg i'm getting is:
CAPE022I #033923 ICQUSER ABENDED S047 IN PROGRAM SARBCH AT OFFSET +0001F4.
CN(INTERNAL)
+++ RC(290816) +++
please help me, how to call the SARBCH utility in rexx.
actually i need a rexx program to get the CPU time and the Elapsed time for a set of jobs from the SAR. |
|
Back to top |
|
|
vkphani Intermediate
Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
|
Back to top |
|
|
waves Beginner
Joined: 09 Nov 2006 Posts: 35 Topics: 12
|
|
Back to top |
|
|
vivek1983 Intermediate
Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Thu Oct 25, 2007 6:37 am Post subject: |
|
|
waves,
The links will provide you the use of SARBCH in batch mode(Through JCL).
Do u want to do the requirement specifically in REXX? You can very well do the same thing using JCL and call the JCL through REXX. _________________ Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay) |
|
Back to top |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Thu Oct 25, 2007 9:17 am Post subject: |
|
|
Usually a 047 abend means that you are attempting to execute code that requires authorization in a non-authorized environment. Are you executing in batch or online or what? |
|
Back to top |
|
|
waves Beginner
Joined: 09 Nov 2006 Posts: 35 Topics: 12
|
Posted: Fri Oct 26, 2007 12:53 am Post subject: |
|
|
i'm executing the code in online.. |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Oct 26, 2007 1:24 am Post subject: |
|
|
Just a guess, but a common reason for problems involving authorization is not having the load module in a library listed in the APF list, or mixing APF authorized and non-APF authorized libraries in your steplib. For security reasons, if you mix APF libs and non-APF libs in the concatenation from which modules are loaded, the system will treat the whole list as unauthorized (for obvious reasons). If you are creating your own steplib using any utilities, or using ISPLLIB within ISPF and you are including the authorized module, be sure that you are not also including personal or departmental unauthorized libs. Your system support people can help with this. _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Fri Oct 26, 2007 9:03 am Post subject: |
|
|
If this is online TSO then SARBCH may need to be added as a authpgm in IKJTSOxx. See your friendly system programmer. |
|
Back to top |
|
|
|
|