Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JCL to open a CICS region

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: bangalore

PostPosted: Mon Jul 27, 2009 2:47 pm    Post subject: JCL to open a CICS region
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 2:54 pm    Post subject:
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: bangalore

PostPosted: Mon Jul 27, 2009 3:01 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 3:15 pm    Post subject:
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: bangalore

PostPosted: Mon Jul 27, 2009 3:20 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 3:32 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jul 27, 2009 5:00 pm    Post subject:
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

Site Director


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

PostPosted: Mon Jul 27, 2009 7:19 pm    Post subject:
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: 401
Location: Mumbai

PostPosted: Mon Jul 27, 2009 10:43 pm    Post subject: Reply to: JCL to open a CICS region
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us