#1: S047 Abend Author: waves, Posted: Thu Oct 25, 2007 4:23 am 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.
#2: Author: vkphani, Posted: Thu Oct 25, 2007 4:31 am Waves,
#4: Author: vivek1983, Posted: Thu Oct 25, 2007 6:37 am 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.
#5: Author: taltyman, Location: TexasPosted: Thu Oct 25, 2007 9:17 am 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?
#6: Author: waves, Posted: Fri Oct 26, 2007 12:53 am i'm executing the code in online..
#7: Author: semigeezer, Location: AtlantisPosted: Fri Oct 26, 2007 1:24 am 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.
#8: Author: taltyman, Location: TexasPosted: Fri Oct 26, 2007 9:03 am If this is online TSO then SARBCH may need to be added as a authpgm in IKJTSOxx. See your friendly system programmer.