MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

S047 Abend

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
waves
Beginner


Joined: 09 Nov 2006
Posts: 35
Topics: 12

PostPosted: Thu Oct 25, 2007 4:23 am    Post subject: S047 Abend Reply with quote

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
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Thu Oct 25, 2007 4:31 am    Post subject: Reply with quote

Waves,

Check teh below links.

http://www.mvsforums.com/helpboards/viewtopic.php?t=3919&highlight=call+sarbch+rexx

http://www.mvsforums.com/helpboards/viewtopic.php?t=1070&highlight=call+sarbch+rexx
Back to top
View user's profile Send private message Send e-mail
waves
Beginner


Joined: 09 Nov 2006
Posts: 35
Topics: 12

PostPosted: Thu Oct 25, 2007 5:47 am    Post subject: Reply with quote

In the below link:

http://www.mvsforums.com/helpboards/viewtopic.php?t=1070&highlight=call+sarbch+rexx

no one haven't answered for that abend..

please help me..
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Oct 25, 2007 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Thu Oct 25, 2007 9:17 am    Post subject: Reply with quote

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
View user's profile Send private message
waves
Beginner


Joined: 09 Nov 2006
Posts: 35
Topics: 12

PostPosted: Fri Oct 26, 2007 12:53 am    Post subject: Reply with quote

i'm executing the code in online..
Back to top
View user's profile Send private message
semigeezer



Joined: 03 Jan 2003
Posts: 1012
Topics: 13
Location: Atlantis

PostPosted: Fri Oct 26, 2007 1:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Fri Oct 26, 2007 9:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group