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

Issue a CICS command to run a transaction from batch pgm


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Tue Nov 21, 2006 6:35 pm
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
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: 3156
Location: Tucson AZ

PostPosted: Tue Nov 21, 2006 7:31 pm
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
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: 3156
Location: Tucson AZ

PostPosted: Mon Nov 27, 2006 5:38 pm
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Using API Gateway from CICS program CICS 0
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top