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 

COBOL. How to know if the execution is under CICS or Batch

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Esdras
Beginner


Joined: 28 Apr 2004
Posts: 4
Topics: 2
Location: Madrid-Spain

PostPosted: Tue Sep 14, 2004 5:01 am    Post subject: COBOL. How to know if the execution is under CICS or Batch Reply with quote

Hello all,

We have one COBOL routine that can be called from the online (CICS) and batch, and we will like to perform different actions depending on where is executed (we cannot create differents programs).

Somebody knows how can we get this information?

Thanks a lot!!!
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Sep 14, 2004 6:15 am    Post subject: Reply with quote

Esdras,

Please search before posting. This topic has been discussed earlier.check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=1657&highlight=userkey+user

http://www.mvsforums.com/helpboards/viewtopic.php?t=1703&highlight=userkey+user

Hope this helps...

cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Esdras
Beginner


Joined: 28 Apr 2004
Posts: 4
Topics: 2
Location: Madrid-Spain

PostPosted: Wed Sep 15, 2004 10:22 am    Post subject: Reply with quote

Thanks Kolusu! Very Happy

The program is working fine and I retrieve all the information I need, but, we would like to include this code in one routine in order to be used by other programs.

I tried to call this program from others but I can't get the data I need.

Do you know how can I do it?

Kind Regards...
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Sep 15, 2004 11:02 am    Post subject: Reply with quote

esdras,

Do you want the details in the main program?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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