Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Issue a CICS command to run a transaction from batch pgm

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

New User


Joined: 20 Nov 2006
Posts: 13

PostPosted: Tue Nov 21, 2006 6:14 pm    Post subject: Issue a CICS command to run a transaction from batch pgm
Reply with quote

Hi,
We have a cobol batch program which retrieve list of users from one CICS program through EXCI call. After retrieving list of users from CICS program we have to do few processing in a batch program. After that we need to issue a CICS command to run a transaction directly from batch program without having CICS program.

Is it possible through EXCI? If so how to go about it. Otherwise what else method can be used for it?

Kindly advise.

Thanks in advance.

Priya
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue Nov 21, 2006 6:35 pm    Post subject:
Reply with quote

You do realize that the batch program that is retrieving that list of users is actually running "a transaction directly from batch program".
Back to top
View user's profile Send private message
kpriya6

New User


Joined: 20 Nov 2006
Posts: 13

PostPosted: Tue Nov 21, 2006 7:00 pm    Post subject: Re: Batch to CICS call
Reply with quote

Thanks for your reply. We initially called a CICS program to get a list of users through EXCI. But second time we want to invoke another CICS transaction directly from CICS without having any CICS program.

Is it possible to execute CICS commands directly from batch program?

If so, how to go about it.

Thanks and Regards
Priya
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue Nov 21, 2006 7:31 pm    Post subject:
Reply with quote

Yes, in short call CICS just like you did for the list except instead of getting a list, start a transaction.
Back to top
View user's profile Send private message
snehithen

New User


Joined: 18 Aug 2003
Posts: 1
Location: Chennai

PostPosted: Mon Nov 27, 2006 4:16 pm    Post subject: Re: Issue a CICS command to run a transaction from batch pgm
Reply with quote

Thanks Guys.

am new to this area- calling CICS transcation from Batch program?

Can someone provide some info or pointers regarding this?

Thanks.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Nov 27, 2006 5:38 pm    Post subject:
Reply with quote

SupportPacs
http://www-1.ibm.com/support/docview.wss?rs=1083&uid=swg27007241
and Red Books
http://www-306.ibm.com/software/htp/cics/library/indexes/redbooks.html
are a good place to start.
Back to top
View user's profile Send private message
Nimesh.Srivastava

New User


Joined: 30 Nov 2006
Posts: 78
Location: SINGAPORE

PostPosted: Thu Nov 30, 2006 10:45 pm    Post subject:
Reply with quote

sample JCL to submit a CICS transaction from a batch JCL
//PGSTART EXEC PSCICS1
//STEP1.INPFILE DD *
TDS1N070
TAS ITM STT INSJ
hope this could be useful
here TDS1N070 is the CICS region
and INSJ is the CICS transaction you need to submit from batch
Back to top
View user's profile Send private message
kpriya6

New User


Joined: 20 Nov 2006
Posts: 13

PostPosted: Mon Dec 04, 2006 11:07 am    Post subject: Re: Issue a CICS command to run a transaction from batch pgm
Reply with quote

Hi Nimesh,
Thanks for your reply. Could you please tell us what PSCICS1
refer to? Is it standard utility or where can we get this one?

Thanks in advance.

Best Regards,
Priya
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Tue Dec 05, 2006 4:59 pm    Post subject:
Reply with quote

It is possible to submit commands to a CICS region from a jcl jobstream. The JCL uses the MVS Modify command to execute the CICS commands.
Note: In order for this to work, a console entry in the CSD must have been defined. For CICS running under MVS prior to SP 4.1 it will be CONSOLE(00), for CICS running under SP 4.1 or later it will be CONSNAME(INTERNAL).
The following job shows you how to submit commands:


//CICSMOD1 (acct-info),CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
//*
//*
//STEP01 EXEC PGM=IEFBR14
// F CICSREG1,'CEMT SET PROG(EBR001) NEW'
// F CICSREG1,'CEMT I TER'
//


The format of the modify command is :
F jname,cicscommand
jname is the job name or taskid of the CICS region.
cicscommand is the CICS command to be executed. You can omit the apostrophes round the command if you wish, but if there are sequence numbers at the end of the line a warning message is displayed on the console (the command will be executed never-the-less.)

You can use appropriate cics command to trigger transaction.

Regards,
jr
Back to top
View user's profile Send private message
Nimesh.Srivastava

New User


Joined: 30 Nov 2006
Posts: 78
Location: SINGAPORE

PostPosted: Wed Dec 06, 2006 9:35 am    Post subject:
Reply with quote

Hi Priya,
Actually its an internal program in our shop and it uses the CICS internal reader Q to submit the transactions. The SYSOUT step would go something like
JOBRDDR DD SYSOUT=(A,INTRDR),
DCB=(RECFM=FB,LRECL=80,BLKSIZE=80),
FREE=CLOSE
Thanks
Nimesh
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 Batch job tuning sgandhla Testing & Performance analysis 0 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us