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

Online transaction invoked from Batch job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 12:16 pm
Reply with quote

Hi,

I have a requirement in which i have to trigger a online transaction from a batch. Could you let me know how this can be achieved?

Thanks in Advance.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Jun 23, 2009 12:19 pm
Reply with quote

It would be helpful if you could enlighten us as to what type of online transaction you want to trigger. Today is not psychic day and I left my clairvoyance hat at home....

CICS? IMS ? other?

Garry.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 12:20 pm
Reply with quote

Its a CICS transaction.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Jun 23, 2009 12:44 pm
Reply with quote

from the CICS manuals @ publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp?topic=/com.ibm.cics.ts31.doc/dfha6/dfha63d.htm , assuming you have console defined in CICS:

Code:
//IEFBR14 JOB (accounting information),CLASS=A,MSGCLASS=A,MSGLEVEL=1,...,...
//*
//*  Sample JOB to submit CICS commands using CONSNAME(INTERNAL)
//*
//IEFBR     EXEC PGM=IEFBR14
// F CICSRUN,'CEMT INQ TER'
// F CICSRUN,'CEMT INQ TAS'
// F CICSRUN,'CEMT SET TER(L77C) ACQ'
//


Garry.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 12:45 pm
Reply with quote

Thanks for the quick reply. I will try it and let you know.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 1:09 pm
Reply with quote

How we can confirm whether Console is defined in CICS?
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Jun 23, 2009 1:53 pm
Reply with quote

Logon to CICS and enter

Code:
CEDA V TYPETERM(CONSOLE) G(*)


You can then check to see if any console found is installed by issuing
Code:
CEMT I TER(console-id)



Alternatively, submit the IEFBR14 job to issue a CEMT INQUIRE. If it works, the console is defined.

Garry.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 2:13 pm
Reply with quote

In my case, there is no console found. I think i have to check with CICS admin regarding this.


Thanks for your time Garry.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Jun 23, 2009 2:16 pm
Reply with quote

Glad to be of help. I would expect that your CICS admin should have a console defined so that operations could issue commands.

Garry.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 23, 2009 5:11 pm
Reply with quote

One thing to be aware of -- the command being issued is not part of your job stream; for example you cannot execute two steps and then have the command issued. As soon as your job passes the JES converter/interpreter, the command is issued to the CICS region.
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 How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
Search our Forums:

Back to Top