IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to check if the region is active through batch ?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
APD1

New User


Joined: 18 Feb 2009
Posts: 59
Location: India

PostPosted: Thu Mar 26, 2009 12:06 pm
Reply with quote

Hi,


Please let me know as to how can the application team check through batch if the region is active ?

Regards
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Thu Mar 26, 2009 12:21 pm
Reply with quote

In batch spool,you can see whether the CICS region job is active and in execution state.

Code:
 SDSF STATUS DISPLAY ALL CLASSES                        LINE 1-7 (7)           
 COMMAND INPUT ===>                                            SCROLL ===> CSR 
 NP   JOBNAME  JobID    Owner    Prty Queue      C  Pos  SAff  ASys Status     
      CICS1    XXX08251 CICS1USR   15 EXECUTION          XXX2  XXX2             
Back to top
View user's profile Send private message
APD1

New User


Joined: 18 Feb 2009
Posts: 59
Location: India

PostPosted: Thu Mar 26, 2009 1:04 pm
Reply with quote

well suppose an application team is trying to close a file or opena a file (file i/o) through batch but they do not know if the regions is active or not.....how will they come to know if the regions is active so that they can check it prior to sumitting the job.......in batch how to check is region is active.....
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Mar 26, 2009 2:15 pm
Reply with quote

Why bother checking? Just issue the CEMT command(s) to close the files. If CEMT command(s) to open the file is issued when the region is inactive the command fails but the files are available anyway. Same applies to issuing the CEMT command(s) to open the files

Garry.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Thu Mar 26, 2009 5:56 pm
Reply with quote

APD1,

Check this link:


cicswiki.org/cicswiki1/index.php?title=How_do_I_interact_with_a_transaction_from_a_batch_program%3F#3rd_party_Vendor_Software
Back to top
View user's profile Send private message
APD1

New User


Joined: 18 Feb 2009
Posts: 59
Location: India

PostPosted: Thu Apr 02, 2009 11:41 am
Reply with quote

Thanks to all who helped !
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts SCOPE PENDING option -check data DB2 2
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Check data with Exception Table DB2 0
No new posts How to 'Ping' a CICS region in JCL CICS 2
Search our Forums:

Back to Top