View previous topic :: View next topic
|
Author |
Message |
kpriya6
New User
Joined: 20 Nov 2006 Posts: 13
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
kpriya6
New User
Joined: 20 Nov 2006 Posts: 13
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Yes, in short call CICS just like you did for the list except instead of getting a list, start a transaction. |
|
Back to top |
|
|
snehithen
New User
Joined: 18 Aug 2003 Posts: 1 Location: Chennai
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
Nimesh.Srivastava
New User
Joined: 30 Nov 2006 Posts: 78 Location: SINGAPORE
|
|
|
|
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 |
|
|
kpriya6
New User
Joined: 20 Nov 2006 Posts: 13
|
|
|
|
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 |
|
|
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
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 |
|
|
Nimesh.Srivastava
New User
Joined: 30 Nov 2006 Posts: 78 Location: SINGAPORE
|
|
|
|
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 |
|
|
|