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

JCL to open a CICS region


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Mon Jul 27, 2009 2:47 pm
Reply with quote

Hi,

I need a jcl to open a CICS region and type a transcation in it.

Regards,
Ashok
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 27, 2009 2:54 pm
Reply with quote

Yes, and ..................................................
That was a statement, what is the question.

Do you not have any other CICS regions that you can reference to find what you need ?
Back to top
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Mon Jul 27, 2009 3:01 pm
Reply with quote

Hi,

Sorry for the confusion.
I am looking for a sample jcl which can give me an idea of how to write a jcl to open a CICS region and invoke a transcation.

Regards,
Ashok
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 27, 2009 3:15 pm
Reply with quote

How do you mean "open" a CICS region. To start it up, just to access the region, or both.

As asked before, do you not have any examples at your shop which already do this to use as a reference ?
Back to top
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Mon Jul 27, 2009 3:20 pm
Reply with quote

I need to open this region and access the region as well and here is a sample jcl

//P4113A JOB (),,CLASS=F,MSGCLASS=X,NOTIFY=&SYSUID
//STEP40 EXEC PRODBIF,ID=GP,OPTION=S,TYPE=R,NAME=SCNN
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 27, 2009 3:32 pm
Reply with quote

So why can you not amend or create a new proc to do what you want.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jul 27, 2009 5:00 pm
Reply with quote

CICS regions are not files -- they cannot be opened and closed like files. They are either running or not running, period.

And while you can use a batch console command to start a CICS transaction from batch, you do need to be aware that such a command is handled by the JES converter / interpreter and therefore is executed before your job ever starts running. You cannot put multiple commands into a job stream and expect them to run after a certain step has executed -- the commands just don't work like that.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 27, 2009 7:19 pm
Reply with quote

Hello,

Quote:
I need a jcl to open a CICS region and type a transcation in it.
Why do you believe this? People in productoin environments do not "just open a cics and run a transaction". The startup/shutdown of a cics region is most often more controlled.

If you explain what you need to accomplish (not just "run a transaction", but the business requirement this will address), someone may have a suggestion.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Mon Jul 27, 2009 10:43 pm
Reply with quote

by "open a region" I think Ashok means to open a virtual terminal emulator and connect to the region and then "type a transaction in it" means to enter something into that session programatically and respond to outputs, etc.

There are methods to run terminal sessions in or from batch. The Host Access Toolkit from IBM is one example of running a 3270 session in batch, starting a PCOMM session on a remote PC which then uses EHLLAPI is another, but none of these are trivial to use or easy to maintain. I think we need a much better description of the problem.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top