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 

S0C4 and S806 Abend in Rexx tool

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


Joined: 21 Nov 2003
Posts: 3
Topics: 1

PostPosted: Fri Nov 21, 2003 1:24 pm    Post subject: S0C4 and S806 Abend in Rexx tool Reply with quote

Hi All!

I am new to REXX pgmming and had been using this forum to check out certain options to make my REXX tool work.
I am creating a tool for multi users and it works when I try testing it. All of a sudden I notice S806 and S0C4 abend when other users try to test it. Sad
FYI - This tool throws specific ISPF panels and also calls a cobol subroutine to do certain validations.
I have allocated appropriate libraries which point to loadlib of the subroutine and the intermediary files that I use in the REXX are prefixed with USERID of the user.

Please can you advice me on what to look for or how to prevent such abends?
Would TSO FREE ALL work? Embarassed

Thanks in advance and looking fwd to replies!
RSP
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: Fri Nov 21, 2003 2:56 pm    Post subject: Reply with quote

The 806 should be fairly easy to determine. Maybe the 0C4 is related. At any rate here is a common pitfall for allocations. Make sure you correctly quote the dsn in your libdef or allocate statements. If you don't then you may get allocations with the high level dsn node being whatever is set in the users tso profile prefix value. That value is typically the userid of the user or a null value but doesn't have to be either. You may want to post snippets of your code where you do your allocates or libdefs.
Back to top
View user's profile Send private message
RSP
Beginner


Joined: 21 Nov 2003
Posts: 3
Topics: 1

PostPosted: Fri Nov 21, 2003 4:15 pm    Post subject: Reply with quote

Hi Taltyman!
Thanks for your quick response. I did check that all the allocation and libdef stmts are correctly quoted.
The weird part is that out of 10 users - 3 have abends (and thats enough to rid me of my sleep! Shocked ) and others dont.
Here are some snippets of the code ->
"ALLOCATE DD(MAINLIB) DA('TPHT.LIB.TBLBASE') SHR"
"ISPEXEC LIBDEF ISPLLIB DATASET ID('T00P.DSD.#001118.LDB' 'T00P.OL.PGMLIB' 'T00P.BT.PGMLIB'
)"
"ALLOCATE DA(ABCD.FLAG) NEW SPACE(5,2) ,
RECFM(F,B) LRECL(10) BLKSIZE(10)"


Please let me know if I shld send something else too...
Thanks!
RSP
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: Fri Nov 21, 2003 4:23 pm    Post subject: Reply with quote

Are they local where you can watch over their shoulders and see what is happening when you add a 'trace i' to the code?
From what I see your allocates/libdefs appear to be okay.
Are you actually using 3 load libraries?
Back to top
View user's profile Send private message
RSP
Beginner


Joined: 21 Nov 2003
Posts: 3
Topics: 1

PostPosted: Fri Nov 21, 2003 4:34 pm    Post subject: Reply with quote

Well! 1 of the users is local but the abend she got was S806 stating that it couldnot find the loadlib of the called subroutine. (I checked in abendaid too). I checked if she could browse the loadlib of the subroutine ('T00P.DSD.#001118.LDB' ) and she could.

There are few more loadlibs in my REXX. I just pasted some.
S0C4 abend doesnt re-occur when I logoff and login again......

Help!
-RSP
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: Sun Nov 23, 2003 8:09 am    Post subject: Reply with quote

You may want to do a 'lista sta' just before you call the program and make sure you have all the needed loadlibs allocated. Being able to browse doesn't prove a whole lot. I've never really needed to allocate several ispllibs in an ispf application so I may not be much help. The fact that a logoff and logon cleans some errors up indicates that some cleanup is not done for re-executions that is being done during logoff/logon.
Back to top
View user's profile Send private message
Mike
Beginner


Joined: 03 Dec 2002
Posts: 114
Topics: 0
Location: Sydney, Australia

PostPosted: Sun Nov 23, 2003 4:52 pm    Post subject: Reply with quote

Sorry jumped in too fast.
_________________
Regards,
Mike.
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