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 

problem in obtaining the caller's mode - Batch/Online/SP

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination
View previous topic :: View next topic  
Author Message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Oct 11, 2004 9:52 am    Post subject: problem in obtaining the caller's mode - Batch/Online/SP Reply with quote

Hi,
I have a Cobol program to determine if the caller is in Batch or Online or Stored Procedure. It works fine for Batch and Online, but takes an exception when the call is from a stored procedure. What may be the reason ? The SP is using WLM. Is the MVS address block different ? I think the pointers I am referring to may have be corrupted or not existing, has anyone encounterd such a situation. Thanks

following is the PD code
LINKAGE SECTION.
01 DFHCOMMAREA PIC X(01).
01 BATCH-OR-CICS REDEFINES DFHCOMMAREA
PIC X(01).
01 CB1.
05 PTR1 POINTER OCCURS 256.
01 CB2.
05 PTR2 POINTER OCCURS 256.

PROCEDURE DIVISION.
SET ADDRESS OF CB1 TO NULL
SET ADDRESS OF CB1 TO PTR1(136).
SET ADDRESS OF CB2 TO PTR1(53).

IF CB2(21:4) = LOW-VALUES THEN
MOVE BATCH TO BATCH-OR-CICS
ELSE
MOVE ONLINE TO BATCH-OR-CICS
END-IF.

GOBACK.
Back to top
View user's profile Send private message
mikey
Beginner


Joined: 17 May 2005
Posts: 4
Topics: 1

PostPosted: Tue May 17, 2005 8:44 am    Post subject: Reply with quote

whats the exception?
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 -> Problem Determination 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