View previous topic :: View next topic
|
Author |
Message |
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
Hi,
I need a jcl to open a CICS region and type a transcation in it.
Regards,
Ashok |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
So why can you not amend or create a new proc to do what you want. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
|